| | |
| | | <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 |
| | |
| | | }) |
| | | }, |
| | | 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) |
| | | }, |