| | |
| | | }, // 查询参数 |
| | | sort: {}, // 排序 |
| | | pagination: { // 分页参数 |
| | | size: 5, |
| | | size: 15, |
| | | num: 1 |
| | | }, |
| | | probationStatusOptions: [], |
| | |
| | | ], |
| | | exportUrl: 'hr/empBaseInfo/export/probation', |
| | | fileName: '员工转正提醒.xls' |
| | | } |
| | | }, |
| | | selectIndex: 0 // 存储传入的时间筛选索引 |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | this.queryParams.index = index |
| | | this.queryParams.number = number |
| | | this.queryParams.name = null |
| | | this.selectIndex = index !== null ? index : 0 // 保存传入的 index |
| | | this.pagination.num = 1 |
| | | this.search() |
| | | }, |
| | | fetch(params = {}) { |
| | |
| | | params.pageNum = this.pagination.num |
| | | params.delFlag = 0 |
| | | params.empStatus = 0 |
| | | |
| | | // 添加 index 参数 |
| | | if (params.timeRange === undefined || params.timeRange === null) { |
| | | params.timeRange = this.selectIndex |
| | | } |
| | | |
| | | this.$get('hr/empBaseInfo/probation/alert', { |
| | | ...params |
| | | }).then((r) => { |
| | |
| | | handleExport() { |
| | | const params = { |
| | | ...this.queryParams, |
| | | index: this.selectIndex, // 使用当前查询的 index |
| | | delFlag: 0, |
| | | empStatus: 0, |
| | | exportField: this.exportConfig.selectedFields.join(',') |