2021-02-25 18:03:16 +08:00
|
|
|
// 操作规则定义
|
|
|
|
// {id: "1", trainingType: "ControlConvertMenu", name: "车站名称"}
|
|
|
|
// {id: "2", trainingType: "ControlConvertMenu", name: "车站控制模式编号"}
|
|
|
|
// {id: "3", trainingType: "Signal", name: "进路名称"}
|
|
|
|
// {id: "4", trainingType: "Signal", name: "进路编号"}
|
|
|
|
// {id: "5", trainingType: "Signal", name: "信号机名称"}
|
|
|
|
// {id: "6", trainingType: "Signal", name: "信号机编号"}
|
|
|
|
// {id: "7", trainingType: "Switch", name: "道岔名称"}
|
|
|
|
// {id: "8", trainingType: "Section", name: "物理区段名称"}
|
|
|
|
// {id: "9", trainingType: "Section", name: "逻辑区段名称"}
|
|
|
|
// {id: "10", trainingType: "Stand", name: "车站名称"}
|
|
|
|
// {id: "11", trainingType: "Stand", name: "站台行驶方向编号"}
|
|
|
|
// {id: "12", trainingType: "Stand", name: "站台行驶方向"}
|
|
|
|
// {id: "13", trainingType: "Stand", name: "站台行驶方向编号(反)"}
|
|
|
|
// {id: "14", trainingType: "Stand", name: "站台行驶方向(反)"}
|
|
|
|
// {id: "29", trainingType: "Stand", name: "站台名称"}
|
|
|
|
// {id: "30", trainingType: "Stand", name: "站台编码"}
|
|
|
|
// {id: "15", trainingType: "Switch", name: "道岔位置"}
|
|
|
|
// {id: "16", trainingType: "Switch", name: "道岔位置(反)"}
|
|
|
|
// {id: "17", trainingType: "Switch", name: "道岔编码"}
|
|
|
|
// {id: "18", trainingType: "Section", name: "逻辑区段编码"}
|
|
|
|
// {id: "19", trainingType: "Section", name: "区段编号"}
|
|
|
|
// {id: "20", trainingType: "Section", name: "车站名称"}
|
|
|
|
// {id: "21", trainingType: "Switch", name: "车站名称"}
|
|
|
|
// {id: "22", trainingType: "Section", name: "车站编号"}
|
|
|
|
// {id: "23", trainingType: "Switch", name: "车站编号"}
|
|
|
|
// {id: "24", trainingType: "Switch", name: "道岔计轴区段编号"}
|
|
|
|
// {id: "25", trainingType: "Switch", name: "道岔计轴区段名称"}
|
|
|
|
// {id: "29", trainingType: "Stand", name: "站台名称"}
|
|
|
|
// {id: "30", trainingType: "Stand", name: "站台编码"}
|
|
|
|
// {id: "31", trainingType: "Station", name: "站台编码"}
|
|
|
|
// {id: "32", trainingType: "Station", name: "站台编码"}
|
|
|
|
|
2019-11-29 12:51:58 +08:00
|
|
|
class Theme {
|
|
|
|
constructor(code) {
|
|
|
|
this._code = '02';
|
|
|
|
this._mapMenu = {
|
2020-10-22 14:29:55 +08:00
|
|
|
'00': 'aus_00',
|
2020-04-16 17:26:01 +08:00
|
|
|
'01': 'chengdu_01',
|
2019-11-29 12:51:58 +08:00
|
|
|
'02': 'fuzhou_01',
|
|
|
|
'03': 'beijing_01',
|
|
|
|
'04': 'chengdu_03',
|
2019-12-19 18:04:28 +08:00
|
|
|
'05': 'fuzhou_01', // 国际版运行图皮肤 指向05 福州线路
|
2020-02-03 17:17:56 +08:00
|
|
|
'06': 'ningbo_01',
|
2020-03-23 14:27:57 +08:00
|
|
|
'07': 'haerbin_01', // 哈尔滨培训线路
|
2020-04-15 10:06:26 +08:00
|
|
|
'08': 'foshan_01',
|
2020-04-21 14:14:33 +08:00
|
|
|
'09': 'xian_02',
|
2020-05-10 22:20:24 +08:00
|
|
|
'10': 'xian_01',
|
2020-08-19 14:06:01 +08:00
|
|
|
'11': 'xian_01',
|
2020-10-22 14:29:55 +08:00
|
|
|
'12': 'ningbo_03',
|
2020-12-18 09:30:18 +08:00
|
|
|
'13': 'race_01',
|
2021-01-11 17:51:54 +08:00
|
|
|
'14': 'nanjing_02' // 南京二号线
|
2019-11-29 12:51:58 +08:00
|
|
|
};
|
2020-03-13 13:01:58 +08:00
|
|
|
this._localShowMode = { // 现地显示模式
|
|
|
|
'01': 'all', // 成都一 全显
|
|
|
|
'02': 'all', // 福州一 全显
|
|
|
|
'03': 'all', // 北京一 全显
|
|
|
|
'04': 'all', // 成都三 全显
|
|
|
|
'05': 'all', // 国际版运行图皮肤 指向05 福州线路 全显
|
2020-03-25 15:22:52 +08:00
|
|
|
'06': 'ecStation', // 宁波一 集中站显示
|
2020-03-23 14:27:57 +08:00
|
|
|
'07': 'ecStation', // 哈尔滨培训线路 集中站显示
|
2020-04-15 10:06:26 +08:00
|
|
|
'08': 'all', // 佛山有轨线路 全显
|
2020-04-21 14:14:33 +08:00
|
|
|
'09': 'all',
|
2020-05-10 22:20:24 +08:00
|
|
|
'10': 'all',
|
2020-08-19 14:06:01 +08:00
|
|
|
'11': 'all',
|
2020-10-22 14:29:55 +08:00
|
|
|
'12': 'all',
|
2020-12-18 09:30:18 +08:00
|
|
|
'13':'all',
|
2021-02-23 14:20:05 +08:00
|
|
|
'14':'ecStation'
|
2020-03-13 13:01:58 +08:00
|
|
|
};
|
2019-11-29 12:51:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 加载菜单组件
|
|
|
|
loadMenuComponent(code) {
|
|
|
|
return Object.assign({}, require(`./${this._mapMenu[code || this._code]}/menus/index`).default);
|
|
|
|
}
|
|
|
|
|
2020-07-06 17:49:17 +08:00
|
|
|
// // 加载菜单组件
|
|
|
|
// loadMenuComponent(code) {
|
|
|
|
// const menuCode = code || this._code;
|
|
|
|
// return new LoadMenuComponent(menuCode);
|
|
|
|
// }
|
|
|
|
|
2019-11-29 12:51:58 +08:00
|
|
|
// 加载运行图计划表组件
|
2020-04-21 18:43:10 +08:00
|
|
|
// loadPlanComponent(code) {
|
|
|
|
// return Object.assign({}, require(`./${this._mapMenu[code || this._code]}/planSchedule/index`).default);
|
|
|
|
// }
|
2019-11-29 12:51:58 +08:00
|
|
|
|
|
|
|
// 加载运行图解析和转化函数
|
|
|
|
loadPlanConvert(code) {
|
|
|
|
return require(`./${this._mapMenu[code || this._code]}/planConvert`).default;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 共有字段转换
|
|
|
|
loadPropConvert(code) {
|
|
|
|
return require(`./${this._mapMenu[code || this._code]}/model`).default;
|
|
|
|
}
|
2020-04-08 11:26:55 +08:00
|
|
|
|
|
|
|
// 加载实训操作步骤
|
|
|
|
loadTraingSteps(code) {
|
|
|
|
if (code == '05') {
|
|
|
|
return require(`./${this._mapMenu[code || this._code]}/operationConfigGlobal`).default;
|
|
|
|
} else {
|
|
|
|
return require(`./${this._mapMenu[code || this._code]}/operationConfig`).default;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2019-11-29 12:51:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Theme;
|