fix(图表): 修复水波图指标是记录数时,大小中的最大最小值无法选择动态值的问题

This commit is contained in:
jianneng-fit2cloud
2025-01-13 19:06:49 +08:00
committed by jianneng-fit2cloud
parent 41ee7b0847
commit cef59796ec

View File

@@ -118,7 +118,7 @@ const getFieldSummaryByDeType = (deType: number) => {
const initDynamicDefaultField = () => {
const yAxisField = props.chart.yAxis?.[0]
const yAxisId = yAxisField?.id
if (quotaData.value?.length === 0 || yAxisField?.id === '-1') {
if (quotaData.value?.length === 0) {
state.miscForm.liquidMaxType = 'fix'
state.miscForm.liquidMaxField.id = ''
state.miscForm.gaugeMaxType = 'fix'
@@ -382,7 +382,6 @@ const addAxis = (form: AxisEditForm) => {
changeMisc(maxValueKey + 'Field', false)
}
const changeChartType = () => {
const maxTypeKey = props.chart.type === 'liquid' ? 'liquidMaxType' : 'gaugeMaxType'
const yAxisField = props.chart.yAxis?.[0]
if (quotaData.value?.length === 0 || yAxisField?.id === '-1') {
state.miscForm.liquidMaxType = 'fix'