This commit is contained in:
2025-07-23 20:05:03 +08:00
parent ecc4e40939
commit 677ce26b2e
11 changed files with 345 additions and 11 deletions

View File

@@ -33,3 +33,29 @@ export const updateStation = (code, st) => post('api/operate/updateStation', {
station_code: code,
station_name: st
})
export const imageUrl = require('../images/new/apt_map.png')
// 地图
export const fetchMapData = () => {
let res = {
code: 200,
message: 'success',
data: {
image: imageUrl,
width: 400,
height: 300,
pixelRatio: 1,
leftBottomCoordinate: {x: -100, y: -300}
}
}
return res
}
export const fetchPathData = () => {
let res = {
code: 200,
message: 'success',
data: [{id: 'A', x: '0', y: '-200'}, {id: 'B', x: '100', y: '-250'}]
}
return res
}