Files
hht-lnsh-new/src/config/getData1.js

29 lines
739 B
JavaScript
Raw Normal View History

2023-04-17 17:20:53 +08:00
import {post2} from '@config/http.js'
2023-04-17 09:09:34 +08:00
// import store from '../vuex/store'
// 指令管理
// 1.1 查询未完成指令
2023-04-17 17:20:53 +08:00
export const queryInstraction = (keyword, scode, ncode) => post2('api/hand/insts', {
2023-04-17 09:09:34 +08:00
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
})
// 1.2 指令操作
2023-04-17 17:20:53 +08:00
export const instOperation = (uuid, type) => post2('api/hand/inst', {
2023-04-17 09:09:34 +08:00
inst_uuid: uuid,
type: type
})
// 任务管理
// 1.1 查询未完成指令
2023-04-17 17:20:53 +08:00
export const queryTask = (keyword, scode, ncode) => post2('api/hand/tasks', {
2023-04-17 09:09:34 +08:00
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
})
// 1.2 指令操作
2023-04-17 17:20:53 +08:00
export const taskOperation = (uuid, type) => post2('api/hand/taskoperation', {
2023-04-17 09:09:34 +08:00
inst_uuid: uuid,
type: type
})