调整版本

This commit is contained in:
zyy 2019-11-13 10:34:19 +08:00
parent 71ca6e2cc4
commit 0a3e1963a8
2 changed files with 28 additions and 28 deletions

View File

@ -13,8 +13,8 @@
<script src="https://cdn.bootcss.com/echarts/4.4.0-rc.1/echarts-en.common.js"></script> <script src="https://cdn.bootcss.com/echarts/4.4.0-rc.1/echarts-en.common.js"></script>
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script> <script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
<script src="https://cdn.bootcss.com/vuex/3.1.1/vuex.min.js"></script> <script src="https://cdn.bootcss.com/vuex/3.1.0/vuex.min.js"></script>
<script src="https://cdn.bootcss.com/vue-router/3.1.3/vue-router.min.js"></script> <script src="https://cdn.bootcss.com/vue-router/3.0.6/vue-router.min.js"></script>
<script src="https://cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script> <script src="https://cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script>
<!-- <script src="https://cdn.bootcss.com/element-ui/2.12.0/index.js"></script> <!-- <script src="https://cdn.bootcss.com/element-ui/2.12.0/index.js"></script>

View File

@ -1,34 +1,34 @@
class Theme { class Theme {
constructor(code) { constructor(code) {
this._code = '02'; this._code = '02';
this._mapMenu = { this._mapMenu = {
'01': 'chengdu_04', '01': 'chengdu_04',
'02': 'fuzhou_01', '02': 'fuzhou_01',
'03': 'beijing_01', '03': 'beijing_01',
'04': 'chengdu_03', '04': 'chengdu_03',
'05': 'fuzhou_01' // 国际版运行图皮肤 指向05 福州线路 '05': 'fuzhou_01' // 国际版运行图皮肤 指向05 福州线路
}; };
} }
// 加载菜单组件 // 加载菜单组件
loadMenuComponent(code) { loadMenuComponent(code) {
return Object.assign({}, require(`./${this._mapMenu[code || this._code]}/menus/index`).default); return Object.assign({}, require(`./${this._mapMenu[code || this._code]}/menus/index`).default);
} }
// 加载运行图计划表组件 // 加载运行图计划表组件
loadPlanComponent(code) { loadPlanComponent(code) {
return Object.assign({}, require(`./${this._mapMenu[code || this._code]}/planSchedule/index`).default); return Object.assign({}, require(`./${this._mapMenu[code || this._code]}/planSchedule/index`).default);
} }
// 加载运行图解析和转化函数 // 加载运行图解析和转化函数
loadPlanConvert(code) { loadPlanConvert(code) {
return require(`./${this._mapMenu[code || this._code]}/planConvert`).default; return require(`./${this._mapMenu[code || this._code]}/planConvert`).default;
} }
// 共有字段转换 // 共有字段转换
loadPropConvert(code) { loadPropConvert(code) {
return require(`./${this._mapMenu[code || this._code]}/model`).default; return require(`./${this._mapMenu[code || this._code]}/model`).default;
} }
} }
export default Theme; export default Theme;