沙钢智慧能源系统前端代码
dengzedong
2024-12-06 d0db810c9b1c67b8eed03c7f7be6eb4a34a8dbc7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import request from '@/config/axios'
 
// 查询ScheduleJob列表
export const getScheduleJobPage = (params) => {
  return request.get({ url: '/shasteel/job/schedule/page', params })
}
 
// 查询ScheduleJob详情
export const getScheduleJob = (id) => {
  return request.get({ url: '/shasteel/job/schedule/' + id})
}
 
// 新增ScheduleJob
export const createScheduleJob = (data) => {
  return request.post({ url: '/shasteel/job/schedule', data })
}
 
// 修改ScheduleJob
export const updateScheduleJob = (data) => {
  return request.put({ url: '/shasteel/job/schedule', data })
}
 
// 删除ScheduleJob
export const deleteScheduleJob = (id) => {
  return request.delete({ url: '/shasteel/job/schedule?id=' + id })
}
 
// 立即执行
export const runScheduleJob = (id) => {
  return request.put({ url: '/shasteel/job/schedule/run?id=' + id })
}
 
// 暂停
export const pauseScheduleJob = (id) => {
  return request.put({ url: '/shasteel/job/schedule/pause?id=' + id })
}
 
// 恢复
export const resumeScheduleJob = (id) => {
  return request.put({ url: '/shasteel/job/schedule/resume?id=' + id })
}