沙钢智慧能源系统前端代码
liriming
2024-10-14 73c154cba6f95745bdfde79508b7e624f083f838
定时任务修改
已修改1个文件
已重命名2个文件
23 ■■■■ 文件已修改
src/api/job/index.ts 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/energy/job/ScheduleJobForm.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/energy/job/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/job/index.ts
@@ -15,40 +15,40 @@
// 查询ScheduleJob列表
export const getScheduleJobPage = (params: ScheduleJobPageReqVO) => {
  return request.get({ url: '/job/schedule/page', params })
  return request.get({ url: '/shasteel/job/schedule/page', params })
}
// 查询ScheduleJob详情
export const getScheduleJob = (id: number) => {
  return request.get({ url: '/job/schedule/info?id=' + id})
  return request.get({ url: '/shasteel/job/schedule/info?id=' + id})
}
// 新增ScheduleJob
export const createScheduleJob = (data: ScheduleJobVO) => {
  return request.post({ url: '/job/schedule/create', data })
  return request.post({ url: '/shasteel/job/schedule/create', data })
}
// 修改ScheduleJob
export const updateScheduleJob = (data: ScheduleJobVO) => {
  return request.put({ url: '/job/schedule/update', data })
  return request.put({ url: '/shasteel/job/schedule/update', data })
}
// 删除ScheduleJob
export const deleteScheduleJob = (id: number) => {
  return request.delete({ url: '/job/schedule/delete?id=' + id })
  return request.delete({ url: '/shasteel/job/schedule/delete?id=' + id })
}
// 立即执行
export const runScheduleJob = (id: number) => {
  return request.put({ url: '/job/schedule/run?id=' + id })
  return request.put({ url: '/shasteel/job/schedule/run?id=' + id })
}
// 暂停
export const pauseScheduleJob = (id: number) => {
  return request.put({ url: '/job/schedule/pause?id=' + id })
  return request.put({ url: '/shasteel/job/schedule/pause?id=' + id })
}
// 恢复
export const resumeScheduleJob = (id: number) => {
  return request.put({ url: '/job/schedule/resume?id=' + id })
  return request.put({ url: '/shasteel/job/schedule/resume?id=' + id })
}
src/views/energy/job/ScheduleJobForm.vue
src/views/energy/job/index.vue
文件名从 src/views/job/index.vue 修改
@@ -30,7 +30,7 @@
          type="primary"
          plain
          @click="openForm('create')"
          v-hasPermi="['data:schedule:create']"
          v-hasPermi="['shasteel:schedule:create']"
        >
          <Icon icon="ep:plus" class="mr-5px" />
          新增
@@ -58,7 +58,7 @@
            link
            type="primary"
            @click="openForm('update', scope.row.id)"
            v-hasPermi="['data:schedule:update']"
            v-hasPermi="['shasteel:schedule:update']"
          >
            编辑
          </el-button>
@@ -66,7 +66,7 @@
            link
            type="danger"
            @click="handleDelete(scope.row.id)"
            v-hasPermi="['data:schedule:delete']"
            v-hasPermi="['shasteel:schedule:delete']"
          >
            删除
          </el-button>
@@ -132,6 +132,7 @@
  const getList = async () => {
    loading.value = true
    try {
      debugger
      const page = await ScheduleJobApi.getScheduleJobPage(queryParams)
      list.value = page.list
      total.value = page.total