job.js 2.65 KB
Newer Older
1
import request from '@/utils/request'
2 3


dupengyu's avatar
dupengyu committed
4 5


6
/* 运行报表 */
dupengyu's avatar
dupengyu committed
7 8 9 10 11 12 13
export function indexCount(data) {
    return request({
        url: '/device/indexCount',
        method: 'post',
        data
    })
}
dupengyu's avatar
dupengyu committed
14
export function chartInfo(data) {
15
    return request({
dupengyu's avatar
dupengyu committed
16
        url: '/device/chartInfo',
17
        method: 'post',
dupengyu's avatar
dupengyu committed
18
        data
19 20
    })
}
21
/* 任务管理 */
22 23
export function jobinfoList(data) {
    return request({
dupengyu's avatar
dupengyu committed
24
        url: '/device/jobinfo/pageList',
25 26 27 28
        method: 'post',
        data
    })
}
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
// 执行一次
export function triggerJobinfo(data) {
    return request({
        url: '/device/jobinfo/trigger',
        method: 'post',
        data
    })
}
// 查询节点
export function loadByIdJobinfo(data) {
    return request({
        url: '/device/jobgroup/loadById',
        method: 'post',
        data
    })
}
// 下次执行时间
export function nextTriggerTime(data) {
    return request({
        url: '/device/jobinfo/nextTriggerTime',
        method: 'post',
        data
    })
}
// 启动
export function start(data) {
    return request({
        url: '/device/jobinfo/start',
        method: 'post',
        data
    })
}
// 停止
export function stop(data) {
    return request({
        url: '/device/jobinfo/stop',
        method: 'post',
        data
    })
}
dupengyu's avatar
dupengyu committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
// 删除
export function remove(data) {
    return request({
        url: '/device/jobinfo/remove',
        method: 'post',
        data
    })
}
// 新增
export function add(data) {
    return request({
        url: '/device/jobinfo/add',
        method: 'post',
        data
    })
}
dupengyu's avatar
dupengyu committed
85 86 87 88 89 90 91 92
// 编辑
export function update(data) {
    return request({
        url: '/device/jobinfo/update',
        method: 'post',
        data
    })
}
93 94

/* 调度日志 */
95 96
export function joblogList(data) {
    return request({
dupengyu's avatar
dupengyu committed
97
        url: '/device/joblog/pageList',
98 99 100 101
        method: 'post',
        data
    })
}
dupengyu's avatar
dupengyu committed
102 103 104 105 106 107 108 109 110
export function selectByEquipldAndTime(data) {
    return request({
        url: '/device/joblog/selectByEquipIdAndTime',
        method: 'post',
        data
    })
}


111

112
/* 执行器管理 */
113 114
export function jobgroupList(data) {
    return request({
dupengyu's avatar
dupengyu committed
115
        url: '/device/jobgroup/pageList',
116 117 118 119
        method: 'post',
        data
    })
}
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
// 新增执行器
export function addJobgroup(data) {
    return request({
        url: '/device/jobgroup/save',
        method: 'post',
        data
    })
}
// 编辑执行器
export function updateJobgroup(data) {
    return request({
        url: '/device/jobgroup/update',
        method: 'post',
        data
    })
}
// 删除执行器
export function removeJobgroup(data) {
    return request({
        url: '/device/jobgroup/remove',
        method: 'post',
        data
    })
}