From e7bc4e8f0c95a29437116d1f8020cdb414e96fe8 Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 1 Jul 2022 14:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=89=B2=E5=BA=A6=E5=80=BC?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E6=8E=89=E8=B0=83=E7=94=A8=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workBench/components/dept-chart-view.vue | 11 +++++++---- .../workBench/components/dept-todo-view.vue | 18 ++++++++++++++++-- .../components/frequency-top5-view.vue | 13 ++++++++++++- .../workBench/components/recommend-view.vue | 12 +++--------- back/src/views/modules/workBench/workBench.vue | 18 ++++++++++++------ 5 files changed, 50 insertions(+), 22 deletions(-) diff --git a/back/src/views/modules/workBench/components/dept-chart-view.vue b/back/src/views/modules/workBench/components/dept-chart-view.vue index 1714eb5f..79291918 100644 --- a/back/src/views/modules/workBench/components/dept-chart-view.vue +++ b/back/src/views/modules/workBench/components/dept-chart-view.vue @@ -30,6 +30,12 @@ export default { type: Array, default: () => [] }, + colorArray: { + type: Array, + default: () => [ + '#fe845e', '#ff3e55', '#d5c438', '#ff9999', '#9c78ed', '#48c760', '#48c6c7', '#0058e1', + ] + }, }, watch: { dataList: { @@ -62,9 +68,6 @@ export default { this.myChart = chartDom && echarts.init(chartDom); let lengendArr = this.dataListCopy.filter(v => v.name); - let colorArray = [ - '#fe845e', '#ff3e55', '#d5c438', '#ff9999', '#9c78ed', '#48c760', '#48c6c7', '#0058e1', - ] let total = 0; this.dataListCopy.map(v => { @@ -129,7 +132,7 @@ export default { "type": "pie", "center": ["50%", "40%"], "radius": ["50%", "63%"], - "color": colorArray, + "color": this.colorArray, "startAngle": 135, label: { show: false diff --git a/back/src/views/modules/workBench/components/dept-todo-view.vue b/back/src/views/modules/workBench/components/dept-todo-view.vue index 083dd2c4..2ee0baca 100644 --- a/back/src/views/modules/workBench/components/dept-todo-view.vue +++ b/back/src/views/modules/workBench/components/dept-todo-view.vue @@ -12,9 +12,16 @@
-
- {{ item[dataInfo.nameStr] || '--' }} + +
+ + +
+ {{ item[dataInfo.nameStr] || '--' }} +
+
+
查看更多 >
@@ -49,6 +56,13 @@ export default { }