孔祥富
2021-03-10 06963d397d023ba076508808c8a0ec55da85067e
Merge remote-tracking branch 'origin/master'
23个文件已修改
534 ■■■■ 已修改文件
src/lang/zh.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/settings.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/cqUser.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/qjUser.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/sbUser.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/tgUser.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/tjUser.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/yjUser.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/ywUser.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/febs/system/job/Index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/febs/system/job/PositionEdit.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/febs/system/user/Edit.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/febs/system/user/Index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/Informationinput.vue 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/archivesChange.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/archivesEdit.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/inemployees.vue 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/outemployess.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/search.vue 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/yunpan/fujian.vue 138 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/yunpan/uploadfj.vue 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/yunpan/zhishou.vue 74 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/zh.js
@@ -1,6 +1,6 @@
export default {
  route: {
    dashboard: '系统主页',
    dashboard: '数据统计',
    profile: '个人中心'
  },
  navbar: {
src/settings.js
@@ -25,6 +25,10 @@
    // 个人文件上传地址
    uploadSinglePath: 'http://120.24.23.155:8301/hr/empAccessory',
    // 个人文件上传地址
    getEmpBaseInfoImage: 'http://120.24.23.155:8301/hr/empBaseInfo/image/'
    getEmpBaseInfoImage: 'http://120.24.23.155:8301/hr/empBaseInfo/image/',
    // 下载员工导入模版
    downloadEmpExcel: 'http://120.24.23.155:8000/员工信息.xls',
    // 导入员工
    uploadEmpExcel: 'http://120.24.23.155:8301/hr/empBaseInfo/importEmp'
  }
}
src/views/dashboard/cqUser.vue
@@ -31,8 +31,8 @@
        <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" />
        <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" />
        <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" />
        <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
        <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
        <el-table-column show-overflow-tooltip prop="certificateNumb" label="证件号码" />
        <el-table-column show-overflow-tooltip prop="attendMonth" label="离职考勤月份" width="120" />
        <el-table-column show-overflow-tooltip prop="attendDays" label="出勤天数" width="100" />
src/views/dashboard/qjUser.vue
@@ -31,8 +31,8 @@
        <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" />
        <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" />
        <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="120" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" />
        <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
        <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
        <el-table-column show-overflow-tooltip prop="certificateNumb" label="证件号码" />
        <el-table-column show-overflow-tooltip prop="beginTime" label="开始时间" width="120" />
        <el-table-column show-overflow-tooltip prop="endTime" label="结束时间" width="120" />
src/views/dashboard/sbUser.vue
@@ -30,7 +30,7 @@
        <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" />
        <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" />
        <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
        <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
        <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
        <el-table-column show-overflow-tooltip prop="applayDate" label="社保申请日期" />
src/views/dashboard/tgUser.vue
@@ -33,9 +33,9 @@
        <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
        <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
        <el-table-column show-overflow-tooltip prop="oldDeptName" label="原护卫点" width="100" />
        <el-table-column show-overflow-tooltip prop="oldJobName" label="原岗位名称" width="100" />
        <el-table-column show-overflow-tooltip prop="oldJobName" label="原岗位" width="100" />
        <el-table-column show-overflow-tooltip prop="newDeptName" label="新护卫点" width="100" />
        <el-table-column show-overflow-tooltip prop="newJobName" label="新岗位名称" width="100" />
        <el-table-column show-overflow-tooltip prop="newJobName" label="新岗位" width="100" />
        <el-table-column show-overflow-tooltip prop="certificateNumb" label="证件号码" />
        <el-table-column show-overflow-tooltip prop="changeType" :formatter="changeTypeFormat" label="调岗类型" width="100" />
        <el-table-column show-overflow-tooltip prop="changeDate" label="调岗位日期" width="150" />
src/views/dashboard/tjUser.vue
@@ -30,7 +30,7 @@
        <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" />
        <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" />
        <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" />
        <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="100" />
        <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
        <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" />
        <el-table-column show-overflow-tooltip prop="hospital" label="体检医院" width="100" />
src/views/dashboard/yjUser.vue
@@ -30,7 +30,7 @@
        <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" />
        <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" />
        <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
        <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
        <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
        <el-table-column show-overflow-tooltip prop="applayDate" label="失业金申请日期" />
src/views/dashboard/ywUser.vue
@@ -30,7 +30,7 @@
        <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" />
        <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="60" />
        <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="60" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="60" />
        <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" />
        <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" />
        <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
        <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="80" />
src/views/febs/system/job/Index.vue
@@ -1,7 +1,7 @@
<template>
  <div class="app-container">
    <div class="filter-container">
      <el-input v-model="queryParams.positionName" placeholder="岗位名称" class="filter-item search-item" />
      <el-input v-model="queryParams.positionName" placeholder="岗位" class="filter-item search-item" />
      <el-button class="hr-but-all" type="primary" @click="search">
        {{ $t('table.search') }}
      </el-button>
