mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 16:31:11 +08:00
fix(视图): 修复编辑单个指标的数值格式化时其他指标也受影响
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user