forked from github/dataease
fix(视图): 修复编辑单个指标的数值格式化时其他指标也受影响
This commit is contained in:
parent
059147df30
commit
29fa7cdad6
@ -3715,7 +3715,7 @@ export default {
|
||||
this.showValueFormatter = false
|
||||
},
|
||||
saveValueFormatter() {
|
||||
const formatterItem = _.cloneDeep(this.valueFormatterItem)
|
||||
const formatterItem = JSON.parse(JSON.stringify(this.valueFormatterItem))
|
||||
const formatterCfg = formatterItem.formatterCfg
|
||||
const ele = formatterCfg.decimalCount
|
||||
if (ele === undefined || ele.toString().indexOf('.') > -1 || parseInt(ele).toString() === 'NaN' || parseInt(ele) < 0 || parseInt(ele) > 10) {
|
||||
|
Loading…
Reference in New Issue
Block a user