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>
@@ -568,7 +558,6 @@
            <!-- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属科室"
              style="width: 200px" /> -->
            <el-select
              v-if="DepartmentList.length > 0"
              v-model="form.deptId"
              placeholder="请选择归属科室"
              clearable
@@ -1450,6 +1439,7 @@
        console.log(11111);
        return callback("");
      } else if (value != undefined && value != "") {
        console.log(22222);
        return callback();
      } else if (!patter.test(value)) {
        console.log(33333);
@@ -1466,6 +1456,7 @@
      hospList: [],
      activeNames: ["1"],
      treeId: [],
      selectedDeptId: null,
      // 遮罩层
      loading: true,
      // 选中数组
@@ -1719,6 +1710,7 @@
    // 节点单击事件
    handleNodeClick(data) {
      this.queryParams.deptId = data.id;
      this.selectedDeptId = data.id;
      this.handleQuery();
    },
    handlePackage() {
@@ -1752,11 +1744,12 @@
    // 取消按钮
    cancel() {
      this.open = false;
      // this.reset();
      this.reset();
      // this.$tab.refreshPage();
    },
    handleClose() {
      this.$tab.refreshPage();
      this.cancel();
      // this.$tab.refreshPage();
    },
    // 表单重置
    reset() {
@@ -1834,6 +1827,9 @@
          this.sendhospName();
        }
      });
      if (this.selectedDeptId) {
        this.form.deptId = this.selectedDeptId;
      }
      // getUser().then((response) => {
      //   this.postOptions = response.posts;
      //   this.roleOptions = response.roles;
@@ -1849,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);
      });
    },
@@ -2045,6 +2041,7 @@
  width: 600px; /* 设置内容的宽度,以触发水平滚动条 */
  height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */
}
.pag {
  width: 100%;
  display: flex;