|
@@ -138,7 +138,7 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
filterLabelText(val) {
|
|
|
- this.$refs.itemTree.filter(val);
|
|
|
+ // this.$refs.itemTree.filter(val);
|
|
|
this.$refs.cTree.filter(val)
|
|
|
},
|
|
|
},
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
</span>
|
|
|
)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
/** 关闭弹出层 */
|
|
|
dialogClose() {
|
|
@@ -418,7 +418,7 @@ export default {
|
|
|
})
|
|
|
let treeData = this.$refs.cTree.getFlatData()
|
|
|
const treeList = treeData.concat(cnodes)
|
|
|
-
|
|
|
+
|
|
|
this.$refs.cTree.setData(this.buildTree(treeData))
|
|
|
this.$refs.cTree.setExpand(d.id, !this.$refs.cTree.getExpandKeys().includes(d.id))
|
|
|
//加载虚拟列表,叶节点
|
|
@@ -529,7 +529,8 @@ export default {
|
|
|
this.isSelectAllItem = false;
|
|
|
this.isSelectAllLeaves = false;
|
|
|
this.leavesChooseList = [];
|
|
|
- this.$refs.itemTree.setCheckedKeys([]);
|
|
|
+ // this.$refs.itemTree.setCheckedKeys([]);
|
|
|
+ this.$refs.cTree.clearChecked()
|
|
|
});
|
|
|
},
|
|
|
/** 将右边选择的点位移除 */
|
|
@@ -546,7 +547,8 @@ export default {
|
|
|
|
|
|
// 重置选择
|
|
|
this.isSelectAllItem = false;
|
|
|
- this.$refs.itemTree.setCheckedKeys([]);
|
|
|
+ // this.$refs.itemTree.setCheckedKeys([]);
|
|
|
+ this.$refs.cTree.clearChecked()
|
|
|
this.selectAllItem(false);
|
|
|
},
|
|
|
/** 将右边所有的点位移除 */
|
|
@@ -576,7 +578,8 @@ export default {
|
|
|
params.chooseItemStr = this.queryParams.chooseItemStr
|
|
|
params.needItemStr = JSON.stringify(this.queryParams.needItemStr)
|
|
|
//得到选择的所有节点
|
|
|
- const treeArr = this.$refs.itemTree.getCheckedNodes();
|
|
|
+ // const treeArr = this.$refs.itemTree.getCheckedNodes();
|
|
|
+ const treeArr = this.$refs.cTree.getCheckedNodes()
|
|
|
const treeQ = document.getElementsByClassName('el-tree cy-group-tree el-tree--highlight-current')[0]
|
|
|
.getElementsByClassName('el-tree-node__content');
|
|
|
let seTreeArr = []
|
|
@@ -649,8 +652,9 @@ export default {
|
|
|
this.isSelectAllItem = false;
|
|
|
this.isSelectAllLeaves = false;
|
|
|
this.leavesChooseList = [];
|
|
|
- this.$refs.itemTree.setCheckedKeys([]);
|
|
|
- this.$refs.itemTree.setCheckedNodes([]);
|
|
|
+ // this.$refs.itemTree.setCheckedKeys([]);
|
|
|
+ // this.$refs.itemTree.setCheckedNodes([]);
|
|
|
+ this.$refs.cTree.clearChecked()
|
|
|
});
|
|
|
if (!res.data || res.data.length === 0) {
|
|
|
this.$message({
|