Files
apt15e/src/config/mork.js
2025-08-15 13:43:23 +08:00

137 lines
3.5 KiB
JavaScript

/* eslint-disable */
export const queryStation = () => {
let res = {
message: 'ok',
data: [
{station_code: 'B1', station_name: 'B1', x: '10', Y: '10', angle: '90'},
{station_code: 'B2', station_name: 'B2', x: '10', Y: '10', angle: '90'},
{station_code: 'B3', station_name: 'B3', x: '10', Y: '10', angle: '90'},
{station_code: 'B4', station_name: 'B4', x: '10', Y: '10', angle: '90'},
{station_code: 'B5', station_name: 'B5', x: '10', Y: '10', angle: '90'},
{station_code: 'B6', station_name: 'B6', x: '10', Y: '10', angle: '90'},
{station_code: 'B7', station_name: 'B7', x: '10', Y: '10', angle: '90'},
{station_code: 'B8', station_name: 'B8', x: '10', Y: '10', angle: '90'},
{station_code: 'B9', station_name: 'B9', x: '10', Y: '10', angle: '90'},
{station_code: 'B10', station_name: 'B10', x: '10', Y: '10', angle: '90'},
{station_code: 'B11', station_name: 'B11', x: '10', Y: '10', angle: '90'},
{station_code: 'B12', station_name: 'B12', x: '10', Y: '10', angle: '90'},
{station_code: 'B13', station_name: 'B13', x: '10', Y: '10', angle: '90'},
{station_code: 'B14', station_name: 'B14', x: '10', Y: '10', angle: '90'}
]
}
return res
}
export const queryTaskChain = () => {
let res = {
message: 'ok',
data: [{chain_id: '1', chain_point: 'A-B-C', chain_name: 'A-B-C', action_type: 'Ascend-Descend-Move'}]
}
return res
}
export const updateStation = () => {
let res = {
message: 'ok'
}
return res
}
export const queryMapAllStation = () => {
let res = [
{
"station_id": 1,
"station_code": "A",
"station_name": "A",
"station_type": "STATION",
"action_type": "Customize",
"x": 0.0,
"y": 0.0,
"angle": 0.014406
},
{
"station_id": 2,
"station_code": "B1",
"station_name": "B1",
"station_type": "Charge",
"action_type": "Customize",
"x": -3.30318,
"y": 0.123685,
"angle": 0.0959
},
{
"station_id": 3,
"station_code": "C",
"station_name": "C",
"station_type": "STATION",
"action_type": "Customize",
"x": -6.0227,
"y": 0.316379,
"angle": 0.136773
}
]
return res
}
export const getRouteInfo = () => {
let res = [
{
"route_id": 1,
"start_id": 1,
"end_id": 2,
"start_x": 0.0,
"start_y": 0.0,
"end_x": -3.30318,
"end_y": 0.123685,
"navigation_mode": "1",
"route_type": "1"
},
{
"route_id": 2,
"start_id": 2,
"end_id": 3,
"start_x": -3.30318,
"start_y": 0.123685,
"end_x": -6.0227,
"end_y": 0.316379,
"navigation_mode": "0",
"route_type": "1"
}
]
return res
}
export const imageUrl = require('../images/new/apt_map.png')
export const getMapInfoByCode = () => {
let res = {
"mapCode": "apt_map_1752651599720.png",
"mapName": "apt_map_1752651599720.png",
"mapImageAddress": imageUrl,
"width": 359.0,
"height": 287.0,
"resolution": 0.05,
"x": -13.7,
"y": -7.1,
"angle": 0.0
}
return res
}
export const startMapping = () => {
let res = {
code: 200,
message: 'ok'
}
return res
}
export const stopMapping = () => {
let res = {
code: 200,
message: 'ok'
}
return res
}
export const getMappingStatus = () => {
let res = {
code: 200,
message: 'ok',
mapping_return: '1',
mapping_percent: '50'
}
return res
}