Browse Source

首页统计颜色

pull/2/head
gongzijian 6 years ago
parent
commit
d841cee094
  1. 3
      escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js
  2. 4
      escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/queueCount.vue

3
escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js

@ -90,7 +90,8 @@ let simple = {
})
return str
}
}
},
color:['#D5050B','#0398E1']
}

4
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: {

Loading…
Cancel
Save