任务管理

This commit is contained in:
2024-04-23 13:59:56 +08:00
parent 04bd6e7c36
commit 9cabbe7f47
8 changed files with 462 additions and 2 deletions

43
utils/getData02.js Normal file
View File

@@ -0,0 +1,43 @@
import request from './request02.js'
/**
* 指令管理
*/
// 1.1 查询未完成指令(生成任务号为-开头)
export const handInsts = (key, scode, ncode) => request({
url:'api/hand/insts',
data: {
keyword: key,
start_devicecode: scode,
next_devicecode: ncode
}
})
// 1.2 指令操作
export const handInst = (type, id) => request({
url:'api/hand/inst',
data: {
type: type,
inst_uuid: id
}
})
/**
* 任务管理
*/
// 1.1 1.1 查询无指令的任务(任务号为-开头)
export const handTasks = (key, scode, ncode) => request({
url:'api/hand/tasks',
data: {
keyword: key,
start_devicecode: scode,
next_devicecode: ncode
}
})
// 1.2 任务操作
export const handTaskoperation = (type, id) => request({
url:'api/hand/taskoperation',
data: {
type: type,
task_uuid: id
}
})