Merge pull request #6667 from dataease/pr@dev@fix_select_filter

fix: 下拉过滤器选择排序字段后切换选项字段下拉框消失
This commit is contained in:
fit2cloud-chenyw 2023-11-13 16:46:14 +08:00 committed by GitHub
commit 5c24fee5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,6 +220,7 @@ export default {
method = linkMultFieldValues
}
if (!this.element.options.attrs.fieldId) {
this.show = true
return
}
const param = { fieldIds: this.element.options.attrs.fieldId.split(this.separator), sort: this.element.options.attrs.sort }
@ -238,6 +239,8 @@ export default {
bus.$emit('valid-values-change', true)
}).catch(e => {
bus.$emit('valid-values-change', false)
}).finally(() => {
this.show = true
}) || (this.element.options.value = '')
}