安全在线教育平台
祖安之光
20 hours ago 7e827c55fa38991089d6d735f5f425b3e9cb96e1
修改名称
17 files modified
154 ■■■■ changed files
src/api/system/dept.js 12 ●●●● patch | view | raw | blame | history
src/api/system/role.js 2 ●●● patch | view | raw | blame | history
src/api/system/user.js 2 ●●● patch | view | raw | blame | history
src/layout/components/Navbar.vue 2 ●●● patch | view | raw | blame | history
src/views/error/noMenu.vue 2 ●●● patch | view | raw | blame | history
src/views/monitor/online/index.vue 2 ●●● patch | view | raw | blame | history
src/views/onlineEducation/classHourBatch/components/batchDialog.vue 6 ●●●● patch | view | raw | blame | history
src/views/onlineEducation/classHourBatch/index.vue 14 ●●●●● patch | view | raw | blame | history
src/views/onlineEducation/offlineEducation/index.vue 2 ●●● patch | view | raw | blame | history
src/views/onlineEducation/people/components/stuDialog.vue 6 ●●●● patch | view | raw | blame | history
src/views/onlineEducation/people/index.vue 4 ●●●● patch | view | raw | blame | history
src/views/onlineEducation/systemManage/user/components/userDialog.vue 30 ●●●● patch | view | raw | blame | history
src/views/onlineEducation/systemManage/user/index.vue 10 ●●●● patch | view | raw | blame | history
src/views/system/dept/index.vue 30 ●●●● patch | view | raw | blame | history
src/views/system/role/index.vue 12 ●●●● patch | view | raw | blame | history
src/views/system/user/index.vue 16 ●●●● patch | view | raw | blame | history
src/views/system/user/profile/index.vue 2 ●●● patch | view | raw | blame | history
src/api/system/dept.js
@@ -1,6 +1,6 @@
import request from '@/utils/request'
// 查询部门列表
// 查询学院列表
export function listDept(query) {
  return request({
    url: '/system/dept/list',
@@ -9,7 +9,7 @@
  })
}
// 查询部门列表(排除节点)
// 查询学院列表(排除节点)
export function listDeptExcludeChild(deptId) {
  return request({
    url: '/system/dept/list/exclude/' + deptId,
@@ -17,7 +17,7 @@
  })
}
// 查询部门详细
// 查询学院详细
export function getDept(deptId) {
  return request({
    url: '/system/dept/' + deptId,
@@ -25,7 +25,7 @@
  })
}
// 新增部门
// 新增学院
export function addDept(data) {
  return request({
    url: '/system/dept',
@@ -34,7 +34,7 @@
  })
}
// 修改部门
// 修改学院
export function updateDept(data) {
  return request({
    url: '/system/dept',
@@ -43,7 +43,7 @@
  })
}
// 删除部门
// 删除学院
export function delDept(deptId) {
  return request({
    url: '/system/dept/' + deptId,
src/api/system/role.js
@@ -110,7 +110,7 @@
  })
}
// 根据角色ID查询部门树结构
// 根据角色ID查询学院树结构
export function deptTreeSelect(roleId) {
  return request({
    url: '/system/role/deptTree/' + roleId,
src/api/system/user.js
@@ -126,7 +126,7 @@
  })
}
// 查询部门下拉树结构
// 查询学院下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/system/user/deptTree',
src/layout/components/Navbar.vue
@@ -90,7 +90,7 @@
  if(getToken()){
    userInfo.value = JSON.parse(Cookies.get('userInfo'))
    userName.value = userInfo.value.username
    userTypeName.value = userInfo.value.userType == 0 ? '管理员' : userInfo.value.userType == 1 ? '企业级' :userInfo.value.userType == 2 ? '部门级':userInfo.value.userType == 3 ? '车间级' :userInfo.value.userType == 4 ? '其他' : '学员'
    userTypeName.value = userInfo.value.userType == 0 ? '管理员' : userInfo.value.userType == 1 ? '单位级' :userInfo.value.userType == 2 ? '学院级':userInfo.value.userType == 3 ? '实验室级' :userInfo.value.userType == 4 ? '其他' : '学员'
    console.log("userInfo",userInfo.value )
  }
  // getState();
