Files
apt-nl/src/config/getData2.js

79 lines
2.5 KiB
JavaScript
Raw Normal View History

2023-05-05 14:20:13 +08:00
import {post} from '@config/http.js'
// import store from '../vuex/store'
export const getIP = () => post('api/developer/getIP', {})
export const getLogList = () => post('api/developer/getLogList', {})
export const getROSNodeList = () => post('api/developer/getROSNodeList', {})
export const temperature = () => post('api/developer/temperature', {})
export const debugInfo = () => post('api/developer/debugInfo', {})
export const softwareVersion = () => post('api/developer/softwareVersion', {})
export const parameterSetting = (num, word) => post('api/developer/parameterSetting', {
maxTaskNun: num,
password: word
})
2023-05-24 09:58:28 +08:00
// new
// 登录
export const authlogin = (username, password) => post('auth/login', {
username: username,
password: password
})
// 车辆状态
// 1.1查询车辆状态
export const queryVehicleStatus = (username, password) => post('api/vehicle/queryVehicleStatus', {
})
// 1.2查询传感器状态
2023-05-05 14:20:13 +08:00
export const querrySensor = () => post('api/vehicle/querrySensor', {})
2023-05-24 09:58:28 +08:00
// 1.3软启动
2023-05-05 14:20:13 +08:00
export const softStart = () => post('api/vehicle/softStart', {})
2023-05-24 09:58:28 +08:00
// 1.4跳过起点
2023-05-05 14:20:13 +08:00
export const skipStartPoint = () => post('api/vehicle/skipStartPoint', {})
2023-05-24 09:58:28 +08:00
// 1.5关机显示屏控制、TCS控制、RC控制、Joy控制
export const ShutDown = (type, bool) => post('api/vehicle/Shut_down', {
type: type,
bool: bool
})
// 1.6查询初始化坐标
2023-05-05 14:20:13 +08:00
export const queryRestPoint = () => post('api/vehicle/queryRestPoint', {})
2023-05-24 09:58:28 +08:00
// 1.7初始化坐标确定
2023-05-05 14:20:13 +08:00
export const restCoordinate = (code, name, x, y, t) => post('api/vehicle/restCoordinate', {
point_code: code,
point_name: name,
x: x,
y: y,
t: t
})
2023-05-24 09:58:28 +08:00
// 1.8查询agv的状态
2023-05-05 14:20:13 +08:00
export const queryAgvStatus = () => post('api/vehicle/queryAgv_Status', {})
2023-05-24 09:58:28 +08:00
// 1.9退出
2023-05-05 14:20:13 +08:00
export const quitNow = () => post('api/vehicle/quitNow', {})
2023-05-24 09:58:28 +08:00
// 系统管理
// 1.1 用户列表
export const usersQuery = (page, size) => post('api/users/query', {
page: page,
size: size
})
// 1.2 添加用户
export const usersAdd = (username, personName, gender, phone, rolesIds, password) => post('api/users/add', {
username: username,
personName: personName,
gender: gender,
phone: phone,
rolesIds: rolesIds,
password: password
})
// 1.3 修改用户、重置密码
export const usersEdit = (obj) => post('api/users/edit', obj)
// 1.4 删除用户
export const usersDelete = (userId) => post('api/users/delete', {
usersIds: userId
})
// 角色管理
// 1.1 角色列表
export const sysRoleQuery = (page, size) => post('api/sysRole/query', {
page: page,
size: size
})