From db009ca954945abd81e9b771a3ee657dd75e2425 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 19 Jan 2026 10:31:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90carbon=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/carbon.js | 44 +++ src/config/index.js | 2 +- src/views/carbon/work.vue | 55 +++ src/views/carbon/work_form.vue | 610 +++++++++++++++++++++++++++++++++ src/views/carbon/work_my.vue | 65 ++++ src/views/home/index.vue | 526 +++++++++++++++++++++++++++- 6 files changed, 1296 insertions(+), 6 deletions(-) create mode 100644 src/api/model/carbon.js create mode 100644 src/views/carbon/work.vue create mode 100644 src/views/carbon/work_form.vue create mode 100644 src/views/carbon/work_my.vue diff --git a/src/api/model/carbon.js b/src/api/model/carbon.js new file mode 100644 index 0000000..e77d206 --- /dev/null +++ b/src/api/model/carbon.js @@ -0,0 +1,44 @@ +import config from "@/config" +import http from "@/utils/request" + +export default { + work: { + list: { + url: `${config.API_URL}/carbon/work/`, + name: "获取列表", + req: async function(data){ + return await http.get(this.url, data); + } + }, + my: { + url: `${config.API_URL}/carbon/work/my/`, + name: "获取列表", + req: async function(data){ + return await http.get(this.url, data); + } + }, + item: { + name: "获取单个核算工作", + req: async function(id){ + return await http.get(`${config.API_URL}/carbon/work/${id}/`); + } + }, + create: { + url: `${config.API_URL}/carbon/work/`, + name: "新增", + req: async function(data){ + return await http.post(this.url,data); + } + }, + cal_dq: { + req: async function(id, data){ + return await http.post(`${config.API_URL}/carbon/work/${id}/cal_dq/`, data); + } + }, + cal_dh: { + req: async function(id, data){ + return await http.post(`${config.API_URL}/carbon/work/${id}/cal_dh/`, data); + } + } + }, +} \ No newline at end of file diff --git a/src/config/index.js b/src/config/index.js index 07b988d..6e28543 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -54,7 +54,7 @@ const DEFAULT_CONFIG = { //主题颜色 // COLOR: '#536DFE',//gx、gz、tkx - COLOR: '#0052d9',//bx + COLOR: '#ee2416',//bx //是否加密localStorage, 为空不加密,可填写AES(模式ECB,移位Pkcs7)加密 LS_ENCRYPTION: '', diff --git a/src/views/carbon/work.vue b/src/views/carbon/work.vue new file mode 100644 index 0000000..f14e6e2 --- /dev/null +++ b/src/views/carbon/work.vue @@ -0,0 +1,55 @@ + + \ No newline at end of file diff --git a/src/views/carbon/work_form.vue b/src/views/carbon/work_form.vue new file mode 100644 index 0000000..b5067b3 --- /dev/null +++ b/src/views/carbon/work_form.vue @@ -0,0 +1,610 @@ + + + \ No newline at end of file diff --git a/src/views/carbon/work_my.vue b/src/views/carbon/work_my.vue new file mode 100644 index 0000000..e4c0d1a --- /dev/null +++ b/src/views/carbon/work_my.vue @@ -0,0 +1,65 @@ + + \ No newline at end of file diff --git a/src/views/home/index.vue b/src/views/home/index.vue index bab9455..af1b516 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,7 +1,523 @@ - \ No newline at end of file + + + + \ No newline at end of file