Commit b85cd758 authored by jingnan's avatar jingnan 👀

首页站位完工统计环形图默认展示已完工

parent f93f9219
...@@ -24,6 +24,10 @@ export default { ...@@ -24,6 +24,10 @@ export default {
immediate: true, immediate: true,
handler(val) { handler(val) {
this.datas = [ this.datas = [
{
value: this.item.countCarry,
name: '已完工' // 已完工
},
{ {
value: this.item.countUndone, value: this.item.countUndone,
name: '未开工' // 未完成 name: '未开工' // 未完成
...@@ -31,10 +35,6 @@ export default { ...@@ -31,10 +35,6 @@ export default {
{ {
value: this.item.countNotOk, value: this.item.countNotOk,
name: '执行中' // 执行中 name: '执行中' // 执行中
},
{
value: this.item.countCarry,
name: '已完工' // 已完工
} }
] ]
this.$nextTick(() => { this.$nextTick(() => {
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
methods: { methods: {
setPieOption() { setPieOption() {
this.pieOption = { this.pieOption = {
color: ['blue', '#f2743a', '#13b346'], // 环形的分段色值设置 color: ['#13b346', 'blue', '#f2743a'], // 环形的分段色值设置
title: { title: {
text: this.item.name, text: this.item.name,
color: '#3F3F3F', color: '#3F3F3F',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment