1
lkk
8 天以前 41710058c166ba40e6cc8b7e3d1f2f18925ef937
src/views/system/user/index.vue
@@ -1457,6 +1457,7 @@
      hospList: [],
      activeNames: ["1"],
      treeId: [],
      selectedDeptId: null,
      // 遮罩层
      loading: true,
      // 选中数组
@@ -1710,6 +1711,7 @@
    // 节点单击事件
    handleNodeClick(data) {
      this.queryParams.deptId = data.id;
      this.selectedDeptId = data.id;
      this.handleQuery();
    },
    handlePackage() {
@@ -1744,10 +1746,11 @@
    cancel() {
      this.open = false;
      this.reset();
      this.$tab.refreshPage();
      // this.$tab.refreshPage();
    },
    handleClose() {
      this.$tab.refreshPage();
      this.cancel();
      // this.$tab.refreshPage();
    },
    // 表单重置
    reset() {
@@ -1825,6 +1828,9 @@
          this.sendhospName();
        }
      });
      if (this.selectedDeptId) {
        this.form.deptId = this.selectedDeptId;
      }
      // getUser().then((response) => {
      //   this.postOptions = response.posts;
      //   this.roleOptions = response.roles;
@@ -1840,7 +1846,7 @@
      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);
      });
    },