rt-sim-training-client/src/api/designPlatform.js

33 lines
798 B
JavaScript
Raw Normal View History

2019-09-29 14:27:58 +08:00
import request from '@/utils/request';
export function getDraftLesson(params, mapId) {
/** 根据mapId获取草稿课程 */
return request({
url: `/api/mapSystem/findDraftLessonBy/${mapId}`,
method: 'get',
params
});
}
2019-09-29 15:57:19 +08:00
/** 获取用户地图树 */
export function getUserMapTree(cityCode) {
return request({
url: `/api/mapSystem/findDraftMapByCityCode?cityCode=${cityCode}`,
method: 'get'
});
2019-09-29 15:57:19 +08:00
}
2019-09-30 10:46:29 +08:00
/** 运行图*/
export function getRpListByUserMapId(mapId) {
return request({
url: `/api/runPlan/draft/user/${mapId}/list`,
method: 'get'
});
}
2019-09-30 13:24:47 +08:00
export function getMapList(cityCode) {
/** 根据cityCode获取地图列表 */
return request({
url: `/api/mapSystem/queryMapByCityCode/${cityCode}`,
method: 'get',
});
2019-09-30 13:24:47 +08:00
}