2025-07-24 19:08:13 +08:00
|
|
|
/* eslint-disable */
|
2025-07-14 09:28:21 +08:00
|
|
|
export const queryStation = () => {
|
|
|
|
|
let res = {
|
|
|
|
|
message: 'ok',
|
2025-08-15 13:43:23 +08:00
|
|
|
data: [
|
2025-09-17 17:52:04 +08:00
|
|
|
{station_id: 'B1', station_code: 'B1', station_name: 'Starting position on the first floor Starting position on the first floor', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B2', station_code: 'B2', station_name: '一楼起点位置一楼起点位置一楼起点位置', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B3', station_code: 'B3', station_name: 'B3', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B4', station_code: 'B4', station_name: 'B4', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B5', station_code: 'B5', station_name: 'B5', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B6', station_code: 'B6', station_name: 'B6', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B7', station_code: 'B7', station_name: 'B7', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B8', station_code: 'B8', station_name: 'B8', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B9', station_code: 'B9', station_name: 'B9', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B10', station_code: 'B10', station_name: 'B10', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B11', station_code: 'B11', station_name: 'B11', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B12', station_code: 'B12', station_name: 'B12', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B13', station_code: 'B13', station_name: 'B13', x: '10', Y: '10', angle: '90'},
|
|
|
|
|
{station_id: 'B14', station_code: 'B14', station_name: 'B14', x: '10', Y: '10', angle: '90'}
|
2025-08-15 13:43:23 +08:00
|
|
|
]
|
2025-07-14 09:28:21 +08:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
}
|
2025-07-24 19:08:13 +08:00
|
|
|
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,
|
2025-07-25 10:06:56 +08:00
|
|
|
"station_code": "B1",
|
|
|
|
|
"station_name": "B1",
|
2025-08-13 18:06:35 +08:00
|
|
|
"station_type": "Charge",
|
2025-07-25 10:06:56 +08:00
|
|
|
"action_type": "Customize",
|
|
|
|
|
"x": -3.30318,
|
2025-07-24 19:08:13 +08:00
|
|
|
"y": 0.123685,
|
|
|
|
|
"angle": 0.0959
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"station_id": 3,
|
|
|
|
|
"station_code": "C",
|
|
|
|
|
"station_name": "C",
|
|
|
|
|
"station_type": "STATION",
|
|
|
|
|
"action_type": "Customize",
|
2025-07-25 10:06:56 +08:00
|
|
|
"x": -6.0227,
|
2025-07-24 19:08:13 +08:00
|
|
|
"y": 0.316379,
|
|
|
|
|
"angle": 0.136773
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
export const getRouteInfo = () => {
|
|
|
|
|
let res = [
|
2025-07-25 10:06:56 +08:00
|
|
|
{
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
]
|
2025-07-24 19:08:13 +08:00
|
|
|
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,
|
2025-07-25 10:06:56 +08:00
|
|
|
"resolution": 0.05,
|
2025-07-24 19:08:13 +08:00
|
|
|
"x": -13.7,
|
|
|
|
|
"y": -7.1,
|
|
|
|
|
"angle": 0.0
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
2025-08-05 16:30:59 +08:00
|
|
|
export const startMapping = () => {
|
|
|
|
|
let res = {
|
|
|
|
|
code: 200,
|
|
|
|
|
message: 'ok'
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
2025-08-08 17:44:36 +08:00
|
|
|
export const stopMapping = () => {
|
|
|
|
|
let res = {
|
|
|
|
|
code: 200,
|
|
|
|
|
message: 'ok'
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
export const getMappingStatus = () => {
|
|
|
|
|
let res = {
|
|
|
|
|
code: 200,
|
|
|
|
|
message: 'ok',
|
2025-08-11 13:28:37 +08:00
|
|
|
mapping_return: '1',
|
|
|
|
|
mapping_percent: '50'
|
2025-08-08 17:44:36 +08:00
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|
2025-08-27 11:16:49 +08:00
|
|
|
export const queryErrorDataByCode = (code) => {
|
|
|
|
|
let res = {
|
|
|
|
|
"error_id": "1",
|
|
|
|
|
"error_name": "导航定位失败",
|
|
|
|
|
"zh_error_name": '导航定位失败',
|
|
|
|
|
"en_error_name": '导航定位error',
|
|
|
|
|
"error_code": "1",
|
|
|
|
|
"error_category": 1,
|
|
|
|
|
"error_description": "出现了定位切换失败",
|
|
|
|
|
"zh_error_description": null,
|
|
|
|
|
"en_error_description": null,
|
|
|
|
|
"error_type": 1,
|
|
|
|
|
"graphicDescription": [
|
|
|
|
|
{
|
|
|
|
|
"error_handling_id": "1",
|
|
|
|
|
"error_code": "1",
|
|
|
|
|
"error_handling_type": 1,
|
|
|
|
|
"error_handling_title": "出现了定位切换失败",
|
|
|
|
|
"zh_error_handling_title": '出现了定位切换失败',
|
|
|
|
|
"en_error_handling_title": '出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error',
|
|
|
|
|
"error_handling_seq": 1,
|
|
|
|
|
"error_handling_addre": null
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"error_handling_id": "2",
|
|
|
|
|
"error_code": "1",
|
|
|
|
|
"error_handling_type": 1,
|
|
|
|
|
"error_handling_title": "解决定位",
|
|
|
|
|
"zh_error_handling_title": null,
|
|
|
|
|
"en_error_handling_title": '出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error',
|
|
|
|
|
"error_handling_seq": 2,
|
|
|
|
|
"error_handling_addre": null
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"error_handling_id": "3",
|
|
|
|
|
"error_code": "1",
|
|
|
|
|
"error_handling_type": 1,
|
|
|
|
|
"error_handling_title": "解决定位",
|
|
|
|
|
"zh_error_handling_title": null,
|
|
|
|
|
"en_error_handling_title": '出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error出现了定位切换失败error',
|
|
|
|
|
"error_handling_seq": 2,
|
|
|
|
|
"error_handling_addre": null
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"videoDescription": [
|
|
|
|
|
{
|
|
|
|
|
"error_handling_id": "3",
|
|
|
|
|
"error_code": "1",
|
|
|
|
|
"error_handling_type": 2,
|
|
|
|
|
"error_handling_title": "大苏打",
|
|
|
|
|
"zh_error_handling_title": null,
|
|
|
|
|
"en_error_handling_title": null,
|
|
|
|
|
"error_handling_seq": 1,
|
|
|
|
|
"error_handling_addre": null
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
return res
|
2025-09-16 18:01:49 +08:00
|
|
|
}
|
|
|
|
|
export const setStation = (sn, code) => {
|
|
|
|
|
let res = {
|
|
|
|
|
code: 200,
|
|
|
|
|
message: 'ok'
|
|
|
|
|
}
|
|
|
|
|
return res
|
2025-09-17 17:52:04 +08:00
|
|
|
}
|
|
|
|
|
export const getReturnStation = () => {
|
|
|
|
|
let res = {station_id: 'B1',station_code:"111",station_name:"1111"}
|
|
|
|
|
return res
|
2025-08-27 11:16:49 +08:00
|
|
|
}
|