luoyb
2021-03-08 0905315d58d4be75a2ff63add67249798e92fcb5
fix(bug修复): 离职员工的导出功能
1个文件已修改
31 ■■■■■ 已修改文件
src/views/user/outemployess.vue 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/outemployess.vue
@@ -212,7 +212,9 @@
          <el-col :span="24">
            <el-button type="primary" @click="delEmp">删除员工</el-button>
            <el-button type="danger" class="hr-but-all" @click="showDkda(0)">打开档案</el-button>
            <el-button type="danger" class="hr-but-all" @click="doDcbb">导出报表</el-button>
            <!--            <el-button type="danger" class="hr-but-all" @click="doDcbb">导出报表</el-button>-->
            <el-button type="danger" class="hr-but-all" @click="exportExcel()">导出员工</el-button>
            <el-button type="danger" class="hr-but-all" @click="doDcda">导出档案</el-button>
          </el-col>
        </el-row>
        <el-table
@@ -1088,6 +1090,33 @@
    })
  },
  methods: {
    exportExcel() {
      var params = this.queryParams
      params.empStatus = '1,2,3'
      this.$download('hr/empBaseInfo/exportEmpAll', { ...params }, `基本信息_${new Date().getTime()}.xls`).then(() => {
        this.$message({
          message: '下载成功!',
          type: 'success'
        })
      })
    },
    doDcda() {
      this.$confirm('是否确定要导出档案?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$message({
          type: 'success',
          message: '导出成功!'
        })
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消'
        })
      })
    },
    educationFormat(row, column) {
      return this.selectDictLabel(this.educationOptions, row.education)
    },