Merge pull request #11740 from dataease/pr@dev-v2@fix_outer-params

fix: 修复外部参数配置是被全选问题
This commit is contained in:
王嘉豪 2024-08-26 13:03:58 +08:00 committed by GitHub
commit f3ec6813e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,6 +204,7 @@
style="margin-top: -4px"
v-model="baseDatasetInfo.checkAll"
:indeterminate="baseDatasetInfo.checkAllIsIndeterminate"
:disabled="!baseDatasetInfo.fieldIdSelected"
@change="batchSelectChange($event, baseDatasetInfo)"
>全选</el-checkbox
>
@ -218,6 +219,7 @@
<div>
<el-checkbox
v-model="viewInfo.checked"
:disabled="!baseDatasetInfo.fieldIdSelected"
@change="datasetInfoChange(baseDatasetInfo)"
/>
</div>
@ -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 => {