Commit 3e5a9b34 by xinla

人员选择回显优化

1 parent e22920a5
......@@ -81,18 +81,21 @@ export default {
})
this.userList = checkedUserList
}
setTimeout(() => {
this.Pvisible && this.$refs.tree?.setCheckedKeys(value.map((e) => e.userId || e.id))
}, 300)
},
immediate: true,
deep: true,
},
Pvisible(val) {
val && this.$refs.tree && this.$refs.tree.setCheckedKeys(this.defaultValues.map((e) => e.userId || e.id))
if (!this.$refs.tree) {
setTimeout(() => {
this.$refs.tree && this.$refs.tree.setCheckedKeys(this.defaultValues.map((e) => e.userId || e.id))
}, 300)
}
},
// Pvisible(val) {
// val && this.$refs.tree && this.$refs.tree.setCheckedKeys(this.defaultValues.map((e) => e.userId || e.id))
// if (!this.$refs.tree) {
// setTimeout(() => {
// this.$refs.tree && this.$refs.tree.setCheckedKeys(this.defaultValues.map((e) => e.userId || e.id))
// }, 300)
// }
// },
},
computed: {
Pvisible: {
......@@ -130,7 +133,9 @@ export default {
return arr
},
},
created() {},
created() {
console.log(this.$attrs)
},
mounted() {},
methods: {
setChange(e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!