2019-09-26 15:08:53 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
2019-10-22 15:13:58 +08:00
|
|
|
export function getTrainingSystemList(cityCode, params) {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 根据cityCode后去对应地图及其子系统 */
|
|
|
|
return request({
|
|
|
|
url: `/api/mapSystem/city/${cityCode}`,
|
|
|
|
method: 'get',
|
|
|
|
params
|
|
|
|
});
|
2019-09-26 15:08:53 +08:00
|
|
|
}
|
2019-09-27 14:46:08 +08:00
|
|
|
|
2019-10-17 17:11:15 +08:00
|
|
|
export function generateMapSystem(mapId) {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 根据mapId生成地图子系统 */
|
|
|
|
return request({
|
|
|
|
url: `/api/mapSystem/generate/${mapId}`,
|
|
|
|
method: 'post'
|
|
|
|
});
|
2019-10-17 17:11:15 +08:00
|
|
|
}
|
2019-10-18 17:15:04 +08:00
|
|
|
|
|
|
|
export function getSubSystemInfo(id) {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 查询子系统信息 */
|
|
|
|
return request({
|
|
|
|
url: `/api/mapSystem/${id}`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
2019-10-18 17:15:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function getSubSystemDetail(id) {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 查询子系统详情*/
|
|
|
|
return request({
|
|
|
|
url: `/api/mapSystem/${id}/detail`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
2019-10-18 17:15:04 +08:00
|
|
|
}
|
2019-10-21 15:50:15 +08:00
|
|
|
|
|
|
|
export function getMapSystemPageList(params) {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 分页查询地图系统 */
|
|
|
|
return request({
|
|
|
|
url: `/api/mapSystem`,
|
|
|
|
method: 'get',
|
|
|
|
params
|
|
|
|
});
|
2019-10-21 15:50:15 +08:00
|
|
|
}
|
2019-10-22 09:36:37 +08:00
|
|
|
|
|
|
|
export function createMapSubSystem(data) {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 创建地图系统 */
|
|
|
|
return request({
|
|
|
|
url: `/api/mapSystem`,
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
});
|
2019-10-22 09:36:37 +08:00
|
|
|
}
|
|
|
|
|
2019-10-22 11:20:43 +08:00
|
|
|
export function updateSubSystem(id, data) {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 查询子系统信息 */
|
|
|
|
return request({
|
|
|
|
url: `/api/mapSystem/${id}`,
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
});
|
2019-10-22 11:20:43 +08:00
|
|
|
}
|
|
|
|
|
2019-10-22 15:13:58 +08:00
|
|
|
export function deleteSubSystem(id) {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 删除地图系统 */
|
|
|
|
return request({
|
|
|
|
url: `/api/mapSystem/${id}`,
|
|
|
|
method: 'delete'
|
|
|
|
});
|
2019-10-22 15:13:58 +08:00
|
|
|
}
|
|
|
|
|
2020-07-09 10:25:04 +08:00
|
|
|
export function getSubSystemByProjectCode() {
|
2019-10-29 15:40:47 +08:00
|
|
|
/** 根据项目编号查询地图子系统 */
|
|
|
|
return request({
|
2020-07-09 10:25:04 +08:00
|
|
|
url: `/api/mapSystem/project`,
|
2019-10-29 15:40:47 +08:00
|
|
|
method: 'get'
|
|
|
|
});
|
2019-10-29 14:14:14 +08:00
|
|
|
}
|
|
|
|
|