mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
fix(图表): 修复指标卡配置数值格式后被重置的问题 #12199
This commit is contained in:
parent
982f833d54
commit
bb411aaaf5
@ -249,7 +249,10 @@ const quickCalc = param => {
|
||||
break
|
||||
case 'setting':
|
||||
// 选择占比外,设置自动
|
||||
resetValueFormatter(item.value)
|
||||
// 指标卡不需要重置数值格式
|
||||
if (chart.value.type !== 'indicator') {
|
||||
resetValueFormatter(item.value)
|
||||
}
|
||||
editCompare()
|
||||
break
|
||||
case 'percent':
|
||||
@ -278,6 +281,7 @@ const editCompare = () => {
|
||||
}
|
||||
|
||||
const valueFormatter = () => {
|
||||
debugger
|
||||
item.value.index = props.index
|
||||
item.value.formatterType = props.type
|
||||
emit('valueFormatter', item.value)
|
||||
|
Loading…
Reference in New Issue
Block a user