| | |
| | | hospList: [], |
| | | activeNames: ["1"], |
| | | treeId: [], |
| | | selectedDeptId: null, |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | |
| | | // 节点单击事件 |
| | | handleNodeClick(data) { |
| | | this.queryParams.deptId = data.id; |
| | | this.selectedDeptId = data.id; |
| | | this.handleQuery(); |
| | | }, |
| | | handlePackage() { |
| | |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | this.$tab.refreshPage(); |
| | | // this.$tab.refreshPage(); |
| | | }, |
| | | handleClose() { |
| | | this.$tab.refreshPage(); |
| | | this.cancel(); |
| | | // this.$tab.refreshPage(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | |
| | | this.sendhospName(); |
| | | } |
| | | }); |
| | | if (this.selectedDeptId) { |
| | | this.form.deptId = this.selectedDeptId; |
| | | } |
| | | // getUser().then((response) => { |
| | | // this.postOptions = response.posts; |
| | | // this.roleOptions = response.roles; |
| | |
| | | getDeptListByDictHospId(data).then((res) => { |
| | | console.log(res, 123456); |
| | | this.DepartmentList = res.data; |
| | | this.form.deptId = String(this.form.deptId); |
| | | // this.form.deptId = String(this.form.deptId); |
| | | }); |
| | | }, |
| | | |