This commit is contained in:
2023-10-12 11:24:33 +08:00
parent 40b946dde4
commit 8c9bf09057
3 changed files with 62 additions and 19 deletions

43
utils/getData1.js Normal file
View File

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