2019-07-25 10:30:30 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
/** 获取发布地图管理分页*/
|
|
|
|
export function getPublishMapList(params) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: '/api/map',
|
|
|
|
method: 'get',
|
|
|
|
params: params
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/** 根据皮肤获取发布地图列表*/
|
2019-11-04 13:29:51 +08:00
|
|
|
export function getPublishMapListByLineCode(lineCode) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
2019-11-04 13:29:51 +08:00
|
|
|
url: `/api/map/${lineCode}/list`,
|
2019-10-29 15:40:47 +08:00
|
|
|
method: 'get'
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
2019-08-12 17:35:55 +08:00
|
|
|
/** 根据地图id获取地图版本信息*/
|
|
|
|
export function getPublishMapVersionById(id) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${id}/version`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
2019-08-12 17:35:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/** 根据地图id获取发布地图详细内容*/
|
|
|
|
export function getPublishMapDetailById(id) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${id}/details`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/** 获取发布地图列表*/
|
2019-10-18 18:35:17 +08:00
|
|
|
export function listPublishMap(params) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/list`,
|
|
|
|
method: 'get',
|
|
|
|
params
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/** 根据地图id获取地图信息*/
|
|
|
|
export function getPublishMapInfo(mapId) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${mapId}`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/** 发布地图数据导出*/
|
|
|
|
export function getPublishMapExport(mapId) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${mapId}/export`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/** 删除发布地图*/
|
|
|
|
export function delPublishMap(mapId) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${mapId}`,
|
|
|
|
method: 'DELETE'
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
2019-08-08 14:32:32 +08:00
|
|
|
/** 发布地图上架*/
|
2019-07-25 10:30:30 +08:00
|
|
|
export function putMapOnLine(mapId) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${mapId}/onLine`,
|
|
|
|
method: 'put'
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
2019-08-08 14:32:32 +08:00
|
|
|
/** 发布地图下架*/
|
2019-07-25 10:30:30 +08:00
|
|
|
export function putMapOffLine(mapId) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${mapId}/offLine`,
|
|
|
|
method: 'put'
|
|
|
|
});
|
2019-07-25 10:30:30 +08:00
|
|
|
}
|
|
|
|
|
2019-08-08 14:32:32 +08:00
|
|
|
/** 修改发布地图名称*/
|
2019-07-25 10:30:30 +08:00
|
|
|
export function updatePublishMapName(data) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${data.mapId}/updateName`,
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
});
|
2019-08-08 14:32:32 +08:00
|
|
|
}
|
2019-08-29 17:16:33 +08:00
|
|
|
|
2019-10-28 10:29:17 +08:00
|
|
|
/** 获取发布地图详情*/
|
2019-08-29 17:16:33 +08:00
|
|
|
export function getPublishMapDetailList(params, code) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${code}/versions`,
|
|
|
|
method: 'get',
|
|
|
|
params: params
|
|
|
|
});
|
2019-08-29 17:16:33 +08:00
|
|
|
}
|
2019-10-16 14:00:30 +08:00
|
|
|
|
|
|
|
/** 获取有屏蔽门的站台列表*/
|
|
|
|
export function hasDoorStationList(mapId) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${mapId}/stand/hasDoor`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
2019-10-16 14:00:30 +08:00
|
|
|
}
|
2019-10-25 17:50:55 +08:00
|
|
|
|
2019-10-28 10:29:17 +08:00
|
|
|
/** 修改发布地图城市*/
|
2019-10-25 17:50:55 +08:00
|
|
|
export function updatePublishMapCity(data) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${data.mapId}/city`,
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
});
|
2019-10-25 17:50:55 +08:00
|
|
|
}
|
2019-10-29 14:14:14 +08:00
|
|
|
|
|
|
|
/** 设置归属项目 */
|
|
|
|
export function setMapProject(data) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/${data.id}/project`,
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
});
|
2019-10-29 14:14:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/** 根据定制项目编号查询地图列表 */
|
|
|
|
export function getMapListByProjectCode(projectCode) {
|
2019-10-29 15:40:47 +08:00
|
|
|
return request({
|
|
|
|
url: `/api/map/project/${projectCode}/list`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
2019-10-29 14:14:14 +08:00
|
|
|
}
|
2019-10-31 10:32:46 +08:00
|
|
|
|
|
|
|
/** 复制地图线路数据 */
|
|
|
|
export function copyMapAs(mapId, data) {
|
|
|
|
return request({
|
|
|
|
url: `/api/map/copy/${mapId}`,
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
});
|
|
|
|
}
|