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 { }