无人机管理后台前端(已迁走)
shuishen
2025-05-08 aa2bb1a03f9bc5b72684df89d65a9296498eb18b
复核处理
2 files modified
37 ■■■■ changed files
src/api/tickets/ticket.js 8 ●●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue 29 ●●●●● patch | view | raw | blame | history
src/api/tickets/ticket.js
@@ -97,14 +97,6 @@
  })
}
// 获取机器复核可执行时间
export const getReCheckTime = (id) => {
  return request({
    url: `/`,
    method: 'get',
  })
}
// 下发任务
export const getCreateEventJob = (id) => {
  return request({
src/views/tickets/ticket.vue
@@ -494,7 +494,6 @@
  getstatusCount,
  getStepInfo,
  getReviewById,
  getReCheckTime,
  getCreateEventJob
} from '@/api/tickets/ticket'
import { export_json_to_excel } from '@/utils/exportExcel'
@@ -2316,23 +2315,17 @@
        })
      } 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()
          })
        })
      }
    }