问题单修改
This commit is contained in:
@@ -151,6 +151,7 @@
|
||||
created(){
|
||||
},
|
||||
mounted () {
|
||||
// this.$refs.tree.setCheckedKeys(this.checkedKeys)
|
||||
if (this.checkedKeys.length > 0) {
|
||||
if (this.multiple) {
|
||||
this.defaultCheckedKeys = this.checkedKeys;
|
||||
@@ -275,10 +276,20 @@
|
||||
cancelUserInfo () {
|
||||
this.$emit('popoverHideCancel', this.checkedIds, this.checkedData,false);
|
||||
},
|
||||
// setTreeVal(val) {
|
||||
// this.$nextTick(() => {
|
||||
// this.$refs.tree.setCheckedKeys(val);
|
||||
//
|
||||
// })
|
||||
// }
|
||||
},
|
||||
watch: {
|
||||
checkedKeys(val){
|
||||
this.$refs.tree.setCheckedKeys(val);
|
||||
modalShowFlag(val){
|
||||
if(val){
|
||||
this.$nextTick(() => {
|
||||
this.$refs.tree.setCheckedKeys(this.checkedKeys);
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user