This commit is contained in:
shijingjing
2022-08-03 16:28:44 +08:00
parent 5a4bff6bef
commit 3cbead8990

View File

@@ -301,9 +301,9 @@ export default {
show: true,
formatter: ({ name, value }) => {
if (this.tabIndex == 0) {
return `{name|任务达成率\n\n}{value|${ (value / this.info.planCount * 100).toFixed(1) }%}`;
return `{name|任务达成率\n\n}{value|${ (value / this.info.planCount * 100).toFixed(1) || 0 }%}`;
} else {
return `{name|群发送达率\n\n}{value|${ (value / this.info.planCount * 100).toFixed(1) }%}`;
return `{name|群发送达率\n\n}{value|${ (value / this.info.planCount * 100).toFixed(1) || 0 }%}`;
}
},
textStyle: {