diff --git a/core/core-frontend/src/components/visualization/OuterParamsSet.vue b/core/core-frontend/src/components/visualization/OuterParamsSet.vue index 2523ae4f33..0aa0b3e7be 100644 --- a/core/core-frontend/src/components/visualization/OuterParamsSet.vue +++ b/core/core-frontend/src/components/visualization/OuterParamsSet.vue @@ -204,6 +204,7 @@ style="margin-top: -4px" v-model="baseDatasetInfo.checkAll" :indeterminate="baseDatasetInfo.checkAllIsIndeterminate" + :disabled="!baseDatasetInfo.fieldIdSelected" @change="batchSelectChange($event, baseDatasetInfo)" >全选 @@ -218,6 +219,7 @@
@@ -484,11 +486,13 @@ const save = () => { // 存在数据集字段被选中 if (baseDatasetInfo.fieldIdSelected) { baseDatasetInfo.datasetViews?.forEach(dsView => { - outerParamsInfo.targetViewInfoList.push({ - targetViewId: dsView.chartId, - targetDsId: baseDatasetInfo.id, - targetFieldId: baseDatasetInfo.fieldIdSelected - }) + if (dsView.checked) { + outerParamsInfo.targetViewInfoList.push({ + targetViewId: dsView.chartId, + targetDsId: baseDatasetInfo.id, + targetFieldId: baseDatasetInfo.fieldIdSelected + }) + } }) } }) @@ -601,8 +605,8 @@ const batchSelectChange = (value, baseDatasetInfo) => { } const optInit = () => { - state.outerParamsSetVisible = true initParams() + state.outerParamsSetVisible = true } const findFilterName = id => {