diff --git a/core/core-frontend/src/custom-component/v-query/QueryCascade.vue b/core/core-frontend/src/custom-component/v-query/QueryCascade.vue
index 9ac5b8d3a7..70ecfd081b 100644
--- a/core/core-frontend/src/custom-component/v-query/QueryCascade.vue
+++ b/core/core-frontend/src/custom-component/v-query/QueryCascade.vue
@@ -74,11 +74,6 @@ const init = (cascadeMap: cascadeMap, arr) => {
deTypeMap.value = obj
listByDsIds(datasetMap.value.map(ele => ele.value.split('--')[0]))
.then(res => {
- for (let i in res || {}) {
- res[i] = res[i].filter(
- ele => ele.deType === Object.values(cascadeMap).find(ele => ele.datasetId === i).deType
- )
- }
optionsMap.value = res
})
.finally(() => {
@@ -248,13 +243,14 @@ defineExpose({
style="width: 300px"
>
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 4f0aea129d..2a52e277b2 100644
--- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue
+++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue
@@ -792,6 +792,17 @@ const confirmClick = () => {
})
queryElement.value.propValue = []
nextTick(() => {
+ conditions.value.forEach(itx => {
+ cascadeArr.forEach(ele => {
+ ele.forEach(item => {
+ if (item.datasetId.split('--')[1] === itx.id && itx.defaultValueCheck) {
+ const val = itx.mapValue
+ item.selectValue = Array.isArray(val) ? [...val] : val
+ item.currentSelectValue = Array.isArray(val) ? [...val] : val
+ }
+ })
+ })
+ })
queryElement.value.cascade = cloneDeep(cascadeArr)
cascadeArr = []
queryElement.value.propValue = cloneDeep(conditions.value)
@@ -1379,9 +1390,11 @@ defineExpose({
{{
- canvasViewInfo[field.componentId].title
- }}{{ canvasViewInfo[field.componentId].title }}
{{ field.name }}
{
if (item.datasetId.split('--')[1] === config.value.id) {
if (props.isConfig) {
item.selectValue = Array.isArray(val) ? [...val] : val
- } else {
- item.currentSelectValue = Array.isArray(val) ? [...val] : val
}
+ item.currentSelectValue = Array.isArray(val) ? [...val] : val
}
})
})