src/views/error/noMenu.vue
@@ -6,7 +6,7 @@
          {{data.stateMsg}}
        </el-tag>
      </div>
      <span style="font-size: 25px;font-weight: 600;margin-top: 20px">请<span v-if="data.state ===3">整改提交后</span>联系监管部门审核</span>
      <span style="font-size: 25px;font-weight: 600;margin-top: 20px">请<span v-if="data.state ===3">整改提交后</span>联系监管学院审核</span>
    </div>
</template>
src/views/monitor/online/index.vue
@@ -36,7 +36,7 @@
         </el-table-column>
         <el-table-column label="会话编号" align="center" prop="tokenId" :show-overflow-tooltip="true" />
         <el-table-column label="登录名称" align="center" prop="userName" :show-overflow-tooltip="true" />
         <el-table-column label="所属部门" align="center" prop="deptName" :show-overflow-tooltip="true" />
         <el-table-column label="所属学院" align="center" prop="deptName" :show-overflow-tooltip="true" />
         <el-table-column label="主机" align="center" prop="ipaddr" :show-overflow-tooltip="true" />
         <el-table-column label="登录地点" align="center" prop="loginLocation" :show-overflow-tooltip="true" />
         <el-table-column label="操作系统" align="center" prop="os" :show-overflow-tooltip="true" />
