问题单修改

This commit is contained in:
zyx.net
2022-11-08 10:15:40 +08:00
parent e482f895ac
commit 3318ea2d3b
2 changed files with 26 additions and 7 deletions
+13 -2
View File
@@ -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);
})
}
}
}
}