@@ -32,7 +32,7 @@
    >
      <el-table-column type="selection" align="center" width="40px" />
      <el-table-column v-if="fsnumShow" label="" prop="positionId" :show-overflow-tooltip="false" align="center" />
      <el-table-column label="岗位名称" prop="positionName" :show-overflow-tooltip="true" align="center" min-width="100px" />
      <el-table-column label="岗位" prop="positionName" :show-overflow-tooltip="true" align="center" min-width="100px" />
      <el-table-column label="岗位编码" prop="positionCode" :show-overflow-tooltip="true" align="center" />
      <el-table-column label="创建时间" prop="createTime" :show-overflow-tooltip="true" align="center" min-width="170px" />
      <el-table-column label="创建人" prop="creator" :show-overflow-tooltip="true" align="center" min-width="160px" />
src/views/febs/system/job/PositionEdit.vue
@@ -8,7 +8,7 @@
    :visible.sync="isVisible"
  >
    <el-form ref="form" :model="position" :rules="rules" label-position="right" label-width="165px">
      <el-form-item label="岗位名称" prop="positionName">
      <el-form-item label="岗位" prop="positionName">
        <el-input v-model="position.positionName" />
      </el-form-item>
      <el-form-item label="岗位编码" prop="positionCode">
src/views/febs/system/user/Edit.vue
@@ -11,7 +11,7 @@
      <el-form-item :label="$t('table.user.username')" prop="username">
        <el-input v-model="user.username" :readonly="user.userId === '' ? false : 'readonly'" />
      </el-form-item>
      <el-form-item label="员工姓名" prop="nickName">
      <el-form-item label="姓名" prop="nickName">
        <el-select v-model="user.nickName" filterable placeholder="" style="width:100%" @change="nickName">
          <el-option
            v-for="item in baseinfo"
src/views/febs/system/user/Index.vue
@@ -83,7 +83,7 @@
          <span>{{ scope.row.username }}</span>
        </template>
      </el-table-column>
      <el-table-column label="员工姓名" prop="nickName" :show-overflow-tooltip="true" align="center" min-width="120px">
      <el-table-column label="姓名" prop="nickName" :show-overflow-tooltip="true" align="center" min-width="120px">
        <template slot-scope="scope">
          <span>{{ scope.row.nickName }}</span>
        </template>
src/views/user/Informationinput.vue
@@ -101,7 +101,7 @@
          <!--          </el-table-column>-->
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="50" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="50" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="50" />
          <el-table-column show-overflow-tooltip prop="empType" label="员工类别" width="80" :formatter="empTypeFormat" />
          <el-table-column show-overflow-tooltip prop="sex" label="性别" width="50" :formatter="sexFormat" />
@@ -149,7 +149,7 @@
            </template>
          </el-table-column>
          <el-table-column prop="empNumb" label="编号" width="100" />
          <el-table-column prop="empName" label="员工姓名" width="100" />
          <el-table-column prop="empName" label="姓名" width="100" />
          <el-table-column prop="certificateNumb" show-overflow-tooltip label="身份证号码" />
          <el-table-column prop="workUnit" show-overflow-tooltip label="工作单位" />
          <el-table-column prop="beginDate" label="开始日期" width="120" />
@@ -183,8 +183,8 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
          <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" />
          <el-table-column prop="hospital" show-overflow-tooltip label="体检医院" />
@@ -230,8 +230,8 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="150" />
          <el-table-column prop="empName" label="员工姓名" width="100" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="150" />
          <el-table-column prop="empName" label="姓名" width="100" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
          <el-table-column show-overflow-tooltip prop="signingDate" label="合同签订日期" />
@@ -262,8 +262,8 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
          <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" />
          <el-table-column show-overflow-tooltip prop="attendMonth" label="离职考勤月份" width="120" />
@@ -296,9 +296,9 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="80" />
          <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip prop="beginTime" label="开始时间" width="120" />
          <el-table-column show-overflow-tooltip prop="endTime" label="结束时间" width="120" />
@@ -329,9 +329,9 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位名" width="100" />
          <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="100" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="100" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip prop="applayDate" label="辞职申请日期" width="150" />
          <el-table-column show-overflow-tooltip prop="reason" label="辞职事由" width="150" />
@@ -359,8 +359,8 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="100" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip prop="applayDate" label="失业金申请日期" width="150" />
@@ -390,8 +390,8 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="100" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
          <el-table-column show-overflow-tooltip prop="applayDate" label="社保申请日期" />
@@ -423,8 +423,8 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" />
          <el-table-column show-overflow-tooltip prop="jobName" label="名称" width="80" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" />
          <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" />
@@ -469,7 +469,7 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" />
@@ -516,7 +516,7 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
@@ -568,7 +568,7 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="120" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="120" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="120" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
@@ -598,7 +598,7 @@
            </template>
          </el-table-column>
          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="180" />
          <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="120" />
          <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="120" />
          <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="120" />
          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" />
          <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
