This commit is contained in:
2023-05-10 18:30:23 +08:00
commit 35d7eefc4d
102 changed files with 15443 additions and 0 deletions

119
utils/getData2.js Normal file
View File

@@ -0,0 +1,119 @@
import request from './request.js'
// 版本更新测试
export const pdaUpdate = () => request({
url:'api/pda/update'
})
// export const pdaUpdate = () => {
// let res = {
// versionName: '1.0.1',
// url: 'https://mp-e979e0eb-882b-42b3-a4a1-923ad08ea194.cdn.bspapp.com/cloudstorage/f72ec59f-7b25-487d-a034-fead1b6654c6.apk'
// }
// return res
// }
// 登录
export const handLogin = (user, password) => request({
url:'api/hand/login',
data: {
username: user,
password: password
}
})
// 菜单
export const authority = () => {
let res = {
sonTree: [
{menu_id: '1', imgsrc: 'RF01', name: '呼叫管理', path: '/pages/modules/callmanage'},
{menu_id: '2', imgsrc: 'RF02', name: '指令管理', path: '/pages/modules/taskmanage'},
{menu_id: '3', imgsrc: 'RF03', name: '任务管理', path: '/pages/modules/zlmanage'}
]
}
return res
}
/**
* 站点管理
*/
// 1.1查询所有区域信息
export const queryArea = () => request({
url:'api/hand/queryArea',
data: {}
})
// export const queryArea = () => {
// let res = {
// result: [{region_code: '1', region_name: 'A1'}, {region_code: '2', region_name: 'A2'}, {region_code: '3', region_name: 'A2'}, {region_code: '4', region_name: 'A10'}]
// }
// return res
// }
// 1.2根据区域查询设备编号及状态
export const queryPointByArea = (code) => request({
url:'api/hand/queryPointByArea',
data: {
areaCode: code
}
})
// export const queryPointByArea = () => {
// let res = {
// result: [{
// device_code: '1',
// device_name: 'JLDFJLLJ'
// }]
// }
// return res
// }
/**
* 呼叫管理
*/
// 1.1创建任务(确定起点)
export const callTask = (scodes, code) => request({
url:'api/hand/callTask',
data: {
start_device_codes: scodes,
next_device_code: code
}
})
/**
* 指令管理
*/
// 1.1查询未完成指令
export const queryInstraction = (keyword, scode, ncode) => request({
url:'api/hand/insts',
data: {
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
}
})
//1.2 指令操作
export const instOperation = (uuid, type) => request({
url:'api/hand/inst',
data: {
inst_uuid: uuid,
type: type
}
})
/**
* 任务管理
*/
// 1.1 查询未完成指令
export const queryTask = (keyword, scode, ncode) => request({
url:'api/hand/tasks',
data: {
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
}
})
// 1.2 指令操作
export const taskOperation = (uuid, type) => request({
url:'api/hand/taskoperation',
data: {
inst_uuid: uuid,
type: type
}
})