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