From 5b59893edbbb7468d00421822d0d4639e7568f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Fri, 12 Apr 2024 16:52:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/main.js | 11 +- src/views/report/report/reportChart.vue | 7 + src/views/report/yearData/index.vue | 358 ++++++++++++++++++++++++ src/views/report/yearData/lineChart.vue | 162 +++++++++++ 5 files changed, 537 insertions(+), 2 deletions(-) create mode 100644 src/views/report/report/reportChart.vue create mode 100644 src/views/report/yearData/index.vue create mode 100644 src/views/report/yearData/lineChart.vue diff --git a/package.json b/package.json index 45a2630..efe8720 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "@riophae/vue-treeselect": "0.4.0", "axios": "^1.6.8", "clipboard": "2.0.8", + "code-brick-zj": "^1.1.0", "core-js": "^3.26.0", "crypto-js": "^4.0.0", "echarts": "5.4.0", diff --git a/src/main.js b/src/main.js index 764dace..9e61108 100644 --- a/src/main.js +++ b/src/main.js @@ -1,3 +1,10 @@ +/* + * @Author: zhp + * @Date: 2024-04-12 11:13:06 + * @LastEditTime: 2024-04-12 16:20:31 + * @LastEditors: zhp + * @Description: + */ import Vue from 'vue' import Element from 'element-ui' @@ -23,7 +30,7 @@ import RightToolbar from "@/components/RightToolbar" // import hljs from 'highlight.js' // import 'highlight.js/styles/github-gist.css' import { DICT_TYPE, getDictDataLabel, getDictDatas, getDictDatas2 } from "@/utils/dict"; - +import CodeBrickZj from 'code-brick-zj'; import './theme/index.css'; // 自定义主题包 - code-brick-zj // 全局方法挂载 @@ -50,7 +57,7 @@ import VueMeta from 'vue-meta' Vue.use(directive) Vue.use(plugins) Vue.use(VueMeta) - +Vue.use(CodeBrickZj); // Form Generator 组件需要使用到 tinymce import Tinymce from '@/components/tinymce/index.vue' Vue.component('tinymce', Tinymce) diff --git a/src/views/report/report/reportChart.vue b/src/views/report/report/reportChart.vue new file mode 100644 index 0000000..a14c786 --- /dev/null +++ b/src/views/report/report/reportChart.vue @@ -0,0 +1,7 @@ + diff --git a/src/views/report/yearData/index.vue b/src/views/report/yearData/index.vue new file mode 100644 index 0000000..d989194 --- /dev/null +++ b/src/views/report/yearData/index.vue @@ -0,0 +1,358 @@ + + + + + + diff --git a/src/views/report/yearData/lineChart.vue b/src/views/report/yearData/lineChart.vue new file mode 100644 index 0000000..c44a3dc --- /dev/null +++ b/src/views/report/yearData/lineChart.vue @@ -0,0 +1,162 @@ + + + + + + From 320d747eb825475ad2ae53f8177f51836a3dd752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Wed, 17 Apr 2024 16:17:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/AppMain.vue | 9 +- src/mixins/resize.js | 63 ++ src/utils/debounce.js | 47 ++ src/views/cost/index.vue | 413 ++++++++++++++ src/views/cost/lineChart.vue | 233 ++++++++ src/views/energy/index.vue | 564 ++++++++++++++++++ src/views/energy/lineChart.vue | 170 ++++++ src/views/greenest/index.vue | 383 +++++++++++++ src/views/greenest/lineChart.vue | 211 +++++++ src/views/produce/data/SmallTitle.vue | 65 +++ src/views/produce/data/add-or-updata.vue | 365 ++++++++++++ src/views/produce/data/index.vue | 625 ++++++++++++++++++++ src/views/produce/data/lineChart.vue | 170 ++++++ src/views/produce/target/SmallTitle.vue | 66 +++ src/views/produce/target/add-or-updata.vue | 365 ++++++++++++ src/views/produce/target/index.vue | 631 +++++++++++++++++++++ src/views/produce/target/lineChart.vue | 170 ++++++ src/views/report/report/reportChart.vue | 7 - src/views/report/yearData/index.vue | 166 +++--- src/views/report/yearData/lineChart.vue | 118 ++-- src/views/warehouse/index.vue | 424 ++++++++++++++ src/views/warehouse/lineChart.vue | 233 ++++++++ 22 files changed, 5374 insertions(+), 124 deletions(-) create mode 100644 src/mixins/resize.js create mode 100644 src/utils/debounce.js create mode 100644 src/views/cost/index.vue create mode 100644 src/views/cost/lineChart.vue create mode 100644 src/views/energy/index.vue create mode 100644 src/views/energy/lineChart.vue create mode 100644 src/views/greenest/index.vue create mode 100644 src/views/greenest/lineChart.vue create mode 100644 src/views/produce/data/SmallTitle.vue create mode 100644 src/views/produce/data/add-or-updata.vue create mode 100644 src/views/produce/data/index.vue create mode 100644 src/views/produce/data/lineChart.vue create mode 100644 src/views/produce/target/SmallTitle.vue create mode 100644 src/views/produce/target/add-or-updata.vue create mode 100644 src/views/produce/target/index.vue create mode 100644 src/views/produce/target/lineChart.vue delete mode 100644 src/views/report/report/reportChart.vue create mode 100644 src/views/warehouse/index.vue create mode 100644 src/views/warehouse/lineChart.vue diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index aec7eb6..324b6e3 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,3 +1,10 @@ +