@@ -625,14 +625,14 @@
        <el-row>
          <el-col span="24">
            <el-form-item label="员工模板下载" prop="region">
              <a href="http://120.24.23.155:8000/员工信息.xls" target="_blank" style="color: #3A8EE6;">员工信息.xlxs</a>
              <a :href="downloadEmpExcel" target="_blank" style="color: #3A8EE6;">员工信息.xlxs</a>
              <span style="margin-left: 100px;">点击下载</span>
            </el-form-item>
            <el-form-item label="导入员工">
              <el-upload
                ref="upload"
                class="upload-demo"
                action="http://120.24.23.155:8301/hr/empBaseInfo/importEmp"
                :action="uploadEmpExcel"
                accept=".xls, .xlsx, .excel"
                :headers="headers()"
                :on-success="importHandleAvatarSuccess"
@@ -2163,6 +2163,8 @@
  components: { Treeselect, Pagination },
  data() {
    return {
      downloadEmpExcel: pages.downloadEmpExcel,
      uploadEmpExcel: pages.uploadEmpExcel,
      defaultImg: require('../../assets/avatar/20180414165936.jpg'),
      baseicInformationForm: {},
      dialogShowDryg: false,
@@ -2183,7 +2185,7 @@
          message: this.$t('rules.noMoreThan20'),
          trigger: 'blur'
        }],
        empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' },
        empName: [{ required: true, message: '请输入姓名', trigger: 'blur' },
          { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }],
        empNumb: [{ required: true, message: '请输入编号', trigger: 'blur' },
          { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }],
