|
|
@@ -57,7 +57,8 @@ export default {
|
|
|
checkVal: {
|
|
|
handler(val) {
|
|
|
this.node.cusareaName = val
|
|
|
- }
|
|
|
+ },
|
|
|
+ deep: true,
|
|
|
},
|
|
|
checkedList: {
|
|
|
handler(val) {
|
|
|
@@ -78,6 +79,9 @@ export default {
|
|
|
this.checkList = this.$refs.treeForm.getCheckedKeys()
|
|
|
const checkNode = this.$refs.treeForm.getCheckedNodes()
|
|
|
this.node.cusareaName = val?.cusareaName
|
|
|
+ if (!this.checkList.length) {
|
|
|
+ this.node.cusareaName = ''
|
|
|
+ }
|
|
|
this.$emit('getCheckTree', this.checkList)
|
|
|
this.$emit('getCheckTreeNode', checkNode)
|
|
|
}
|