取余
This commit is contained in:
@@ -300,10 +300,11 @@ export default {
|
|||||||
normal: {
|
normal: {
|
||||||
show: true,
|
show: true,
|
||||||
formatter: ({ name, value }) => {
|
formatter: ({ name, value }) => {
|
||||||
|
let num = value / this.info.planCount * 100
|
||||||
if (this.tabIndex == 0) {
|
if (this.tabIndex == 0) {
|
||||||
return `{name|任务达成率\n\n}{value|${ (value / this.info.planCount * 100).toFixed(1) }%}`;
|
return num % 1==0? '0': `{name|任务达成率\n\n}{value|${ num.toFixed(1) }%}`;
|
||||||
} else {
|
} else {
|
||||||
return `{name|群发送达率\n\n}{value|${ (value / this.info.planCount * 100).toFixed(1) }%}`;
|
return num % 1==0? '0': `{name|群发送达率\n\n}{value|${ num.toFixed(1) }%}`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
textStyle: {
|
textStyle: {
|
||||||
|
|||||||
Reference in New Issue
Block a user