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';
|
|
|
|
|
2019-12-09 17:38:08 +08:00
|
|
|
export async function getMapListByProject(drawWay) {
|
2019-11-08 16:22:05 +08:00
|
|
|
const project = getSessionStorage('project');
|
|
|
|
let mapList = [];
|
2019-12-30 18:06:40 +08:00
|
|
|
if (project.endsWith('xty') || project.endsWith('gzb')) {
|
2019-11-08 16:22:05 +08:00
|
|
|
mapList = await getMapListByProjectCode(ProjectCode[project]);
|
|
|
|
} else {
|
2019-12-09 17:38:08 +08:00
|
|
|
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 => {
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|