feat(视图): 计算占比时自动设置数值格式为百分比

This commit is contained in:
junjun 2022-10-26 14:46:03 +08:00
parent ec2025c3ec
commit e9470537b5
2 changed files with 8 additions and 0 deletions

View File

@ -385,6 +385,10 @@ export default {
this.editCompare()
break
case 'percent':
// 2
this.item.formatterCfg.type = 'percent'
this.item.formatterCfg.decimalCount = 2
this.item.compareCalc.type = 'percent'
this.$emit('onQuotaItemChange', this.item)
break

View File

@ -382,6 +382,10 @@ export default {
this.editCompare()
break
case 'percent':
// 2
this.item.formatterCfg.type = 'percent'
this.item.formatterCfg.decimalCount = 2
this.item.compareCalc.type = 'percent'
this.$emit('onQuotaItemChange', this.item)
break