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 }) // 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查询传感器状态 export const querrySensor = () => post('api/vehicle/querrySensor', {}) // 1.3软启动 export const softStart = () => post('api/vehicle/softStart', {}) // 1.4跳过起点 export const skipStartPoint = () => post('api/vehicle/skipStartPoint', {}) // 1.5关机,显示屏控制、TCS控制、RC控制、Joy控制 export const ShutDown = (type, bool) => post('api/vehicle/Shut_down', { type: type, bool: bool }) // 1.6查询初始化坐标 export const queryRestPoint = () => post('api/vehicle/queryRestPoint', {}) // 1.7初始化坐标确定 export const restCoordinate = (code, name, x, y, t) => post('api/vehicle/restCoordinate', { point_code: code, point_name: name, x: x, y: y, t: t }) // 1.8查询agv的状态 export const queryAgvStatus = () => post('api/vehicle/queryAgv_Status', {}) // 1.9退出 export const quitNow = () => post('api/vehicle/quitNow', {}) // 系统管理 // 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 })