mirror of
https://github.com/dataease/dataease.git
synced 2025-02-23 19:12:55 +08:00
fix(图表): 修复仪表盘、水波图无法调整固定值的问题
This commit is contained in:
parent
4db73f194e
commit
b61f76c36a
@ -209,14 +209,14 @@ const defaultMaxValue = {
|
||||
const gaugeOrLiquidDefaultRangeData = args => {
|
||||
if (args.data.type === 'gauge') {
|
||||
defaultMaxValue.gaugeMax = cloneDeep(args.data.max)
|
||||
if (!state.miscForm.gaugeMax || defaultMaxValue.gaugeMax !== state.miscForm.gaugeMax) {
|
||||
if (!state.miscForm.gaugeMax) {
|
||||
state.miscForm.gaugeMax = cloneDeep(defaultMaxValue.gaugeMax)
|
||||
changeMisc('gaugeMaxField', false)
|
||||
}
|
||||
}
|
||||
if (args.data.type === 'liquid') {
|
||||
defaultMaxValue.liquidMax = cloneDeep(args.data.max)
|
||||
if (!state.miscForm.liquidMax || defaultMaxValue.liquidMax !== state.miscForm.liquidMax) {
|
||||
if (!state.miscForm.liquidMax) {
|
||||
state.miscForm.liquidMax = cloneDeep(defaultMaxValue.liquidMax)
|
||||
changeMisc('liquidMaxField', false)
|
||||
}
|
||||
@ -372,7 +372,6 @@ const initStateForm = () => {
|
||||
onMounted(() => {
|
||||
init()
|
||||
initField()
|
||||
initAxis(props.chart.yAxis[0]?.id)
|
||||
useEmitt({ name: 'addAxis', callback: addAxis })
|
||||
useEmitt({
|
||||
name: 'chart-data-change',
|
||||
|
Loading…
Reference in New Issue
Block a user