Merge pull request #10667 from dataease/pr@dev@fix_tree_filter

fix(过滤组件): 多选树过滤器模糊查询后多选无效 #10284
This commit is contained in:
fit2cloud-chenyw 2024-07-01 18:46:55 +08:00 committed by GitHub
commit 3e0805d45c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -464,13 +464,6 @@ export default {
_treeCheckFun(data, node, vm) { _treeCheckFun(data, node, vm) {
this.ids = [] this.ids = []
const { propsValue } = this const { propsValue } = this
const checkKeys = this.$refs.tree.getCheckedKeys()
checkKeys.forEach((i, n) => {
const node = this.$refs.tree.getNode(i)
if (!node.visible && node.checked) {
this.$refs.tree.setChecked(i, false)
}
})
const checkedNodes = this.$refs.tree.getCheckedNodes() const checkedNodes = this.$refs.tree.getCheckedNodes()