计算达成率

This commit is contained in:
shijingjing
2022-08-03 16:17:40 +08:00
parent 368db1715f
commit 5a4bff6bef

View File

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