2023-05-05 14:20:13 +08:00
|
|
|
|
import {post} from '@config/http.js'
|
|
|
|
|
|
// import store from '../vuex/store'
|
|
|
|
|
|
|
2023-05-24 16:28:51 +08:00
|
|
|
|
// 开发者选项
|
2023-05-05 14:20:13 +08:00
|
|
|
|
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
|
|
|
|
|
|
})
|
2023-05-24 14:43:07 +08:00
|
|
|
|
// 1.2 添加角色
|
|
|
|
|
|
export const sysRoleAdd = (name, remark) => post('api/sysRole/add', {
|
|
|
|
|
|
name: name,
|
|
|
|
|
|
remark: remark
|
|
|
|
|
|
})
|
|
|
|
|
|
// 1.3 修改角色
|
|
|
|
|
|
export const sysRoleEdit = (roleId, name, remark) => post('api/sysRole/edit', {
|
|
|
|
|
|
roleId: roleId,
|
|
|
|
|
|
name: name,
|
|
|
|
|
|
remark: remark
|
|
|
|
|
|
})
|
|
|
|
|
|
// 1.4 删除角色
|
|
|
|
|
|
export const sysRoleDelete = (roleId) => post('api/sysRole/delete', {
|
|
|
|
|
|
rolesIds: roleId
|
|
|
|
|
|
})
|
|
|
|
|
|
// 1.5 保存菜单
|
|
|
|
|
|
export const sysRoleMenu = (roleId, menus) => post('api/sysRole/menu', {
|
|
|
|
|
|
roleId: roleId,
|
|
|
|
|
|
menus: menus
|
|
|
|
|
|
})
|
|
|
|
|
|
// 1.6 查询菜单树
|
|
|
|
|
|
export const menuQuery = (roleId, menus) => post('api/sysRole/menuQuery', {
|
|
|
|
|
|
})
|
2023-05-24 15:34:50 +08:00
|
|
|
|
|
|
|
|
|
|
// 系统参数
|
|
|
|
|
|
// 1.1 参数列表
|
|
|
|
|
|
export const paramQuery = (page, size) => post('api/param/query', {
|
|
|
|
|
|
page: page,
|
|
|
|
|
|
size: size
|
|
|
|
|
|
})
|
|
|
|
|
|
// 1.2 添加参数
|
|
|
|
|
|
export const paramAdd = (code, name, value, remark) => post('api/param/add', {
|
|
|
|
|
|
code: code,
|
|
|
|
|
|
name: name,
|
|
|
|
|
|
value: value,
|
|
|
|
|
|
remark: remark
|
|
|
|
|
|
})
|
|
|
|
|
|
// 1.3 修改参数
|
|
|
|
|
|
export const paramEdit = (id, code, name, value, remark) => post('api/param/edit', {
|
|
|
|
|
|
id: id,
|
|
|
|
|
|
code: code,
|
|
|
|
|
|
name: name,
|
|
|
|
|
|
value: value,
|
|
|
|
|
|
remark: remark
|
|
|
|
|
|
})
|
|
|
|
|
|
// 1.4 删除参数
|
|
|
|
|
|
export const paramDelete = (paramsIds) => post('api/param/delete', {
|
|
|
|
|
|
paramsIds: paramsIds
|
|
|
|
|
|
})
|