From bc6940f80b74180cd6dcd205b3561db27017884b Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 31 Mar 2020 19:06:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=97=E8=BD=A6=E8=AF=A6=E6=83=85(?= =?UTF-8?q?=E6=9C=AA=E5=AE=8C=E6=88=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 3 ++ .../foshan_01/menus/utils/menuOperate.js | 2 +- .../ningbo_01/menus/utils/menuOperate.js | 2 +- src/store/modules/map.js | 6 +++ src/views/newMap/displayNew/index.vue | 4 ++ src/views/newMap/displayNew/menuTrainList.vue | 53 +++++++++++++++++++ 6 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 src/views/newMap/displayNew/menuTrainList.vue diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 738a66aa2..2c9bc2753 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -371,6 +371,9 @@ class Jlmap { this.$painter.update(oDevice); } } else { + if (elem.deviceType === 'TRAIN') { + store.dispatch('map/updateTrainState', elem); + } const oDevice = this.mapDevice[code] || deviceFactory(type, elem, this.showConfig); if (elem.dispose) { this.$painter.delete(oDevice); diff --git a/src/jmapNew/theme/foshan_01/menus/utils/menuOperate.js b/src/jmapNew/theme/foshan_01/menus/utils/menuOperate.js index 1572e9b73..030a78876 100644 --- a/src/jmapNew/theme/foshan_01/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/foshan_01/menus/utils/menuOperate.js @@ -238,8 +238,8 @@ export function commitOperate(operate, paramList, over) { store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { store.dispatch('menuOperation/handleBreakFlag', { break: true }); - resolve({operate:step}); } + resolve({ valid: valid, operate: step }); }).catch(error=>{ reject(error); }); diff --git a/src/jmapNew/theme/ningbo_01/menus/utils/menuOperate.js b/src/jmapNew/theme/ningbo_01/menus/utils/menuOperate.js index 4a1dc427b..10e10f8f1 100644 --- a/src/jmapNew/theme/ningbo_01/menus/utils/menuOperate.js +++ b/src/jmapNew/theme/ningbo_01/menus/utils/menuOperate.js @@ -283,8 +283,8 @@ export function commitOperate(operate, paramList, over) { store.dispatch('training/nextNew', step).then(({ valid }) => { if (valid) { store.dispatch('menuOperation/handleBreakFlag', { break: true }); - resolve({operate:step}); } + resolve({ valid: valid, operate: step }); }).catch(error=>{ reject(error); }); diff --git a/src/store/modules/map.js b/src/store/modules/map.js index c5f353941..09458f14f 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -701,6 +701,9 @@ const map = { updateAutoReentryState: (state, status) => { state.autoReentryData[status.code] = deepAssign(state.autoReentryData[status.code], status); }, + updateTrainState:(state, status) =>{ + state.map.trainList[parseInt(status.code) - 1] = deepAssign(state.map.trainList[parseInt(status.code) - 1], status); + }, setMapVersion:(state, version) => { state.version = version; } @@ -744,6 +747,9 @@ const map = { updateAutoReentryState: ({ commit }, status) => { commit('updateAutoReentryState', status); }, + updateTrainState:({ commit }, status) => { + commit('updateTrainState', status); + }, getRouteDataListByCode: ({ state, commit }, code) => { // 获取进路数据 return new Promise((resolve) => { const list = []; diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index df923f2d0..b4e7c3def 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -24,6 +24,8 @@ + + + + + + From 06a6087f0c3e1605a7f25d60b58f90be21739b10 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 31 Mar 2020 19:12:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/displayNew/menuTrainList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/newMap/displayNew/menuTrainList.vue b/src/views/newMap/displayNew/menuTrainList.vue index 4e924f639..83c852335 100644 --- a/src/views/newMap/displayNew/menuTrainList.vue +++ b/src/views/newMap/displayNew/menuTrainList.vue @@ -21,7 +21,7 @@ export default { data() { return { trainList:[], - table: true + table: false }; }, computed: { From 7df417424efcf65b84c8d9a40080f5ba9c9c8221 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 1 Apr 2020 09:07:42 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BF=AB=E9=80=9F=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demonstration/deomonList/index_HYD.vue | 28 ++++--------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/src/views/demonstration/deomonList/index_HYD.vue b/src/views/demonstration/deomonList/index_HYD.vue index 3683df2d8..3eb3760da 100644 --- a/src/views/demonstration/deomonList/index_HYD.vue +++ b/src/views/demonstration/deomonList/index_HYD.vue @@ -20,7 +20,6 @@ :props="defaultProps" :filter-node-method="filterNode" :style="{height: height+'px'}" - @node-click="clickEvent" >
{{ '['+data.mapName+']'+($t('global.trainingNotStart').replace('{name}', data.creator.nickName)) }} @@ -37,14 +36,13 @@ slot="footer" class="dialog-footer" > - {{ $t('global.joinNewRoom') }} + {{ $t('global.joinNewRoom') }} {{ $t('global.cancel') }}