fix(图表): 修复指标卡配置数值格式后被重置的问题 #12199

This commit is contained in:
jianneng-fit2cloud 2024-09-26 14:25:03 +08:00
parent 982f833d54
commit bb411aaaf5

View File

@ -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)