Merge pull request #3454 from dataease/pr@dev@feat_percent

feat(视图): 计算占比时自动设置数值格式为百分比
This commit is contained in:
xuwei-fit2cloud 2022-10-26 15:02:27 +08:00 committed by GitHub
commit 112fb50309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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