@@ -3117,6 +3119,7 @@
    this.initDept()
    this.thisShowIndex = 1
    this.isShow(false, 0)
    this.initJob()
  },
  methods: {
    importHandleAvatarError() {
@@ -3126,7 +3129,7 @@
      })
    },
    importHandleAvatarSuccess(res, file) {
      if (res.data === null) {
      if (res.data === null || res.data.length === 0) {
        this.$notify({
          title: '成功',
          message: '导入成功!',
@@ -3387,6 +3390,11 @@
    resetDeptTree() {
      this.$refs.deptTree.setCheckedKeys([])
    },
    initJob() {
      this.$get('system/position/dicJob').then((r) => {
        this.restaurJob = r.data.data
      })
    },
    butDelete() {
      let selected
      switch (this.thisShowIndex) {
@@ -3617,7 +3625,7 @@
          }
          break
        case 11:
          selected = this.$refs.occupationalTable.selection
          selected = this.$refs.laborTroubleTable.selection
          if (selected.length > 0) {
            const delIds = []
            selected.forEach((j) => {
src/views/user/archivesChange.vue
@@ -692,8 +692,8 @@
                  </template>
                </el-table-column>
                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="leaveId" label="" />
                <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="100" />
                <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="100" />
                <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="180" />
                <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="180" />
                <el-table-column show-overflow-tooltip="true" prop="leaveDay" label="请假天数" width="100" />
                <el-table-column show-overflow-tooltip="true" prop="leaveType" label="请假类型" :formatter="leaveTypeFormat" />
                <el-table-column show-overflow-tooltip="true" prop="returnDate" label="到岗时间" width="180" />
@@ -2634,7 +2634,7 @@
          message: this.$t('rules.noMoreThan20'),
          trigger: 'blur'
        }],
        empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' },
        empName: [{ required: true, message: '请输入姓名', trigger: 'blur' },
          { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }],
        empNumb: [{ required: true, message: '请输入员工编号', trigger: 'blur' },
          { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }],
@@ -5915,5 +5915,12 @@
  .el-dialog.is-fullscreen {
    overflow: hidden;
  }
  .formjbxx {
    .el-input.is-disabled .el-input__inner {
      background-color: #fff !important;
      color: #333 !important;
    }
  }
</style>
src/views/user/archivesEdit.vue
@@ -755,8 +755,8 @@
                  </template>
                </el-table-column>
                <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="leaveId" label="" />
                <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="100" />
                <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="100" />
                <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="180" />
                <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="180" />
                <el-table-column show-overflow-tooltip="true" prop="leaveDay" label="请假天数" width="100" />
                <el-table-column show-overflow-tooltip="true" prop="leaveType" label="请假类型" :formatter="leaveTypeFormat" />
                <el-table-column show-overflow-tooltip="true" prop="returnDate" label="到岗时间" width="180" />
@@ -2824,7 +2824,7 @@
          message: this.$t('rules.noMoreThan20'),
          trigger: 'blur'
        }],
        empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' },
        empName: [{ required: true, message: '请输入姓名', trigger: 'blur' },
          { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }],
        empNumb: [{ required: true, message: '请输入员工编号', trigger: 'blur' },
          { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }],
@@ -6119,5 +6119,12 @@
.el-dialog.is-fullscreen {
  overflow: hidden;
}
.formjbxx {
  .el-input.is-disabled .el-input__inner {
    background-color: #fff !important;
    color: #333 !important;
  }
}
</style>
src/views/user/inemployees.vue
@@ -991,7 +991,7 @@
          message: this.$t('rules.noMoreThan20'),
          trigger: 'blur'
        }],
        empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' },
        empName: [{ required: true, message: '请输入姓名', trigger: 'blur' },
          { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }],
        empNumb: [{ required: true, message: '请输入员工编号', trigger: 'blur' },
          { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }],
@@ -1224,6 +1224,7 @@
    this.getDicts('LZTYPE').then(response => {
      this.dimissionTypeOptions = response.data
    })
    this.initJob()
  },
  methods: {
    exportExcel() {
@@ -1264,6 +1265,11 @@
        entryType: []
      }
      this.search()
    },
    initJob() {
      this.$get('system/position/dicJob').then((r) => {
        this.restaurJob = r.data.data
      })
    },
    // 翻页方法
    search() {
@@ -1859,72 +1865,74 @@
        })
      })
    },
    // dic列表转为数组
    dicListToArr(dicList) {
      var arr = []
      for (var i = 0; i < dicList.length; i++) {
        var dic = dicList[i]
        arr.push(dic.dicItemCode)
      }
      return arr
    },
    selectAllSex(val) {
      if (val) {
        this.queryParams.sex = ['1', '2']
        this.queryParams.sex = this.dicListToArr(this.sexOptions)
      } else {
        this.queryParams.sex = []
      }
    },
    selectAllEducation(val) {
      if (val) {
        this.queryParams.education = ['91', '81', '71', '61', '42', '41', '31', '21', '11', '10']
        this.queryParams.education = this.dicListToArr(this.educationOptions)
      } else {
        this.queryParams.education = []
      }
    },
    selectAllPolitics(val) {
      if (val) {
        this.queryParams.politics = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13']
        this.queryParams.politics = this.dicListToArr(this.statusOptions)
      } else {
        this.queryParams.politics = []
      }
    },
    selectAllAgeStr(val) {
      if (val) {
        this.queryParams.ageStr = ['18-29', '30-39', '40-49', '50-59', '60-69', '69-999']
        this.queryParams.ageStr = this.dicListToArr(this.ageStrOptions)
      } else {
        this.queryParams.ageStr = []
      }
    },
    selectAllArchivesStatus(val) {
      if (val) {
        this.queryParams.archivesStatus = ['0', '1']
        this.queryParams.archivesStatus = this.dicListToArr(this.archivesStatusOptions)
      } else {
        this.queryParams.archivesStatus = []
      }
    },
    selectAllInsuranceType(val) {
      if (val) {
        this.queryParams.insuranceType = ['1', '2', '3', '4', '5']
        this.queryParams.insuranceType = this.dicListToArr(this.insuranceTypeOptions)
      } else {
        this.queryParams.insuranceType = []
      }
    },
    selectAllEmpStatus(val) {
      if (val) {
        this.queryParams.empStatus = ['0', '1', '2', '3']
      } else {
        this.queryParams.empStatus = []
      }
    },
    selectAllEmpCardStatus(val) {
      if (val) {
        this.queryParams.empCardStatus = ['0', '1']
        this.queryParams.empCardStatus = this.dicListToArr(this.empCardStatusOptions)
      } else {
        this.queryParams.empCardStatus = []
      }
    },
    selectAllHandbookStatus(val) {
      if (val) {
        this.queryParams.handbookStatus = ['0', '1']
        this.queryParams.handbookStatus = this.dicListToArr(this.handbookStatusOptions)
      } else {
        this.queryParams.handbookStatus = []
      }
    },
    selectAllEmpType(val) {
      if (val) {
        this.queryParams.empType = ['01', '02']
        this.queryParams.empType = this.dicListToArr(this.empTypeOptions)
      } else {
        this.queryParams.empType = []
      }
src/views/user/outemployess.vue
@@ -1531,58 +1531,60 @@
      alert('已选择部门' + names)
      console.log(users)
    },
    // dic列表转为数组
    dicListToArr(dicList) {
      var arr = []
      for (var i = 0; i < dicList.length; i++) {
        var dic = dicList[i]
        arr.push(dic.dicItemCode)
      }
      return arr
    },
    selectAllSex(val) {
      if (val) {
        this.queryParams.sex = ['1', '2']
        this.queryParams.sex = this.dicListToArr(this.sexOptions)
      } else {
        this.queryParams.sex = []
      }
    },
    selectAllEducation(val) {
      if (val) {
        this.queryParams.education = ['91', '81', '71', '61', '42', '41', '31', '21', '11', '10']
        this.queryParams.education = this.dicListToArr(this.educationOptions)
      } else {
        this.queryParams.education = []
      }
    },
    selectAllPolitics(val) {
      if (val) {
        this.queryParams.politics = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13']
        this.queryParams.politics = this.dicListToArr(this.statusOptions)
      } else {
        this.queryParams.politics = []
      }
    },
    selectAllAgeStr(val) {
      if (val) {
        this.queryParams.ageStr = ['18-29', '30-39', '40-49', '50-59', '60-69', '69-999']
        this.queryParams.ageStr = this.dicListToArr(this.ageStrOptions)
      } else {
        this.queryParams.ageStr = []
      }
    },
    selectAllArchivesStatus(val) {
      if (val) {
        this.queryParams.archivesStatus = ['0', '1']
        this.queryParams.archivesStatus = this.dicListToArr(this.archivesStatusOptions)
      } else {
        this.queryParams.archivesStatus = []
      }
    },
    selectAllInsuranceType(val) {
      if (val) {
        this.queryParams.insuranceType = ['1', '2', '3', '4', '5']
        this.queryParams.insuranceType = this.dicListToArr(this.insuranceTypeOptions)
      } else {
        this.queryParams.insuranceType = []
      }
    },
    selectAllEmpStatus(val) {
      if (val) {
        this.queryParams.empStatus = ['0', '1', '2', '3']
      } else {
        this.queryParams.empStatus = []
      }
    },
    selectAllEmpType(val) {
      if (val) {
        this.queryParams.empType = ['01', '02']
        this.queryParams.empType = this.dicListToArr(this.empTypeOptions)
      } else {
        this.queryParams.empType = []
      }
src/views/user/search.vue
@@ -235,13 +235,24 @@
              </tr>
              <tr>
                <td class="td">入离职类型:</td>
                <td class="td-group" />
                <td class="td-group">
                  <el-checkbox-group v-model="queryParams.inOutType" class="fj-checkbox">
                    <el-checkbox label="" @change="selectAllDimissionType">全部</el-checkbox>
                    <el-checkbox
                      v-for="data in dimissionTypeOptions"
                      :key="data.dicItemName"
                      :label="data.dicItemCode"
                    >
                      {{ data.dicItemName }}
                    </el-checkbox>
                  </el-checkbox-group>
                </td>
              </tr>
            </table>
          </div>
          <el-row>
            <el-col :span="21" style="line-height: 50px;">
              已为您搜索出<span style="color:red">{{ total }}</span>条符合条件的记录
              已为您搜索出<span style="color:#ff0000">{{ total }}</span>条符合条件的记录
            </el-col>
            <el-col :span="3" style="text-align: right;padding-right: 10px">
              <el-button class="hr-but-all" type="success" @click.native="showDcyg(0)">
@@ -263,7 +274,7 @@
            <el-table-column show-overflow-tooltip prop="deptName" label="(部门)护卫点" width="140" />
            <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
            <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
            <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" />
            <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="150" />
            <el-table-column show-overflow-tooltip prop="sex" label="性别" width="60" :formatter="sexFormat" />
            <el-table-column show-overflow-tooltip prop="age" label="年龄" width="60" />
            <el-table-column show-overflow-tooltip prop="education" label="学历" width="80" :formatter="educationFormat" />
@@ -275,6 +286,7 @@
                {{ transEmpStatus(row.empStatus) }}
              </template>
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="dimissionTypeName" label="离职类型" width="100" />
            <el-table-column show-overflow-tooltip prop="entryDate" label="入职日期" width="120" />
            <el-table-column show-overflow-tooltip prop="dimissionDate" label="离职日期" width="120" />
          </el-table>
@@ -833,8 +845,8 @@
            <el-table-column show-overflow-tooltip prop="remark" label="备注" />
            <!-- <el-table-column prop="deptName" label="护卫点" width="180" />
            <el-table-column prop="jobName" label="岗位名称" width="180" />
            <el-table-column prop="empName" label="员工姓名" width="180" />
            <el-table-column prop="jobName" label="岗位" width="180" />
            <el-table-column prop="empName" label="姓名" width="180" />
            <el-table-column prop="certificateNumb" label="身份证号码" width="180" />
            <el-table-column show-overflow-tooltip prop="attendMonth" label="离职考勤月份" width="180" /> -->
          </el-table>
@@ -1946,7 +1958,8 @@
        empNumb: '',
        empName: '',
        certificateNumb: '',
        jobContent: ''
        jobContent: '',
        inOutType: []
      }, // 查询参数
      sort: {}, // 排序
      pagination: { // 分页参数
@@ -2642,6 +2655,13 @@
        this.queryParams.empStatus = []
      }
    },
    selectAllDimissionType(val) {
      if (val) {
        this.queryParams.inOutType = ['1', '2', '3', '4', '5', '6']
      } else {
        this.queryParams.inOutType = []
      }
    },
    exportExcel(params = {}) {
      params.pageSize = this.pagination.size
      params.pageNum = this.pagination.num
@@ -2759,11 +2779,7 @@
        case '0':
          return '在职'
        case '1':
          return '正常离职'
        case '2':
          return '自动离职'
        case '3':
          return '公司辞退'
          return '离职'
      }
    },
    transLeaveType(leaveType) {
src/views/yunpan/fujian.vue
@@ -149,6 +149,62 @@
                    </el-checkbox-group>
                  </td>
                </tr>
                <tr>
                  <td class="td">工作证:</td>
                  <td class="td-group">
                    <el-checkbox-group v-model="queryform.empCardStatus" class="fj-checkbox">
                      <el-checkbox label="" @change="selectAllEmpCardStatus">全部</el-checkbox>
                      <el-checkbox
                        v-for="data in empCardStatusOptions"
                        :key="data.dicItemName"
                        :label="data.dicItemCode"
                      >
                        {{ data.dicItemName }}
                      </el-checkbox>
                    </el-checkbox-group>
                  </td>
                </tr>
                <tr>
                  <td class="td">员工手册:</td>
                  <td class="td-group">
                    <el-checkbox-group v-model="queryform.handbookStatus" class="fj-checkbox">
                      <el-checkbox label="" @change="selectAllHandbookStatus">全部</el-checkbox>
                      <el-checkbox
                        v-for="data in handbookStatusOptions"
                        :key="data.dicItemName"
                        :label="data.dicItemCode"
                      >
                        {{ data.dicItemName }}
                      </el-checkbox>
                    </el-checkbox-group>
                  </td>
                </tr>
                <tr>
                  <td class="td">员工类型:</td>
                  <td class="td-group">
                    <el-checkbox-group v-model="queryform.empType" class="fj-checkbox">
                      <el-checkbox label="" @change="selectAllEmpType">全部</el-checkbox>
                      <el-checkbox
                        v-for="data in empTypeOptions"
                        :key="data.dicItemName"
                        :label="data.dicItemCode"
                      >
                        {{ data.dicItemName }}
                      </el-checkbox>
                    </el-checkbox-group>
                  </td>
                </tr>
                <tr>
                  <td class="td">入职类型:</td>
                  <td class="td-group">
                    <el-checkbox-group v-model="queryform.entryType" class="fj-checkbox">
                      <el-checkbox label="" @change="selectAllEntryType">全部</el-checkbox>
                      <el-checkbox :label="4">新入职</el-checkbox>
                      <el-checkbox :label="5">最新入职</el-checkbox>
                      <el-checkbox :label="6">返聘入职</el-checkbox>
                    </el-checkbox-group>
                  </td>
                </tr>
              </table>
            </el-col>
          </el-row>
@@ -380,7 +436,11 @@
        age: [],
        archivesStatus: [],
        insuranceType: [],
        empStatus: []
        empStatus: [],
        empCardStatus: [],
        handbookStatus: [],
        empType: [],
        entryType: []
      },
      total: 0, // 总数量
      pagination: { // 分页参数
@@ -433,12 +493,24 @@
      educationOptions: [],
      statusOptions: [],
      ageStrOptions: [],
      archivesStatusOptions: []
      archivesStatusOptions: [],
      empCardStatusOptions: [],
      handbookStatusOptions: [],
      empTypeOptions: []
    }
  },
  mounted() {
    this.initLabel()
    this.fetch()
    this.getDicts('empType').then(response => {
      this.empTypeOptions = response.data
    })
    this.getDicts('empCardStatus').then(response => {
      this.empCardStatusOptions = response.data
    })
    this.getDicts('handbookStatus').then(response => {
      this.handbookStatusOptions = response.data
    })
    this.getDicts('sex').then(response => {
      this.sexOptions = response.data
    })
@@ -618,52 +690,82 @@
    },
    selectAllSex(val) {
      if (val) {
        this.queryform.sex = ['1', '2']
        this.queryParams.sex = this.dicListToArr(this.sexOptions)
      } else {
        this.queryform.sex = []
        this.queryParams.sex = []
      }
    },
    selectAllEducation(val) {
      if (val) {
        this.queryform.education = ['91', '81', '71', '61', '42', '41', '31', '21', '11', '10']
        this.queryParams.education = this.dicListToArr(this.educationOptions)
      } else {
        this.queryform.education = []
        this.queryParams.education = []
      }
    },
    selectAllPolitics(val) {
      if (val) {
        this.queryform.politics = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13']
        this.queryParams.politics = this.dicListToArr(this.statusOptions)
      } else {
        this.queryform.politics = []
        this.queryParams.politics = []
      }
    },
    selectAllage(val) {
    selectAllAgeStr(val) {
      if (val) {
        this.queryform.age = ['18-29', '30-39', '40-49', '50-59', '60-69', '69-999']
        this.queryParams.ageStr = this.dicListToArr(this.ageStrOptions)
      } else {
        this.queryform.age = []
        this.queryParams.ageStr = []
      }
    },
    selectAllArchivesStatus(val) {
      if (val) {
        this.queryform.archivesStatus = ['0', '1']
        this.queryParams.archivesStatus = this.dicListToArr(this.archivesStatusOptions)
      } else {
        this.queryform.archivesStatus = []
        this.queryParams.archivesStatus = []
      }
    },
    selectAllInsuranceType(val) {
      if (val) {
        this.queryform.insuranceType = ['1', '2', '3', '4', '5']
        this.queryParams.insuranceType = this.dicListToArr(this.insuranceTypeOptions)
      } else {
        this.queryform.insuranceType = []
        this.queryParams.insuranceType = []
      }
    },
    selectAllEmpStatus(val) {
    selectAllEmpCardStatus(val) {
      if (val) {
        this.queryParams.empStatus = ['0', '1', '2', '3']
        this.queryParams.empCardStatus = this.dicListToArr(this.empCardStatusOptions)
      } else {
        this.queryParams.empStatus = []
        this.queryParams.empCardStatus = []
      }
    },
    selectAllHandbookStatus(val) {
      if (val) {
        this.queryParams.handbookStatus = this.dicListToArr(this.handbookStatusOptions)
      } else {
        this.queryParams.handbookStatus = []
      }
    },
    selectAllEmpType(val) {
      if (val) {
        this.queryParams.empType = this.dicListToArr(this.empTypeOptions)
      } else {
        this.queryParams.empType = []
      }
    },
    selectAllEntryType(val) {
      if (val) {
        this.queryParams.entryType = [4, 5, 6]
      } else {
        this.queryParams.entryType = []
      }
    },
    // dic列表转为数组
    dicListToArr(dicList) {
      var arr = []
      for (var i = 0; i < dicList.length; i++) {
        var dic = dicList[i]
        arr.push(dic.dicItemCode)
      }
      return arr
    }
  }
}
src/views/yunpan/uploadfj.vue
@@ -47,14 +47,14 @@
            />提示:文件不要超过10个,单个文件大小不超过50M,单击或者拖动文件到下面区域,支持单个或批量文件的上传。</el-col>
          </el-row>
          <el-row style="background-color: rgba(0,0,0,0.2);">
            <el-col :span="16">
            <el-col :span="14">
              <el-checkbox
                v-model="checkAll"
                class="myRedCheckBox"
                style="color: #000; margin-left: 20px;"
                @change="checkAllMethods()"
              >全选</el-checkbox></el-col>
            <el-col :span="8">
            <el-col :span="10">
              <el-button
                type="primary"
                icon="el-icon-download"
