qx
qx
2025-06-26 ede06384b2a72aab57702d31dac707c096c7b966
src/views/system/user/index.vue
@@ -36,7 +36,6 @@
              :filter-node-method="filterNode"
              ref="tree"
              node-key="id"
              default-expand-all
              :default-expanded-keys="treeId"
              highlight-current
              @node-click="handleNodeClick"
@@ -375,7 +374,7 @@
                  icon="el-icon-d-arrow-right"
                  title="更多"
                ></el-button>
                <el-dropdown-menu slot="dropdown">
                <el-dropdown-menu slot="dropdown" :append-to-body="true">
                  <el-dropdown-item
                    command="handleResetPwd"
                    icon="el-icon-key"
@@ -388,15 +387,6 @@
                    v-hasPermi="['system:user:edit']"
                    >分配角色</el-dropdown-item
                  >
                  <!-- 添加用户详情按钮 点击跳出该用户的详细信息页面 -->
                  <!-- <el-button
                    size="mini"
                    type="text"
                    icon="el-icon-share"
                    @click="handleSearch(scope.row)"
                    v-hasPermi="['hosp:Userinfo:list']"
                    >详细信息</el-button
                  > -->
                </el-dropdown-menu>
              </el-dropdown>
            </template>
@@ -564,11 +554,10 @@
            </el-select>
            <!-- <el-input v-model="form.hospName" placeholder="请输入组织中文名称" /> -->
          </el-form-item>
          <el-form-item label="归属科室" prop="deptId">
          <el-form-item label="归属科室" prop="deptId" >
            <!-- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属科室"
              style="width: 200px" /> -->
            <el-select
              v-if="DepartmentList.length > 0"
            <el-select
              v-model="form.deptId"
              placeholder="请选择归属科室"
              clearable
@@ -1467,6 +1456,7 @@
      hospList: [],
      activeNames: ["1"],
      treeId: [],
      selectedDeptId: null,
      // 遮罩层
      loading: true,
      // 选中数组
@@ -1720,6 +1710,7 @@
    // 节点单击事件
    handleNodeClick(data) {
      this.queryParams.deptId = data.id;
      this.selectedDeptId = data.id;
      this.handleQuery();
    },
    handlePackage() {
@@ -1754,10 +1745,11 @@
    cancel() {
      this.open = false;
      this.reset();
      this.$tab.refreshPage();
      // this.$tab.refreshPage();
    },
    handleClose() {
      this.$tab.refreshPage();
      this.cancel();
      // this.$tab.refreshPage();
    },
    // 表单重置
    reset() {
@@ -1835,6 +1827,9 @@
          this.sendhospName();
        }
      });
      if (this.selectedDeptId) {
        this.form.deptId = this.selectedDeptId;
      }
      // getUser().then((response) => {
      //   this.postOptions = response.posts;
      //   this.roleOptions = response.roles;
@@ -1850,7 +1845,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);
      });
    },
@@ -2046,6 +2041,7 @@
  width: 600px; /* 设置内容的宽度,以触发水平滚动条 */
  height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */
}
.pag {
  width: 100%;
  display: flex;