Merge pull request #4865 from dataease/pr@dev@fix_filter

fix(过滤器): 弹框中下拉备选项无法显示
This commit is contained in:
fit2cloud-chenyw 2023-03-23 17:28:47 +08:00 committed by GitHub
commit 29f4b0d815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View File

@ -270,7 +270,5 @@ export default {
.select-all {
padding: 10px 20px 0 20px;
}
.coustom-de-select {
z-index: 999 !important;
}
</style>

View File

@ -567,6 +567,7 @@ export default {
const data = res.data
this.viewInfos = data
this.updateParentName()
this.childViews.viewInfos = data
})
var type = 'TEXT'
@ -582,6 +583,17 @@ export default {
this.childViews.datasetParams = data
})
},
updateParentName() {
if (this.fieldsParent && this.viewInfos?.length && this.activeName !== 'dataset') {
this.viewInfos.forEach(info => {
if (info.id === this.fieldsParent.id && info.name !== this.fieldsParent.name) {
this.fieldsParent.name = info.name
this.comBackLink(this.fieldsParent)
this.comShowFieldData(this.fieldsParent)
}
})
}
},
handleNodeClick(data) {
if (data.modelInnerType !== 'group') {
this.showFieldData(data)