From d841cee094b7f8bc55c099ea32a8bf92adf285bd Mon Sep 17 00:00:00 2001 From: gongzijian Date: Thu, 25 Apr 2019 16:29:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=BB=9F=E8=AE=A1=E9=A2=9C?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/pages/projects/pages/index/_source/chartConfig.js | 3 ++- .../home/pages/projects/pages/index/_source/queueCount.vue | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js index ef30ad9a0b..90a362afdf 100644 --- a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js @@ -90,7 +90,8 @@ let simple = { }) return str } - } + }, + color:['#D5050B','#0398E1'] } diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/queueCount.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/queueCount.vue index c23ccef404..7ac724bf33 100644 --- a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/queueCount.vue +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/queueCount.vue @@ -54,7 +54,9 @@ value: v })) const myChart = Chart.pie('#queue-pie', this.queueList, { title: '' }) - myChart.echart.setOption(pie) + myChart.echart.setOption(_.assign(_.cloneDeep(pie),{ + color:['#D5050B','#0398E1'] + })) } }, watch: {