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 ceba793d87..fd833d481d 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -9,7 +9,7 @@ import { getThisStart, getLastStart, getAround } from './time-format-dayjs' import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' import { useI18n } from '@/hooks/web/useI18n' import { fieldType } from '@/utils/attr' -import { ElMessage } from 'element-plus-secondary' +import { ElMessage, ElSelect } from 'element-plus-secondary' import type { DatasetDetail } from '@/api/dataset' import { getDsDetailsWithPerm, getSqlParams, listFieldsWithPermissions } from '@/api/dataset' import EmptyBackground from '@/components/empty-background/src/EmptyBackground.vue' @@ -694,7 +694,6 @@ const parameterCompletion = () => { arbitraryTimeRange: new Date(), setTimeRange: false, showEmpty: false, - conditionType: 0, timeRange: { intervalType: 'none', dynamicWindow: false, @@ -744,6 +743,10 @@ const handleCondition = item => { valueSource.value.push('') valueSource.value.push('') } + curComponent.value.sortField = curComponent.value.sortField ?? { + id: '', + sortType: 'asc' + } parameterCompletion() nextTick(() => { curComponent.value.showError = showError.value @@ -1327,7 +1330,7 @@ defineExpose({
{ name, deType }, + sortField: { + id: '', + sortType: 'asc' + }, timeType: 'fixed', relativeToCurrent: 'custom', required: false,