2019-11-29 12:51:58 +08:00
|
|
|
class Theme {
|
|
|
|
constructor(code) {
|
|
|
|
this._code = '02';
|
|
|
|
this._mapMenu = {
|
2019-12-26 15:39:29 +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 福州线路
|
|
|
|
'06': 'ningbo_01'
|
2019-11-29 12:51:58 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
// 加载菜单组件
|
|
|
|
loadMenuComponent(code) {
|
|
|
|
return Object.assign({}, require(`./${this._mapMenu[code || this._code]}/menus/index`).default);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 加载运行图计划表组件
|
|
|
|
loadPlanComponent(code) {
|
|
|
|
return Object.assign({}, require(`./${this._mapMenu[code || this._code]}/planSchedule/index`).default);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 加载运行图解析和转化函数
|
|
|
|
loadPlanConvert(code) {
|
|
|
|
return require(`./${this._mapMenu[code || this._code]}/planConvert`).default;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 共有字段转换
|
|
|
|
loadPropConvert(code) {
|
|
|
|
return require(`./${this._mapMenu[code || this._code]}/model`).default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Theme;
|