mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 21:42:32 +08:00
fix(图表): 修复水波图指标是记录数时,大小中的最大最小值无法选择动态值的问题
This commit is contained in:
committed by
jianneng-fit2cloud
parent
41ee7b0847
commit
cef59796ec
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user