| | |
| | | }) |
| | | } |
| | | |
| | | // 获取机器复核可执行时间 |
| | | export const getReCheckTime = (id) => { |
| | | return request({ |
| | | url: `/`, |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | // 下发任务 |
| | | export const getCreateEventJob = (id) => { |
| | | return request({ |
| | |
| | | getstatusCount, |
| | | getStepInfo, |
| | | getReviewById, |
| | | getReCheckTime, |
| | | getCreateEventJob |
| | | } from '@/api/tickets/ticket' |
| | | import { export_json_to_excel } from '@/utils/exportExcel' |
| | |
| | | }) |
| | | } else { |
| | | // 获取时间的接口 |
| | | getReCheckTime(that.reCheckData.id).then(res => { |
| | | |
| | | ElMessageBox.confirm(`确认在该${res.data.data}时间进行复核?`) |
| | | .then(() => { |
| | | |
| | | // 生成任务的接口 |
| | | getCreateEventJob(that.reCheckData.id).then(() => { |
| | | that.page.currentPage = 1 |
| | | that.fetchTableData() |
| | | that.fetchTabCounts() |
| | | }) |
| | | |
| | | }) |
| | | .catch(() => { |
| | | // catch error |
| | | }) |
| | | |
| | | getCreateEventJob(that.reCheckData.id).then(res => { |
| | | ElMessageBox.confirm(`预计复核执行时间为${res.data.data}`, '提示', { |
| | | confirmButtonText: '确定', |
| | | showCancelButton: false, // 关键配置 |
| | | type: 'warning' |
| | | }).then(() => { |
| | | this.reCheckDialog = false |
| | | this.page.currentPage = 1 |
| | | this.fetchTableData() |
| | | this.fetchTabCounts() |
| | | }) |
| | | }) |
| | | } |
| | | } |