change
This commit is contained in:
65
utils/getData3.js
Normal file
65
utils/getData3.js
Normal file
@@ -0,0 +1,65 @@
|
||||
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:'mobile/auth/login',
|
||||
data: {
|
||||
username: user,
|
||||
password: password
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 任务下发
|
||||
*/
|
||||
// 一、生成任务
|
||||
export const callTask = (scode, ncode, type) => request({
|
||||
url:'api/hand/callTask',
|
||||
data: {
|
||||
start_device_code: scode,
|
||||
next_device_code: ncode,
|
||||
task_type: type
|
||||
}
|
||||
})
|
||||
// 二、查询区域
|
||||
export const queryArea = () => request({
|
||||
url:'api/hand/queryArea',
|
||||
data: {}
|
||||
})
|
||||
// 三、查询区域站点
|
||||
export const queryPointByArea = (rcode) => request({
|
||||
url:'api/hand/queryPointByArea',
|
||||
data: {
|
||||
region_code: rcode
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
/**
|
||||
* 任务管理
|
||||
*/
|
||||
// 四、查询未完成任务
|
||||
export const querytasks = () => request({
|
||||
url:'api/hand/tasks',
|
||||
data: {}
|
||||
})
|
||||
// 五、任务操作
|
||||
export const taskoperation = (id, type) => request({
|
||||
url:'api/hand/taskoperation',
|
||||
data: {
|
||||
task_uuid: id,
|
||||
type: type
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user