| | |
| | | <el-button type="danger" class="hr-but-all" @click="showYgdg(0)">员工调岗</el-button> |
| | | <!-- <el-button type="danger" class="hr-but-all" @click="showDryg(0)">导入员工</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-button type="primary" style="background-color: #409EFF" @click="showGbda(0)">关闭档案</el-button> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | } |
| | | }, |
| | | doDcda() { |
| | | this.$confirm('是否确定要导出档案?', '提示', { |
| | | this.$confirm('是否确定要导出档案,请耐心等待?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '导出成功!' |
| | | var params = this.queryParams |
| | | this.$post('hr/pdf/exportWithField', { |
| | | ...params |
| | | }).then((r) => { |
| | | const data = r.data.data |
| | | for (let i = 0; i < data.length; i++) { |
| | | this.$download('hr/pdf/contract', { |
| | | empNumb: data[i].empNumb |
| | | }, `${data[i].empName}.pdf`) |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |