接口
This commit is contained in:
43
utils/getData1.js
Normal file
43
utils/getData1.js
Normal 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
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user