有小数保留2位,没有显示整数
This commit is contained in:
		| @@ -301,9 +301,9 @@ 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|${ (value / this.info.planCount * 100).toFixed(1) || 0 }%}`; |                         return `{name|任务达成率\n\n}{value|${ parseFloat(value / this.info.planCount * 100) }%}`; | ||||||
|                       } else { |                       } else { | ||||||
|                         return `{name|群发送达率\n\n}{value|${ (value / this.info.planCount * 100).toFixed(1) || 0 }%}`; |                         return `{name|群发送达率\n\n}{value|${ parseFloat(value / this.info.planCount * 100) }%}`; | ||||||
|                       } |                       } | ||||||
|                     }, |                     }, | ||||||
|                     textStyle: { |                     textStyle: { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user