@@ -70,9 +70,23 @@
              <el-popconfirm title="是否移动附件?" @onConfirm="mvdialogFormVisible = true">
                <el-button slot="reference" class="hr-but" type="danger">转存</el-button>
              </el-popconfirm>
              <el-button type="warning" @click="openUpdateFileName()">重命名</el-button>
              <el-button type="primary" @click="downloaddialogFormVisible = true">查看</el-button>
            </el-col>
          </el-row>
        </el-header>
        <el-dialog title="修改文件名" :visible.sync="updateFileNameFormVisible" append-to-body width="20%">
          <el-form ref="updateFileName" :model="file" :rules="mvrules">
            <el-form-item label="文件名" :label-width="formLabelWidth" prop="fileName">
              <el-input v-model="file.fileName" autocomplete="off" />
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="updateFileNameFormVisible = false">取 消</el-button>
            <el-button type="primary" @click="updateFileName('updateFileName')">确 定</el-button>
          </div>
        </el-dialog>
        <el-dialog
          title="移动文件"
          :visible.sync="mvdialogFormVisible"
@@ -110,11 +124,11 @@
              <el-col v-if="node.isUpload === false" :key="node.filesid" :span="3">
                <el-card
                  shadow="never"
                  @click.native="clickCard(index * 8 + nodeIndex)"
                >
                  <img
                    :src="showFileImg(node.filesformat)"
                    class="uploading-image"
                    @click="clickCard(index * 8 + nodeIndex)"
                  >
                  <el-tooltip class="item" effect="dark" :content="node.filesname" placement="bottom">
                    <div style="padding-top: 14px;">
