diff --git a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue index 9a2b132ec5..ef67c01d38 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -697,6 +697,21 @@ const setParameters = field => { curComponent.value.optionValueSource = 1 } } + if (curComponent.value.displayType === '22') { + const isNumParameter = curComponent.value.checkedFields.some(ele => { + return curComponent.value.parameters?.some( + itx => [2, 3].includes(itx.deType) && curComponent.value.checkedFieldsMap[ele] === itx.id + ) + }) + + const isSingle = curComponent.value.checkedFields.every(id => { + return !curComponent.value.checkedFieldsMapArr?.[id]?.length + }) + + if (isSingle && isNumParameter) { + curComponent.value.displayType = '2' + } + } setTypeChange() }) setType() diff --git a/core/core-frontend/src/custom-component/v-query/Time.vue b/core/core-frontend/src/custom-component/v-query/Time.vue index 5fba978962..333972a3bf 100644 --- a/core/core-frontend/src/custom-component/v-query/Time.vue +++ b/core/core-frontend/src/custom-component/v-query/Time.vue @@ -79,6 +79,7 @@ const maxDate = new Date('2100/1/1') watch( () => config.value.defaultValue, val => { + if (props.isConfig) return const isMultiple = config.value.displayType === '7' if (isMultiple) { multiple.value = isMultiple