forked from github/dataease
feat(过滤器): 控制范围显示优化
This commit is contained in:
parent
525523743c
commit
a969aa875e
@ -275,7 +275,7 @@
|
||||
:control-attrs="myAttrs"
|
||||
:child-views="childViews"
|
||||
:dataset-params="datasetParams"
|
||||
:activeName="activeName"
|
||||
:active-name="activeName"
|
||||
/>
|
||||
|
||||
<filter-foot :element="currentElement" />
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user