map
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user