fix(过滤器): 弹框中下拉备选项无法显示

This commit is contained in:
fit2cloud-chenyw 2023-03-23 17:25:13 +08:00
parent 41d089bd69
commit 6b4c9e0f84
2 changed files with 13 additions and 3 deletions

View File

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

View File

@ -567,6 +567,7 @@ export default {
const data = res.data const data = res.data
this.viewInfos = data this.viewInfos = data
this.updateParentName()
this.childViews.viewInfos = data this.childViews.viewInfos = data
}) })
var type = 'TEXT' var type = 'TEXT'
@ -582,6 +583,17 @@ export default {
this.childViews.datasetParams = data 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) { handleNodeClick(data) {
if (data.modelInnerType !== 'group') { if (data.modelInnerType !== 'group') {
this.showFieldData(data) this.showFieldData(data)