| | |
| | | this.car.departName = depart.departName; |
| | | } |
| | | }, |
| | | nodeClick(data, checked) { |
| | | this.checkedId = data.comcode; |
| | | this.$refs.tree.setCheckedNodes([data]); |
| | | this.car.departId = data.id; |
| | | this.car.departName = data.departName; |
| | | this.selectOrg.orgsid = []; |
| | | this.selectOrg.orgsid.push(data.id); |
| | | }, |
| | | handleCheck(data, checked) { |
| | | if (checked == true) { |
| | | this.checkedId = data.comcode; |
| | | this.$refs.tree.setCheckedNodes([data]); |
| | | this.car.departId = data.id; |
| | | this.car.departName = data.departName; |
| | | this.selectOrg.orgsid = []; |
| | | this.selectOrg.orgsid.push(data.id); |
| | | } else { |
| | | // 再次直接进行赋值为空操作 |
| | | this.selectOrg.orgsid = []; |
| | | this.user.departmentId = ""; |
| | | } |
| | | }, |
| | | }, |
| | | props: ["closeDialog"], |
| | | }; |