lkk
2025-03-12 a98aa4517e7244024f4647b2789b152948439f22
gundongtiao
4个文件已修改
100 ■■■■ 已修改文件
src/views/system/dept/index.vue 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/role/authUser.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/role/selectUser.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/index.vue 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/dept/index.vue
@@ -12,18 +12,20 @@
            style="margin-bottom: 15px"
          />
        </div>
        <div class="head-container">
          <el-tree
            :data="deptOption"
            :props="defaultProps"
            :expand-on-click-node="false"
            :filter-node-method="filterNode"
            ref="tree"
            node-key="id"
            default-expand-all
            highlight-current
            @node-click="handleNodeClick"
          />
        <div class="scrollable-container">
          <div class="content">
            <el-tree
              :data="deptOption"
              :props="defaultProps"
              :expand-on-click-node="false"
              :filter-node-method="filterNode"
              ref="tree"
              node-key="id"
              default-expand-all
              highlight-current
              @node-click="handleNodeClick"
            />
          </div>
        </div>
      </el-col>
      <el-col :span="20" :xs="24">
@@ -366,12 +368,16 @@
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="cancel">取 消</el-button>
        <el-button type="primary" @click="submitForm">确 定</el-button>
      </div>
      <!-- 在父组件中 -->
      <Packagese ref="aaa" :visible="showPackagese" @add="handleChanges" :selectedId="form.hisksid" />
      <Packagese
        ref="aaa"
        :visible="showPackagese"
        @add="handleChanges"
        :selectedId="form.hisksid"
      />
    </el-dialog>
  </div>
</template>
@@ -509,7 +515,6 @@
  },
  methods: {
    handleQuerys() {
      this.showPackagese = true;
      if (this.form.hisksid) {
        this.$refs.aaa.list = [
@@ -750,3 +755,17 @@
};
</script>
<style scoped>
.scrollable-container {
  width: 200px; /* 设置容器的宽度 */
  height: 629px; /* 设置容器的高度 */
  overflow: auto; /* 允许内容溢出时显示滚动条 */
  border: 1px solid #ccc; /* 可选:添加边框以更好地显示容器 */
  position: relative; /* 可选:使容器内的绝对定位元素能够正确显示 */
}
.content {
  width: 600px; /* 设置内容的宽度,以触发水平滚动条 */
  height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */
}
</style>
src/views/system/role/authUser.vue
@@ -1,10 +1,10 @@
<template>
  <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
      <el-form-item label="用户名称" prop="userName">
      <el-form-item label="用户工号" prop="userName">
        <el-input
          v-model="queryParams.userName"
          placeholder="请输入用户名称"
          placeholder="请输入用户工号"
          clearable
          style="width: 240px"
          @keyup.enter.native="handleQuery"
@@ -61,7 +61,7 @@
    <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="用户名称" prop="userName" :show-overflow-tooltip="true" />
      <el-table-column label="用户工号" prop="userName" :show-overflow-tooltip="true" />
      <el-table-column label="用户昵称" prop="nickName" :show-overflow-tooltip="true" />
      <el-table-column label="科室" prop="deptName" :show-overflow-tooltip="true" />
      <el-table-column label="邮箱" prop="email" :show-overflow-tooltip="true" />
src/views/system/role/selectUser.vue
@@ -2,10 +2,10 @@
  <!-- 授权用户 -->
  <el-dialog title="选择用户" :visible.sync="visible" width="800px" top="5vh" append-to-body>
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
      <el-form-item label="用户名称" prop="userName">
      <el-form-item label="用户工号" prop="userName">
        <el-input
          v-model="queryParams.userName"
          placeholder="请输入用户名称"
          placeholder="请输入用户工号"
          clearable
          @keyup.enter.native="handleQuery"
        />
@@ -26,7 +26,7 @@
    <el-row>
      <el-table @row-click="clickRow" ref="table" :data="userList" @selection-change="handleSelectionChange" height="260px">
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column label="用户名称" prop="userName" :show-overflow-tooltip="true" />
        <el-table-column label="用户工号" prop="userName" :show-overflow-tooltip="true" />
        <el-table-column label="用户昵称" prop="nickName" :show-overflow-tooltip="true" />
        <el-table-column label="科室" prop="deptName" :show-overflow-tooltip="true" />
        <el-table-column label="邮箱" prop="email" :show-overflow-tooltip="true" />
src/views/system/user/index.vue
@@ -13,7 +13,7 @@
            style="margin-bottom: 15px"
          />
        </div>
        <div class="head-container">
        <!-- <div class="head-container">
          <el-tree
            :data="deptOptions"
            :props="defaultProps"
@@ -26,6 +26,21 @@
            highlight-current
            @node-click="handleNodeClick"
          />
        </div> -->
        <div class="scrollable-container">
          <div class="content">
            <el-tree
              :data="deptOptions"
              :props="defaultProps"
              :expand-on-click-node="false"
              :filter-node-method="filterNode"
              ref="tree"
              node-key="id"
              :default-expanded-keys="treeId"
              highlight-current
              @node-click="handleNodeClick"
            />
          </div>
        </div>
      </el-col>
@@ -359,7 +374,7 @@
                  icon="el-icon-d-arrow-right"
                  title="更多"
                ></el-button>
                <el-dropdown-menu slot="dropdown" :append-to-body="false">
                <el-dropdown-menu slot="dropdown" :append-to-body="true">
                  <el-dropdown-item
                    command="handleResetPwd"
                    icon="el-icon-key"
@@ -372,7 +387,6 @@
                    v-hasPermi="['system:user:edit']"
                    >分配角色</el-dropdown-item
                  >
                </el-dropdown-menu>
              </el-dropdown>
            </template>
@@ -523,7 +537,7 @@
          <el-form-item label="所在医院" prop="hospId">
            <el-select
            v-if="hospList.length > 0"
              v-if="hospList.length > 0"
              v-model="form.hospId"
              placeholder="请选择所在医院"
              clearable
@@ -544,7 +558,7 @@
            <!-- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属科室"
              style="width: 200px" /> -->
            <el-select
            v-if="DepartmentList.length > 0"
              v-if="DepartmentList.length > 0"
              v-model="form.deptId"
              placeholder="请选择归属科室"
              clearable
@@ -1627,7 +1641,7 @@
    //   this.initPassword = response.msg;
    // });
  },
  methods: {
    handleChange(val) {},
    /** 查询用户列表 */
@@ -1785,7 +1799,7 @@
    // 更多操作触发
    handleCommand(command, row) {
      console.log('Command triggered:', command);
      console.log("Command triggered:", command);
      switch (command) {
        case "handleResetPwd":
@@ -2011,6 +2025,17 @@
  line-height: 36px;
  width: 200px;
}
.scrollable-container {
  width: 200px; /* 设置容器的宽度 */
  height: 629px; /* 设置容器的高度 */
  overflow: auto; /* 允许内容溢出时显示滚动条 */
  border: 1px solid #ccc; /* 可选:添加边框以更好地显示容器 */
  position: relative; /* 可选:使容器内的绝对定位元素能够正确显示 */
}
.content {
  width: 600px; /* 设置内容的宽度,以触发水平滚动条 */
  height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */
}
.pag {
  width: 100%;