From 3bbf9ab063ed155f4c12f31a5f669994f6e14f51 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 26 Aug 2024 13:03:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE=E6=98=AF=E8=A2=AB=E5=85=A8?= =?UTF-8?q?=E9=80=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/visualization/OuterParamsSet.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 => {