|
@@ -136,10 +136,11 @@ export default {
|
|
//把半选和选中的数组key合并
|
|
//把半选和选中的数组key合并
|
|
let keys = this.$refs.leftTree.getCheckedKeys().concat(this.$refs.leftTree.getHalfCheckedKeys());
|
|
let keys = this.$refs.leftTree.getCheckedKeys().concat(this.$refs.leftTree.getHalfCheckedKeys());
|
|
const myArray = Array.from(addMap.keys());
|
|
const myArray = Array.from(addMap.keys());
|
|
- this.getRightTree(myArray,keys);
|
|
|
|
- myArray.forEach((data)=>{
|
|
|
|
|
|
+ let myright= JSON.parse(JSON.stringify(myArray));
|
|
|
|
+ this.getRightTree(myright,keys);
|
|
|
|
+ myright.forEach((data)=>{
|
|
this.$refs.rightTree.append(data,data.parentId);
|
|
this.$refs.rightTree.append(data,data.parentId);
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
|
|
// addMap.forEach((value,key)=>{
|
|
// addMap.forEach((value,key)=>{
|