From e156bac9cae49d88d36306259a2eca6238e4fc41 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Fri, 13 Mar 2020 18:19:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=AC=E5=85=B1=E5=9C=B0?= =?UTF-8?q?=E5=9B=BEibp=E9=85=8D=E7=BD=AE=E7=BB=98=E5=9B=BE=20=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ibp.js | 54 +++++ src/jmapNew/theme/chengdu_01/model.js | 104 ++++----- src/jmapNew/theme/chengdu_03/model.js | 104 ++++----- src/router/index.js | 29 ++- src/store/modules/map.js | 4 +- src/utils/baseUrl.js | 4 +- src/views/demonstration/detail/index.vue | 2 +- src/views/designPlatform/demonList.vue | 15 ++ src/views/ibp/create.vue | 123 +++++++++++ src/views/ibp/home.vue | 186 ++++++++++++++++ src/views/iscs/iscsDesign/demonList.vue | 18 +- src/views/iscs/iscsDesign/index.vue | 11 +- .../iscs/iscsDesign/mapmanage/create.vue | 202 ++++++++++++++++++ .../iscs/iscsDraw/iscsAfcOperate/index.vue | 48 ++--- src/views/iscs/iscsDraw/iscsOperate/index.vue | 48 ++--- src/views/newMap/displayNew/menuSchema.vue | 6 +- src/views/newMap/displayNew/menuScript.vue | 2 +- .../newMap/jointTrainingNew/menuSchema.vue | 6 +- 18 files changed, 786 insertions(+), 180 deletions(-) create mode 100644 src/api/ibp.js create mode 100644 src/views/ibp/create.vue create mode 100644 src/views/ibp/home.vue create mode 100644 src/views/iscs/iscsDesign/mapmanage/create.vue diff --git a/src/api/ibp.js b/src/api/ibp.js new file mode 100644 index 000000000..348dc17cd --- /dev/null +++ b/src/api/ibp.js @@ -0,0 +1,54 @@ + +import request from '@/utils/request'; +// 创建草稿数据 ibp +export function createIbp(params) { + return request({ + url: '/api/draftIbp', + method: 'post', + data: params + }); +} + +// 发布IBP盘数据 +export function postIbpPublish(params) { + return request({ + url: '/api/draftIbp/{id}/publish', + method: 'post', + data: params + }); +} + +// 分页查询IBP数据基本信息 +export function getIbpAllList(mapId, params) { + return request({ + url: '/api/ibp/list/all', + method: 'get', + param: params + }); +} + +// 更新草稿IBP盘基本信息 +export function putIbpBasicInfo(id, params) { + return request({ + url: `/api/draftIbp/${id}/basic`, + method: 'put', + data: params + }); +} + +// 更新草稿IBP盘绘图数据 +export function putIbpDrawData(id, params) { + return request({ + url: `/api/draftIbp/${id}/data`, + method: 'put', + data: params + }); +} + +// 删除草稿IBP盘绘图数据 +export function deleteIbpInfo(id) { + return request({ + url: `/api/draftIbp/${id}/data`, + method: 'delete' + }); +} diff --git a/src/jmapNew/theme/chengdu_01/model.js b/src/jmapNew/theme/chengdu_01/model.js index cdb9145ea..c050ebdef 100644 --- a/src/jmapNew/theme/chengdu_01/model.js +++ b/src/jmapNew/theme/chengdu_01/model.js @@ -1,63 +1,63 @@ import deviceType from '../../constant/deviceType'; class Model { - constructor() { - // 公共字段部分默认初始值 - this['public'] = {}; - this['public'][deviceType.Signal] = { - lampPositionType: '02', - lampPostType: '02' - }; + constructor() { + // 公共字段部分默认初始值 + this['public'] = {}; + this['public'][deviceType.Signal] = { + lampPositionType: '02', + lampPostType: '02' + }; - // 私有字段部分默认初始值 - this['private'] = {}; - this['private'][deviceType.StationControl] = { - indicatorShow: true // 标识灯名称显示 - }; - this['private'][deviceType.Section] = { - borderBorderShow: true, // 区段边界显示 - standTrackNameShow: true, // 站台轨名称显示 - reentryTrackNameShow: true, // 折返轨名称显示 - transferTrackNameShow: true // 转换轨名称显示 - }; - this['private'][deviceType.Signal] = { - linkageAutoRouteShow: true, // 联锁自动进路表示灯显示 - atsAutoTriggerShow: true // ATS自动触发表示灯显示 - }; - this['private'][deviceType.Train] = { - nameFormat: 'targetCode:serviceNumber:tripNumber', // 字体格式 - nameFontSize: 10 // 字体大小 - }; - this['private'][deviceType.TrainWindow] = { - trainWindowShow: false - }; - } + // 私有字段部分默认初始值 + this['private'] = {}; + this['private'][deviceType.StationControl] = { + indicatorShow: true // 标识灯名称显示 + }; + this['private'][deviceType.Section] = { + borderBorderShow: true, // 区段边界显示 + standTrackNameShow: true, // 站台轨名称显示 + reentryTrackNameShow: true, // 折返轨名称显示 + transferTrackNameShow: true // 转换轨名称显示 + }; + this['private'][deviceType.Signal] = { + linkageAutoRouteShow: true, // 联锁自动进路表示灯显示 + atsAutoTriggerShow: true // ATS自动触发表示灯显示 + }; + this['private'][deviceType.Train] = { + nameFormat: 'targetCode:serviceNumber:tripNumber', // 字体格式 + nameFontSize: 10 // 字体大小 + }; + this['private'][deviceType.TrainWindow] = { + trainWindowShow: false + }; + } - initPublicProps(model) { - if (model) { - var modelInitial = this.public[model._type]; - if (modelInitial) { - for (var prop in modelInitial) { - model[prop] = modelInitial[prop]; - } - } - } + initPublicProps(model) { + if (model) { + var modelInitial = this.public[model._type]; + if (modelInitial) { + for (var prop in modelInitial) { + model[prop] = modelInitial[prop]; + } + } + } - return model; - } + return model; + } - initPrivateProps(model) { - if (model) { - var modelInitial = this.private[model._type]; - if (modelInitial) { - for (var prop in modelInitial) { - model[prop] = modelInitial[prop]; - } - } - } + initPrivateProps(model) { + if (model) { + var modelInitial = this.private[model._type]; + if (modelInitial) { + for (var prop in modelInitial) { + model[prop] = modelInitial[prop]; + } + } + } - return model; - } + return model; + } } export default new Model(); diff --git a/src/jmapNew/theme/chengdu_03/model.js b/src/jmapNew/theme/chengdu_03/model.js index cf408a81f..62440bda8 100644 --- a/src/jmapNew/theme/chengdu_03/model.js +++ b/src/jmapNew/theme/chengdu_03/model.js @@ -1,63 +1,63 @@ import deviceType from '../../constant/deviceType'; class Model { - constructor() { - // 公共字段部分默认初始值 - this['public'] = {}; - this['public'][deviceType.Signal] = { - lampPositionType: '02', - lampPostType: '02' - }; + constructor() { + // 公共字段部分默认初始值 + this['public'] = {}; + this['public'][deviceType.Signal] = { + lampPositionType: '02', + lampPostType: '02' + }; - // 私有字段部分默认初始值 - this['private'] = {}; - this['private'][deviceType.StationControl] = { - indicatorShow: true // 标识灯名称显示 - }; - this['private'][deviceType.Section] = { - borderBorderShow: true, // 区段边界显示 - standTrackNameShow: true, // 站台轨名称显示 - reentryTrackNameShow: true, // 折返轨名称显示 - transferTrackNameShow: true // 转换轨名称显示 - }; - this['private'][deviceType.Signal] = { - linkageAutoRouteShow: true, // 联锁自动进路表示灯显示 - atsAutoTriggerShow: true // ATS自动触发表示灯显示 - }; - this['private'][deviceType.Train] = { - nameFormat: 'targetCode:serviceNumber:tripNumber', // 字体格式 - nameFontSize: 10 // 字体大小 - }; - this['private'][deviceType.TrainWindow] = { - trainWindowShow: true - }; - } + // 私有字段部分默认初始值 + this['private'] = {}; + this['private'][deviceType.StationControl] = { + indicatorShow: true // 标识灯名称显示 + }; + this['private'][deviceType.Section] = { + borderBorderShow: true, // 区段边界显示 + standTrackNameShow: true, // 站台轨名称显示 + reentryTrackNameShow: true, // 折返轨名称显示 + transferTrackNameShow: true // 转换轨名称显示 + }; + this['private'][deviceType.Signal] = { + linkageAutoRouteShow: true, // 联锁自动进路表示灯显示 + atsAutoTriggerShow: true // ATS自动触发表示灯显示 + }; + this['private'][deviceType.Train] = { + nameFormat: 'targetCode:serviceNumber:tripNumber', // 字体格式 + nameFontSize: 10 // 字体大小 + }; + this['private'][deviceType.TrainWindow] = { + trainWindowShow: true + }; + } - initPublicProps(model) { - if (model) { - var modelInitial = this.public[model._type]; - if (modelInitial) { - for (var prop in modelInitial) { - model[prop] = modelInitial[prop]; - } - } - } + initPublicProps(model) { + if (model) { + var modelInitial = this.public[model._type]; + if (modelInitial) { + for (var prop in modelInitial) { + model[prop] = modelInitial[prop]; + } + } + } - return model; - } + return model; + } - initPrivateProps(model) { - if (model) { - var modelInitial = this.private[model._type]; - if (modelInitial) { - for (var prop in modelInitial) { - model[prop] = modelInitial[prop]; - } - } - } + initPrivateProps(model) { + if (model) { + var modelInitial = this.private[model._type]; + if (modelInitial) { + for (var prop in modelInitial) { + model[prop] = modelInitial[prop]; + } + } + } - return model; - } + return model; + } } export default new Model(); diff --git a/src/router/index.js b/src/router/index.js index 79531d1f5..fcf6592ea 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -58,6 +58,8 @@ const LessonDetail = () => import('@/views/lesson/details'); const ScriptmanageHome = () => import('@/views/scriptManage/home'); const ScriptDisplay = () => import('@/views/scriptManage/display/index'); +const IbpHome = () => import('@/views/ibp/home'); + const TeachDetail = () => import('@/views/teach/detail/index'); const TeachHome = () => import('@/views/teach/index'); const Pay = () => import('@/views/components/pay/index'); @@ -174,7 +176,8 @@ export const UrlConfig = { scriptHome: '/design/script/home', display: '/design/display', mapPreview: '/design/mapPreview', - mapPreviewNew: '/design/mapPreviewNew' + mapPreviewNew: '/design/mapPreviewNew', + ibpHome: '/design/ibp/home' }, designUser: { prefix: '/design/userlist/home', @@ -433,6 +436,16 @@ export const asyncRouter = [ path: 'mapPreviewNew/:mapId', component: MapPreviewNew, hidden: true + }, + { // ibp列表 + path: 'ibp/home/:mapId', + component: IbpHome, + hidden: true + }, + { + path: 'ibp/edit', + component: IbpDraw, + hidden: true } ] } @@ -784,13 +797,13 @@ export const asyncRouter = [ roles: [admin] }, children: [ - { - path: 'ibp/edit', - component: IbpDraw, - meta: { - i18n: 'router.ibpDraw' - } - }, + // { + // path: 'ibp/edit', + // component: IbpDraw, + // meta: { + // i18n: 'router.ibpDraw' + // } + // }, { path: 'dictionary', component: Dictionary, diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 83955aa87..32afb8d79 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -516,8 +516,8 @@ const map = { if (map && map.skinVO) { state.map = map; let showConfig = {}; - if (Vue.prototype.$jlmap && ( typeof(Vue.prototype.$jlmap.getShowConfig) === 'function')) { - showConfig = Vue.prototype.$jlmap.getShowConfig(); + if (Vue.prototype.$jlmap && ( typeof (Vue.prototype.$jlmap.getShowConfig) === 'function')) { + showConfig = Vue.prototype.$jlmap.getShowConfig(); } state.mapDevice = parser(map, map.skinVO.code, showConfig); Vue.prototype.$jlmap && Vue.prototype.$jlmap.setMapDevice(state.mapDevice); diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 0a29bb813..d8b10d887 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -5,8 +5,8 @@ export function getBaseUrl() { // BASE_API = 'https://joylink.club/jlcloud'; // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 - BASE_API = 'http://192.168.3.6:9000'; // 旭强 - // BASE_API = 'http://192.168.3.41:9000'; // 张赛 + // BASE_API = 'http://192.168.3.6:9000'; // 旭强 + BASE_API = 'http://192.168.3.41:9000'; // 张赛 // BASE_API = 'http://192.168.3.82:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue index 3c6cd7204..bb02fc993 100644 --- a/src/views/demonstration/detail/index.vue +++ b/src/views/demonstration/detail/index.vue @@ -24,7 +24,7 @@ + diff --git a/src/views/ibp/home.vue b/src/views/ibp/home.vue new file mode 100644 index 000000000..62edcc6ad --- /dev/null +++ b/src/views/ibp/home.vue @@ -0,0 +1,186 @@ + + + + diff --git a/src/views/iscs/iscsDesign/demonList.vue b/src/views/iscs/iscsDesign/demonList.vue index 2feaefd5f..eada53c0f 100644 --- a/src/views/iscs/iscsDesign/demonList.vue +++ b/src/views/iscs/iscsDesign/demonList.vue @@ -1,7 +1,7 @@