rt-sim-training-client/src/utils/mapList.js

21 lines
710 B
JavaScript
Raw Normal View History

2019-11-08 16:22:05 +08:00
import { getSessionStorage } from '@/utils/auth';
import { listPublishMap, getMapListByProjectCode } from '@/api/jmap/map';
import { ProjectCode } from '@/scripts/ConstDic';
export async function getMapListByProject(drawWay) {
2019-11-08 16:22:05 +08:00
const project = getSessionStorage('project');
let mapList = [];
if (project.endsWith('xty') || project.endsWith('gzb')) {
2019-11-08 16:22:05 +08:00
mapList = await getMapListByProjectCode(ProjectCode[project]);
} else {
mapList = await listPublishMap({'drawWay':drawWay});
2019-11-08 16:22:05 +08:00
}
return mapList;
}
2020-03-16 17:16:59 +08:00
export function getAutoReentryBySignalCode(signalCode, routeList, autoReentryList) { // 根据折返进路的始端信号机去找
routeList.forEach(item => {
});
}