src/views/onlineEducation/classHourBatch/components/batchDialog.vue
@@ -137,15 +137,15 @@
  levelList: [
    {
      id: 1,
      name: '公司级 '
      name: '单位级 '
    },
    {
      id: 2,
      name: '部门级'
      name: '学院级'
    },
    {
      id: 3,
      name: '车间级'
      name: '实验室级'
    },
    {
      id: 4,
src/views/onlineEducation/classHourBatch/index.vue
@@ -49,14 +49,18 @@
      <el-table-column label="创建企业" prop="companyName" align="center"  />
      <el-table-column label="批次级别" prop="level" align="center"  >
        <template #default="scope">
          <span>{{scope.row.level === 1 ? '公司级' : scope.row.level === 2 ? '部门级' : scope.row.level === 3 ? '车间级' : '其他'  }}</span>
          <span>{{scope.row.level === 1 ? '单位级' : scope.row.level === 2 ? '学院级' : scope.row.level === 3 ? '实验室级' : '其他'  }}</span>
        </template>
      </el-table-column>
      <el-table-column label="课程" prop="courseName" align="center"  />
      <el-table-column label="学习人数" prop="studentCount" align="center"  />
      <el-table-column label="总课时" prop="coursePeriodNum" align="center"  />
      <el-table-column label="已完成人数" prop="finishCount" align="center"  />
      <el-table-column label="完成率" prop="finishRate" align="center"  />
      <el-table-column label="完成率" prop="finishRate" align="center">
        <template #default="scope">
          <span>{{scope.row.finishRate.toFixed(2)}}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width"  width="180">
        <template #default="scope">
          <el-button link type="primary" @click="toStuChoose(scope.row)">学生数据</el-button>
@@ -110,15 +114,15 @@
  levelList: [
    {
      id: 1,
      name: '公司级 '
      name: '单位级 '
    },
    {
      id: 2,
      name: '部门级'
      name: '学院级'
    },
    {
      id: 3,
      name: '车间级'
      name: '实验室级'
    },
    {
      id: 4,
src/views/onlineEducation/offlineEducation/index.vue
@@ -62,7 +62,7 @@
      <el-table-column label="课程名称" prop="courseName" align="center"/>
      <el-table-column label="培训等级" prop="level" align="center">
        <template #default="scope">
          <span>{{scope.row.sex == 1 ? '公司级':scope.row.sex == 2 ? '部门级' : '车间级'}}</span>
          <span>{{scope.row.sex == 1 ? '单位级':scope.row.sex == 2 ? '学院级' : '实验室级'}}</span>
        </template>
      </el-table-column>
      <el-table-column label="要求课时(分)" prop="period" align="center"/>
src/views/onlineEducation/people/components/stuDialog.vue
@@ -33,7 +33,7 @@
        <el-form-item label="重复密码:" prop="confirmPassword" v-if="state.title == '新增' || state.title == '修改密码'">
          <el-input v-model.trim="state.form.confirmPassword" type="password" show-password placeholder="请输入确认密码"></el-input>
        </el-form-item>
        <el-form-item label="所属部门账号:"  prop="createBy" v-if="state.title !== '修改密码' && (currentUserType === 1 || currentUserType === 4)">
        <el-form-item label="所属学院账号:"  prop="createBy" v-if="state.title !== '修改密码' && (currentUserType === 1 || currentUserType === 4)">
          <el-select
              clearable
              v-model="state.form.createBy"
@@ -41,7 +41,7 @@
              remote
              @change="selectValue"
              reserve-keyword
              placeholder="请输入部门账号名称"
              placeholder="请输入学院账号名称"
              remote-show-suffix
              :remote-method="getDeptUserList"
              :loading="loading"
@@ -230,7 +230,7 @@
    confirmPassword: [{ required: true, validator: equalToPassword, trigger: 'blur' }],
    phone: [{ required: true, validator: validateUserPhone, trigger: 'blur' }],
    idNo: [{ required: true, validator: validateIdNo, trigger: 'blur' }],
    createBy: [{ required: true, message: '请输入所属部门名称', trigger: 'blur' }],
    createBy: [{ required: true, message: '请输入所属学院名称', trigger: 'blur' }],
  },
  isAdmin: false,
src/views/onlineEducation/people/index.vue
@@ -130,10 +130,10 @@
const openDialog = (type, value) => {
  if(type == 'add' && data.isAdmin){
    ElMessage.warning('监管部门请联系企业创建企业学员')
    ElMessage.warning('监管学院请联系企业创建企业学员')
  }
  // else if(userType.value !== 3 && (type == 'add' || type == 'edit')) {
  //   ElMessage.warning(' 只有车间级用户才能新增和编辑')
  //   ElMessage.warning(' 只有实验室级用户才能新增和编辑')
  // }
  else{
    dialogRef.value.openDialog(type, value);
src/views/onlineEducation/systemManage/user/components/userDialog.vue
@@ -13,7 +13,7 @@
          <el-input v-model.trim="state.form.username" :disabled="state.title =='编辑' || state.title =='查看'" placeholder="请输入用户名" ></el-input>
        </el-form-item>
        <el-form-item label="名称:"  prop="name" v-if="state.title !== '修改密码'">
          <el-input v-model.trim="state.form.name" :disabled="disabled" placeholder="请输入公司、部门或者车间岗位名"></el-input>
          <el-input v-model.trim="state.form.name" :disabled="disabled" placeholder="请输入学院、实验室名称"></el-input>
        </el-form-item>
        <el-form-item label="性别:"  prop="sex" v-if="state.title !== '修改密码'">
          <el-radio-group v-model="state.form.sex"  :disabled="disabled">
@@ -33,22 +33,22 @@
        <el-form-item label="用户类型:" v-if="state.title !== '修改密码'" prop="userType">
          <el-radio-group v-model="state.form.userType"  :disabled="disabled" @change="changeType" v-if="state.title == '新增'">
            <el-radio :label="0" v-if="state.currentUserType == 0">管理员</el-radio>
            <el-radio :label="1" v-if="state.currentUserType == 0 ">企业级</el-radio>
            <el-radio :label="2" v-if="state.currentUserType == 1 ">部门级</el-radio>
            <el-radio :label="3" v-if="!state.isAdmin">车间(岗位)级</el-radio>
            <el-radio :label="1" v-if="state.currentUserType == 0 ">单位级</el-radio>
            <el-radio :label="2" v-if="state.currentUserType == 1 ">学院级</el-radio>
            <el-radio :label="3" v-if="!state.isAdmin">实验室级</el-radio>
            <el-radio :label="4" v-if="state.currentUserType == 0">其他</el-radio>
          </el-radio-group>
          <span v-else-if="state.title == '查看'">{{state.currentUserType === 0 ? '管理员' : state.currentUserType === 1 ? '企业级' : state.currentUserType === 2 ? '部门级' : state.currentUserType === 3 ? '车间级' :'其他'}}</span>
          <span v-else-if="state.title == '编辑'">{{state.form.userType === 0 ? '管理员' : state.form.userType === 1 ? '企业级' : state.form.userType === 2 ? '部门级' : state.form.userType === 3 ? '车间级' :'其他'}}</span>
          <span v-else-if="state.title == '查看'">{{state.currentUserType === 0 ? '管理员' : state.currentUserType === 1 ? '单位级' : state.currentUserType === 2 ? '学院级' : state.currentUserType === 3 ? '实验室级' :'其他'}}</span>
          <span v-else-if="state.title == '编辑'">{{state.form.userType === 0 ? '管理员' : state.form.userType === 1 ? '单位级' : state.form.userType === 2 ? '学院级' : state.form.userType === 3 ? '实验室级' :'其他'}}</span>
          <!--          <el-radio-group v-model="state.form.userType"  :disabled="disabled" @change="changeType" v-else-if="state.title == '编辑'">-->
<!--            <el-radio :label="0" v-if="state.currentUserType == 0">管理员</el-radio>-->
<!--            <el-radio :label="1" >企业级</el-radio>-->
<!--            <el-radio :label="2" >部门级</el-radio>-->
<!--            <el-radio :label="3" >车间(岗位)级</el-radio>-->
<!--            <el-radio :label="1" >单位级</el-radio>-->
<!--            <el-radio :label="2" >学院级</el-radio>-->
<!--            <el-radio :label="3" >实验室级</el-radio>-->
<!--            <el-radio :label="4" >其他</el-radio>-->
<!--          </el-radio-group>-->
        </el-form-item>
        <el-form-item label="所属企业:" prop="companyName" v-if="state.title !== '修改密码' && showCompany">
        <el-form-item label="所属单位:" prop="companyName" v-if="state.title !== '修改密码' && showCompany">
          <el-select
              clearable
              v-if="state.isAdmin"
@@ -79,7 +79,7 @@
<!--                style="width: 45%"-->
<!--                v-loadMore="loadMore"-->
<!--                class="m-2"-->
<!--                placeholder="请选择所属企业"-->
<!--                placeholder="请选择所属单位"-->
<!--                popper-class="more_select_dropdown"-->
<!--            >-->
<!--              <el-option-->
@@ -219,7 +219,7 @@
    parentId: null
  },
  formRules:{
    name: [{ required: true, message: '请输入公司、部门或者车间岗位名称', trigger: 'blur' }],
    name: [{ required: true, message: '请输入学院、实验室名称称', trigger: 'blur' }],
    companyName: [{ required: true, message: '请选择上级企业', trigger: 'blur' }],
    username: [{ required: true, trigger: "blur", validator: validateUsername }],
    password: [{ required: true, validator: validatePwd, trigger: 'blur' }],
@@ -445,7 +445,7 @@
      showChild.value = false;
    }
  }
  //当前是企业级/其他用户选择部门
  //当前是单位级/其他用户选择学院
  if((state.currentUserType === 1 && state.form.userType === 2) || (state.currentUserType === 4 && state.form.userType === 2)){
    state.form.parentId = userInfo.value.id;
    state.form.companyName = userInfo.value.companyName
@@ -453,7 +453,7 @@
    showChild.value = false;
    showCompany.value = true;
  } //当前是企业级/其他用户选择车间
  } //当前是单位级/其他用户选择实验室
  else if((state.currentUserType === 1 && state.form.userType === 3) || (state.currentUserType === 4 && state.form.userType === 3)){
    state.form.companyName = userInfo.value.companyName
    state.form.companyId = userInfo.value.companyId;
@@ -467,7 +467,7 @@
      scrollRef.value.getList(param,'change');
    })
  }
  //当前是部门级选择车间
  //当前是学院级选择实验室
  if((state.currentUserType === 2 && state.form.userType === 3)){
    state.form.parentId = userInfo.value.id;
    state.form.companyName = userInfo.value.companyName
src/views/onlineEducation/systemManage/user/index.vue
@@ -92,15 +92,15 @@
    },
    {
      id: 1,
      name: '企业级'
      name: '单位级'
    },
    {
      id: 2,
      name: '部门级'
      name: '学院级'
    },
    {
      id: 3,
      name: '车间(岗位)级别'
      name: '实验室级别'
    },
    {
      id: 4,
@@ -128,7 +128,7 @@
    data.dataList = res.data.list.map(item => {
      return {
        ...item,
        userTypeName: item.userType === 0 ? '管理员' : item.userType === 1 ? '企业级' : item.userType === 2 ? '部门级' : item.userType === 3 ? '车间级' :'其他'
        userTypeName: item.userType === 0 ? '管理员' : item.userType === 1 ? '单位级' : item.userType === 2 ? '学院级' : item.userType === 3 ? '实验室级' :'其他'
      }
    })
    data.total = res.data.total
@@ -140,7 +140,7 @@
const openDialog = (type, value) => {
  if(userInfo.value.userType === 3){
    ElMessage.warning('车间级用户不能新增')
    ElMessage.warning('实验室级用户不能新增')
    return;
  }
  dialogRef.value.openDialog(type, value);
src/views/system/dept/index.vue
@@ -1,17 +1,17 @@
<template>
   <div class="app-container">
      <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
         <el-form-item label="部门名称" prop="deptName">
         <el-form-item label="学院名称" prop="deptName">
            <el-input
               v-model="queryParams.deptName"
               placeholder="请输入部门名称"
               placeholder="请输入学院名称"
               clearable
               style="width: 200px"
               @keyup.enter="handleQuery"
            />
         </el-form-item>
         <el-form-item label="状态" prop="status">
            <el-select v-model="queryParams.status" placeholder="部门状态" clearable style="width: 200px">
            <el-select v-model="queryParams.status" placeholder="学院状态" clearable style="width: 200px">
               <el-option
                  v-for="dict in sys_normal_disable"
                  :key="dict.value"
@@ -55,7 +55,7 @@
         :default-expand-all="isExpandAll"
         :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
      >
         <el-table-column prop="deptName" label="部门名称" width="260"></el-table-column>
         <el-table-column prop="deptName" label="学院名称" width="260"></el-table-column>
         <el-table-column prop="orderNum" label="排序" width="200"></el-table-column>
         <el-table-column prop="status" label="状态" width="100">
            <template #default="scope">
@@ -76,25 +76,25 @@
         </el-table-column>
      </el-table>
      <!-- 添加或修改部门对话框 -->
      <!-- 添加或修改学院对话框 -->
      <el-dialog :title="title" v-model="open" width="600px" append-to-body>
         <el-form ref="deptRef" :model="form" :rules="rules" label-width="80px">
            <el-row>
               <el-col :span="24" v-if="form.parentId !== 0">
                  <el-form-item label="上级部门" prop="parentId">
                  <el-form-item label="上级学院" prop="parentId">
                     <el-tree-select
                        v-model="form.parentId"
                        :data="deptOptions"
                        :props="{ value: 'deptId', label: 'deptName', children: 'children' }"
                        value-key="deptId"
                        placeholder="选择上级部门"
                        placeholder="选择上级学院"
                        check-strictly
                     />
                  </el-form-item>
               </el-col>
               <el-col :span="12">
                  <el-form-item label="部门名称" prop="deptName">
                     <el-input v-model="form.deptName" placeholder="请输入部门名称" />
                  <el-form-item label="学院名称" prop="deptName">
                     <el-input v-model="form.deptName" placeholder="请输入学院名称" />
                  </el-form-item>
               </el-col>
               <el-col :span="12">
@@ -118,7 +118,7 @@
                  </el-form-item>
               </el-col>
               <el-col :span="12">
                  <el-form-item label="部门状态">
                  <el-form-item label="学院状态">
                     <el-radio-group v-model="form.status">
                        <el-radio
                           v-for="dict in sys_normal_disable"
@@ -162,8 +162,8 @@
    status: undefined
  },
  rules: {
    parentId: [{ required: true, message: "上级部门不能为空", trigger: "blur" }],
    deptName: [{ required: true, message: "部门名称不能为空", trigger: "blur" }],
    parentId: [{ required: true, message: "上级学院不能为空", trigger: "blur" }],
    deptName: [{ required: true, message: "学院名称不能为空", trigger: "blur" }],
    orderNum: [{ required: true, message: "显示排序不能为空", trigger: "blur" }],
    email: [{ type: "email", message: "请输入正确的邮箱地址", trigger: ["blur", "change"] }],
    phone: [{ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "blur" }]
@@ -172,7 +172,7 @@
const { queryParams, form, rules } = toRefs(data);
/** 查询部门列表 */
/** 查询学院列表 */
function getList() {
  loading.value = true;
  listDept(queryParams.value).then(response => {
@@ -218,7 +218,7 @@
    form.value.parentId = row.deptId;
  }
  open.value = true;
  title.value = "添加部门";
  title.value = "添加学院";
}
/** 展开/折叠操作 */
function toggleExpandAll() {
@@ -237,7 +237,7 @@
  getDept(row.deptId).then(response => {
    form.value = response.data;
    open.value = true;
    title.value = "修改部门";
    title.value = "修改学院";
  });
}
/** 提交按钮 */
src/views/system/role/index.vue
@@ -273,8 +273,8 @@
const dataScopeOptions = ref([
  { value: "1", label: "全部数据权限" },
  { value: "2", label: "自定数据权限" },
  { value: "3", label: "本部门数据权限" },
  { value: "4", label: "本部门及以下数据权限" },
  { value: "3", label: "本学院数据权限" },
  { value: "4", label: "本学院及以下数据权限" },
  { value: "5", label: "仅本人数据权限" }
]);
@@ -372,11 +372,11 @@
    menuOptions.value = response.data;
  });
}
/** 所有部门节点数据 */
/** 所有学院节点数据 */
function getDeptAllCheckedKeys() {
  // 目前被选中的部门节点
  // 目前被选中的学院节点
  let checkedKeys = deptRef.value.getCheckedKeys();
  // 半选中的部门节点
  // 半选中的学院节点
  let halfCheckedKeys = deptRef.value.getHalfCheckedKeys();
  checkedKeys.unshift.apply(checkedKeys, halfCheckedKeys);
  return checkedKeys;
@@ -440,7 +440,7 @@
    return response;
  });
}
/** 根据角色ID查询部门树结构 */
/** 根据角色ID查询学院树结构 */
function getDeptTree(roleId) {
  return deptTreeSelect(roleId).then(response => {
    deptOptions.value = response.depts;
src/views/system/user/index.vue
@@ -1,12 +1,12 @@
<template>
   <div class="app-container">
      <el-row :gutter="20">
         <!--部门数据-->
         <!--学院数据-->
         <el-col :span="4" :xs="24">
            <div class="head-container">
               <el-input
                  v-model="deptName"
                  placeholder="请输入部门名称"
                  placeholder="请输入学院名称"
                  clearable
                  prefix-icon="Search"
                  style="margin-bottom: 20px"
@@ -134,7 +134,7 @@
               <el-table-column label="用户编号" align="center" key="userId" prop="userId" v-if="columns[0].visible" />
               <el-table-column label="用户名称" align="center" key="userName" prop="userName" v-if="columns[1].visible" :show-overflow-tooltip="true" />
               <el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
               <el-table-column label="部门" align="center" key="deptName" prop="dept.deptName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
               <el-table-column label="学院" align="center" key="deptName" prop="dept.deptName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
               <el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" v-if="columns[4].visible" width="120" />
               <el-table-column label="状态" align="center" key="status" v-if="columns[5].visible">
                  <template #default="scope">
@@ -188,13 +188,13 @@
                  </el-form-item>
               </el-col>
               <el-col :span="12">
                  <el-form-item label="归属部门" prop="deptId">
                  <el-form-item label="归属学院" prop="deptId">
                     <el-tree-select
                        v-model="form.deptId"
                        :data="deptOptions"
                        :props="{ value: 'id', label: 'label', children: 'children' }"
                        value-key="id"
                        placeholder="请选择归属部门"
                        placeholder="请选择归属学院"
                        check-strictly
                     />
                  </el-form-item>
@@ -372,7 +372,7 @@
  { key: 0, label: `用户编号`, visible: true },
  { key: 1, label: `用户名称`, visible: true },
  { key: 2, label: `用户昵称`, visible: true },
  { key: 3, label: `部门`, visible: true },
  { key: 3, label: `学院`, visible: true },
  { key: 4, label: `手机号码`, visible: true },
  { key: 5, label: `状态`, visible: true },
  { key: 6, label: `创建时间`, visible: true }
@@ -404,11 +404,11 @@
  if (!value) return true;
  return data.label.indexOf(value) !== -1;
};
/** 根据名称筛选部门树 */
/** 根据名称筛选学院树 */
watch(deptName, val => {
  proxy.$refs["deptTreeRef"].filter(val);
});
/** 查询部门下拉树结构 */
/** 查询学院下拉树结构 */
function getDeptTree() {
  deptTreeSelect().then(response => {
    deptOptions.value = response.data;
src/views/system/user/profile/index.vue
@@ -26,7 +26,7 @@
                        <div class="pull-right">{{ state.user.email }}</div>
                     </li>
                     <li class="list-group-item">
                        <svg-icon icon-class="tree" />所属部门
                        <svg-icon icon-class="tree" />所属学院
                        <div class="pull-right" v-if="state.user.dept">{{ state.user.dept.deptName }} / {{ state.postGroup }}</div>
                     </li>
                     <li class="list-group-item">