feat(过滤器): 控制范围显示优化

This commit is contained in:
fit2cloud-chenyw 2023-01-09 16:30:38 +08:00
parent 525523743c
commit a969aa875e
2 changed files with 8 additions and 2 deletions

View File

@ -275,7 +275,7 @@
:control-attrs="myAttrs"
:child-views="childViews"
:dataset-params="datasetParams"
:activeName="activeName"
:active-name="activeName"
/>
<filter-foot :element="currentElement" />

View File

@ -117,7 +117,7 @@
@change="checkedViewsChange"
>
<el-checkbox
v-for="(item ) in childViews.viewInfos"
v-for="(item ) in curTableViews"
:key="item.id"
:label="item.id"
class="de-checkbox"
@ -308,6 +308,12 @@ export default {
computed: {
fieldIds() {
return this.element.options.attrs.fieldId || []
},
curTableViews() {
const tableIdList = this.element.options.attrs.dragItems.map(item => item.tableId) || []
const views = this.childViews.viewInfos.filter(view => tableIdList.includes(view.tableId))
return views
}
},
watch: {