You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

124 lines
2.0 KiB

import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/task',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/task/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/task',
method: 'put',
data
})
}
export function finish(task_id) {
return request({
url: 'api/task/finish/' + task_id,
method: 'post',
data: task_id
})
}
export function cancel(task_id) {
return request({
url: 'api/task/cancel/' + task_id,
method: 'post',
data: task_id
})
}
export function createInst(task_id) {
return request({
url: 'api/task/createInst/' + task_id,
method: 'post',
data: task_id
})
}
export function reload() {
return request({
url: 'api/task/reload',
method: 'get'
})
}
export function stopTask(data) {
return request({
url: 'api/task/stopTask',
method: 'post',
data
})
}
export function restoreTask(data) {
return request({
url: 'api/task/restoreTask',
method: 'post',
data
})
}
export function createTaskByClick(data) {
return request({
url: 'api/task/createTaskByClick',
method: 'post',
data
})
}
export function queryTaskTreeRecord(data) {
return request({
url: 'api/task/queryTaskTreeRecord',
method: 'post',
data
})
}
export function deviceAskTask(data) {
return request({
url: 'api/task/deviceAskTask',
method: 'post',
data
})
}
export function ordinaryTaskCreate(data) {
return request({
url: 'api/task/adds',
method: 'post',
data
})
}
export function specialTaskCreate(data) {
return request({
url: 'api/task/addes',
method: 'post',
data
})
}
export function hssavetask(data) {
return request({
url: 'api/task/hssavetask',
method: 'post',
data
})
}
export default { add, edit, del, finish, cancel, createTaskByClick, deviceAskTask, ordinaryTaskCreate, specialTaskCreate,
createInst, reload, hssavetask, stopTask, restoreTask }