@@ -164,8 +178,16 @@
  },
  data() {
    return {
      updateFileNameFormVisible: false,
      file: {
        fileName: ''
      },
      mvrules: {
        labelid: [{ required: true, message: '请选择标签', trigger: 'change' }]
        labelid: [{ required: true, message: '请选择标签', trigger: 'change' }],
        fileName: [
          { required: true, message: '请输入文件名称', trigger: 'blur' },
          { min: 3, max: 10, message: '长度在 3 到 20 个字符', trigger: 'blur' }
        ]
      },
      mvdialogFormVisible: false,
      uploadSinglePath: pages.uploadSinglePath,
@@ -191,6 +213,53 @@
    this.initlabel()
  },
  methods: {
    updateFileName(formName) {
      this.$refs[formName].validate(valid => {
        if (valid) {
          var checke = ''
          debugger
          this.checkedArr.forEach((v, i) => {
            if (v.isChecked) {
              checke = v.accessoryid
            }
          })
          // 生成查询文件的条件
          var params = { accessoryid: checke, filesname: this.file.fileName }
          this.$put('hr/empAccessory', { ...params }).then(() => {
            this.$message({
              message: '重命名成功!',
              type: 'success'
            })
            this.file.fileName = ''
            this.updateFileNameFormVisible = false
            // 生成查询文件的条件
            var initFileParams = {
              labelid: this.activities[this.beforeIndex].id,
              filesname: this.fileName,
              empid: this.rowitem.empId
            }
            this.initFile(initFileParams)
          })
        }
      })
    },
    openUpdateFileName() {
      var checke = []
      this.checkedArr.forEach((v, i) => {
        if (v.isChecked) {
          checke.push(v.filesid)
        }
      })
      if (checke.length <= 0) {
        this.$message({
          message: '请选择一个需要重命名的文件!',
          type: 'warning'
        })
      } else {
        this.updateFileNameFormVisible = true
      }
    },
    async initlabel() {
      await this.$get('hr/label').then(r => {
        this.activities = []
src/views/yunpan/zhishou.vue
@@ -81,14 +81,14 @@
            />提示:文件不要超过10个,单个文件大小不超过200M,单击或者拖动文件到下面区域,支持单个或批量文件的上传。</el-col>
          </el-row>
          <el-row style="background-color: rgba(0,0,0,0.2);">
            <el-col :span="17">
            <el-col :span="14">
              <el-checkbox
                v-model="checkAll"
                class="myRedCheckBox"
                style="color: #000; margin-left: 20px;"
                @change="checkAllMethods()"
              >全选</el-checkbox></el-col>
            <el-col :span="7">
            <el-col :span="10">
              <el-button
                type="primary"
                icon="el-icon-download"
@@ -104,9 +104,24 @@
              <el-popconfirm title="是否移动文件?" @onConfirm="mvdialogFormVisible = true">
                <el-button slot="reference" class="hr-but" type="danger">转存</el-button>
              </el-popconfirm>
              <el-button type="warning" @click="openUpdateFileName()">重命名</el-button>
              <el-button type="primary" @click="downloaddialogFormVisible = true">查看</el-button>
            </el-col>
          </el-row>
        </el-header>
        <el-dialog title="修改文件名" :visible.sync="updateFileNameFormVisible" width="20%">
          <el-form ref="updateFileName" :model="file" :rules="rules">
            <el-form-item label="文件名" :label-width="formLabelWidth" prop="fileName">
              <el-input v-model="file.fileName" autocomplete="off" />
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="updateFileNameFormVisible = false">取 消</el-button>
            <el-button type="primary" @click="updateFileName('updateFileName')">确 定</el-button>
          </div>
        </el-dialog>
        <el-dialog
          title="移动文件"
          :visible.sync="mvdialogFormVisible"
@@ -151,7 +166,7 @@
                  >
                  <el-tooltip class="item" effect="dark" :content="node.filesname" placement="bottom">
                    <div style="padding-top: 14px;">
                      <el-checkbox v-model="checkedArr[index * rowCount + nodeIndex].isChecked" class="myRedCheckBox">{{ node.filesname }}</el-checkbox>
                      <el-checkbox v-model="checkedArr[index * 8 + nodeIndex].isChecked" class="myRedCheckBox">{{ node.filesname }}</el-checkbox>
                    </div>
                  </el-tooltip>
                </el-card>
@@ -191,6 +206,10 @@
export default {
  data() {
    return {
      updateFileNameFormVisible: false,
      file: {
        fileName: ''
      },
      rowCount: 12,
      mvrules: {
        folderid: [{ required: true, message: '请选择目录', trigger: 'change' }]
@@ -212,6 +231,10 @@
          { required: true, message: '请输入文件夹名称', trigger: 'blur' },
          { min: 3, max: 10, message: '长度在 3 到 10 个字符', trigger: 'blur' }
        ],
        fileName: [
          { required: true, message: '请输入文件名称', trigger: 'blur' },
          { min: 3, max: 10, message: '长度在 3 到 20 个字符', trigger: 'blur' }
        ],
        sort: [{ required: true, message: '请输入排序', type: 'number', trigger: 'blur' }]
      },
      formLabelWidth: '100px',
@@ -229,6 +252,51 @@
    this.initFolder()
  },
  methods: {
    updateFileName(formName) {
      this.$refs[formName].validate(valid => {
        if (valid) {
          var checke = ''
          this.checkedArr.forEach((v, i) => {
            if (v.isChecked) {
              checke = v.filesid
            }
          })
          // 生成查询文件的条件
          var params = { filesid: checke, filesname: this.file.fileName }
          this.$put('hr/filesUpload', { ...params }).then(() => {
            this.$message({
              message: '重命名成功!',
              type: 'success'
            })
            this.updateFileNameFormVisible = false
            this.file.fileName = ''
            // 生成查询文件的条件
            var initFileParams = {
              folderid: this.activities[this.beforeIndex].id,
              filesname: this.fileName
            }
            this.initFile(initFileParams)
          })
        }
      })
    },
    openUpdateFileName() {
      var checke = []
      this.checkedArr.forEach((v, i) => {
        if (v.isChecked) {
          checke.push(v.filesid)
        }
      })
      if (checke.length <= 0) {
        this.$message({
          message: '请选择一个需要重命名的文件!',
          type: 'warning'
        })
      } else {
        this.updateFileNameFormVisible = true
      }
    },
    async initFolder() {
      await this.$get('hr/folder').then(r => {
        this.activities = []
vue.config.js
@@ -36,9 +36,8 @@
      // change xxx-api/login => mock/login
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        // target: 'http://120.24.23.155:8301/',
        // target: 'http://120.24.23.155:7301/',
        target: 'http://127.0.0.1:8301/',
        target: 'http://120.24.23.155:8301/',
        // target: 'http://127.0.0.1:8301/',
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''