From 78a3c048a13754d3945a4a0d640d91c5104640af Mon Sep 17 00:00:00 2001 From: xh <11675084@qq.com> Date: Sun, 7 Dec 2025 15:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=9C=80=E5=8A=A0=E8=BD=BD=EF=BC=8C?= =?UTF-8?q?=E7=A7=BB=E9=99=A4vue-chart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/package.json | 7 +- .../src/components/echart-component/index.vue | 123 ++++++++++++++++++ admin/src/components/flow/Approver.vue | 2 +- admin/src/components/flow/XForm/index.vue | 56 ++++++-- admin/src/components/flow/XForm2/index.vue | 84 ------------ admin/src/components/flow/flowEdit/index.vue | 11 +- admin/src/components/material/index.vue | 7 +- admin/src/utils/echart.ts | 90 ++++++++----- admin/src/views/account/login.vue | 8 +- admin/src/views/dev_tools/code/index.vue | 6 +- .../flow/flow_apply/components/ViewForm.vue | 9 +- admin/src/views/flow/flow_apply/finish.vue | 7 +- admin/src/views/flow/flow_apply/index.vue | 10 +- .../flow/flow_history/components/ViewForm.vue | 8 +- admin/src/views/flow/flow_history/done.vue | 6 +- admin/src/views/flow/flow_history/todo.vue | 5 +- admin/src/views/material/index.vue | 4 +- admin/src/views/system/menu/index.vue | 2 +- admin/src/views/system/system/cache.vue | 13 +- admin/src/views/workbench/index.vue | 101 +++++++------- admin/vite.config.ts | 34 ++--- 21 files changed, 342 insertions(+), 251 deletions(-) create mode 100644 admin/src/components/echart-component/index.vue delete mode 100644 admin/src/components/flow/XForm2/index.vue diff --git a/admin/package.json b/admin/package.json index a9267c8..311530f 100644 --- a/admin/package.json +++ b/admin/package.json @@ -28,7 +28,7 @@ "crypto-js": "^4.2.0", "css-color-function": "^1.3.3", "dayjs": "^1.11.19", - "echarts": "^5.6.0", + "echarts": "^6.0.0", "element-plus": "^2.12.0", "highlight.js": "^11.11.1", "lodash-es": "^4.17.21", @@ -39,12 +39,11 @@ "spark-md5": "^3.0.2", "vue": "^3.5.25", "vue-clipboard3": "^2.0.0", - "vue-echarts": "^7.0.3", "vue-router": "^4.5.1", + "vue-virtual-scroller": "2.0.0-beta.8", "vue3-video-play": "^1.3.2", "vuedraggable": "^4.1.0", - "vxe-table": "^4.16.11", - "vue-virtual-scroller": "2.0.0-beta.8" + "vxe-table": "^4.16.11" }, "devDependencies": { "@rushstack/eslint-patch": "^1.11.0", diff --git a/admin/src/components/echart-component/index.vue b/admin/src/components/echart-component/index.vue new file mode 100644 index 0000000..bef23f4 --- /dev/null +++ b/admin/src/components/echart-component/index.vue @@ -0,0 +1,123 @@ + + + + + + diff --git a/admin/src/components/flow/Approver.vue b/admin/src/components/flow/Approver.vue index 4eb1dda..c80aea1 100644 --- a/admin/src/components/flow/Approver.vue +++ b/admin/src/components/flow/Approver.vue @@ -63,7 +63,7 @@ import { ref, useTemplateRef, watch, defineAsyncComponent } from 'vue' // import XForm from './XForm/index.vue' // import XForm2 from './XForm2/index.vue' -const XForm2 = defineAsyncComponent(() => import('./XForm2/index.vue')) +const XForm2 = defineAsyncComponent(() => import('./XForm/index.vue')) // import FlowEdit from './flowEdit/index.vue' const FlowEdit = defineAsyncComponent(() => import('./flowEdit/index.vue')) import BasicSetting from './BasicSetting/index.vue' diff --git a/admin/src/components/flow/XForm/index.vue b/admin/src/components/flow/XForm/index.vue index 915577a..1dfaa7f 100644 --- a/admin/src/components/flow/XForm/index.vue +++ b/admin/src/components/flow/XForm/index.vue @@ -1,17 +1,42 @@ - - diff --git a/admin/src/components/flow/flowEdit/index.vue b/admin/src/components/flow/flowEdit/index.vue index 3385cd2..ccdad41 100644 --- a/admin/src/components/flow/flowEdit/index.vue +++ b/admin/src/components/flow/flowEdit/index.vue @@ -22,7 +22,7 @@