地图和操作

This commit is contained in:
2025-07-24 19:08:13 +08:00
parent 677ce26b2e
commit ae2d9b631f
7 changed files with 376 additions and 137 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable */
export const queryStation = () => {
let res = {
message: 'ok',
@@ -18,3 +19,80 @@ export const updateStation = () => {
}
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": "Goal_21",
"station_name": "Goal_21",
"station_type": "SYSTEM",
"action_type": "Move",
"x": 100.30318,
"y": 0.123685,
"angle": 0.0959
},
{
"station_id": 3,
"station_code": "C",
"station_name": "C",
"station_type": "STATION",
"action_type": "Customize",
"x": 200.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": 100.30318,
"end_y": 0.123685,
"navigation_mode": "1",
"route_type": "1"
},
{
"route_id": 2,
"start_id": 2,
"end_id": 3,
"start_x": -100.30318,
"start_y": 0.123685,
"end_x": 200.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": 1,
"x": -13.7,
"y": -7.1,
"angle": 0.0
}
return res
}