| | |
| | | // this.initJob() |
| | | }, |
| | | methods: { |
| | | exportExcel() { |
| | | this.queryParams.baseKey = this.queryParams.vague |
| | | this.queryParams.delFlag = 0 |
| | | this.queryParams.empStatus = 0 |
| | | var params = this.queryParams |
| | | this.$download('hr/empBaseInfo/exportEmpAll', { ...params }, `基本信息_${new Date().getTime()}.xls`).then(() => { |
| | | this.$message({ |
| | | message: '下载成功!', |
| | | type: 'success' |
| | | }) |
| | | }) |
| | | }, |
| | | editClose() { |
| | | this.dialog.isVisible = false |
| | | }, |
| | | // 翻页方法 |
| | | search() { |
| | | this.queryParams.baseKey = '' |
| | |
| | | }, |
| | | |
| | | fetch(params = {}) { |
| | | var that = this |
| | | const that = this |
| | | params.pageSize = this.pagination.size |
| | | params.pageNum = this.pagination.num |
| | | params.delFlag = 0 |
| | |
| | | that.total = data.total |
| | | that.tableData = data.rows |
| | | }) |
| | | }, |
| | | vagueSearch() { |
| | | this.fetch({ |
| | | baseKey: this.queryParams.baseKey |
| | | }) |
| | | }, |
| | | empStatusFormat(row, column) { |
| | | return this.selectDictLabel(this.empStatusOptions, row.empStatus) |
| | | }, |
| | | typeFormat(row, column) { |
| | | return this.selectDictLabel(this.physicalExamTypeOptions, row.physicalExamType) |