From f23a3a8112370b33a921edd4d384698b4f64fe70 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 3 Aug 2020 16:20:14 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=8C=89=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E8=A1=8C=E8=BD=A6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/jointTrainingNew/menuDemon.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 079414e57..971aca873 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -165,6 +165,11 @@ export default { }, '$store.state.training.prdType': function(prdType) { this.change3dname(); + }, + '$store.state.socket.simulationStart': async function (val) { + if (val) { + this.$store.dispatch('training/setInitTime', +new Date(val)); + } } }, async mounted() { From 3c622b6fb5a5b03b8276fe1bc3b15a520e0e11cb Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 3 Aug 2020 16:55:05 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=BF=E7=9C=9F?= =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newMap/jointTrainingNew/chatView/chatBox.vue | 12 +++++++++++- .../jointTrainingNew/memberManage/membersManage.vue | 3 +++ src/views/newMap/jointTrainingNew/menuDemon.vue | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue index 5af5df65d..80cdd5eb3 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue @@ -317,6 +317,7 @@ export default { electricDispatcherList.push(this.memberData[item.id]); break; case 'DEPOT_DISPATCHER': + this.memberData[item.id].label = device.name; depotDispatcherList.push(this.memberData[item.id]); break; case 'STATION_SUPERVISOR': @@ -353,6 +354,11 @@ export default { id: 'maintainer', type: 'role', children: maintainerList + }, { + label: '车辆段', + id: 'depotDispatcher', + type: 'role', + children: depotDispatcherList }]; this.initCommonMemberList(); } @@ -618,6 +624,7 @@ export default { const temStationSupervisorList = []; const temMaintainerList = []; const temDriverList = []; + const temDepotDispatcherList = []; this.$store.state.training.memberList.forEach(item =>{ switch (item.type) { case 'DISPATCHER': @@ -632,9 +639,12 @@ export default { case 'DRIVER': temDriverList.push({memberId: item.id, connect:true }); break; + case 'DEPOT_DISPATCHER': + temDepotDispatcherList.push({memberId: item.id, connect:true }); + break; } }); - this.commonMemberList = [...temDispatcherList, ...temStationSupervisorList, ...temMaintainerList, ...temDriverList]; + this.commonMemberList = [...temDispatcherList, ...temStationSupervisorList, ...temMaintainerList, ...temDriverList, ...temDepotDispatcherList]; if (this.userRole === 'AUDIENCE' || this.commonConversation) { this.conversitionMemberList = []; this.messageList = [...this.commonMessageList]; diff --git a/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue index 61fd26da7..bc884e559 100644 --- a/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue +++ b/src/views/newMap/jointTrainingNew/memberManage/membersManage.vue @@ -198,6 +198,9 @@ export default { id: 'maintainer', children: maintainerList }]; + if (depotDispatcherList) { + this.treeData.push({label: '车辆段', id: 'depotDispatcher', children: depotDispatcherList}); + } } }, '$store.state.map.activeTrainListChange': function () { diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index d94359e28..1bbdbc7b4 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -180,6 +180,7 @@ export default { '$store.state.socket.simulationStart': async function (val) { if (val) { this.$store.dispatch('training/setInitTime', +new Date(val)); + this.$store.dispatch('training/start'); } } }, From baf0fe4900cba95c490f065a795e29c22c387a60 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 3 Aug 2020 16:59:23 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=95=85=E9=9A=9C=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=88=87=E6=8D=A2=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/menuSchema.vue | 2 +- src/views/newMap/jointTrainingNew/menuSchema.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/newMap/displayNew/menuSchema.vue b/src/views/newMap/displayNew/menuSchema.vue index 7685f1444..0be9732b1 100644 --- a/src/views/newMap/displayNew/menuSchema.vue +++ b/src/views/newMap/displayNew/menuSchema.vue @@ -17,7 +17,7 @@ {{ $t('display.schema.loadRunDiagram') }} 自动故障设置 - 故障模式 + {{ faultMode?'切换到普通模式':'切换到故障模式' }} diff --git a/src/views/newMap/jointTrainingNew/menuSchema.vue b/src/views/newMap/jointTrainingNew/menuSchema.vue index 1ddef081f..ae5d190b3 100644 --- a/src/views/newMap/jointTrainingNew/menuSchema.vue +++ b/src/views/newMap/jointTrainingNew/menuSchema.vue @@ -15,7 +15,8 @@ {{ $t('joinTraining.faultSetting') }} - 故障模式 + + {{ faultMode?' 切换到普通模式':'切换到故障模式' }} 指令模式 From a554912c09a376f52b06ac6a357381c2881caeab Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 3 Aug 2020 17:28:46 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=93=88=E5=B0=94=E6=BB=A8=E4=B8=80?= =?UTF-8?q?=E5=8F=B7=E7=BA=BF=E6=95=99=E7=A0=94=E6=9C=BA=20=E8=A1=8C?= =?UTF-8?q?=E8=B0=83=E5=88=87=E9=80=9A=E5=8F=B7=20=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jlmap3d/maintainer/jl3dmaintainer.vue | 72 +++++++++---------- src/views/newMap/displayNew/menuDemon.vue | 2 +- src/views/newMap/displayNew/menuSchema.vue | 2 +- .../newMap/jointTrainingNew/menuDemon.vue | 2 +- .../newMap/jointTrainingNew/menuSchema.vue | 2 +- 5 files changed, 38 insertions(+), 42 deletions(-) diff --git a/src/views/jlmap3d/maintainer/jl3dmaintainer.vue b/src/views/jlmap3d/maintainer/jl3dmaintainer.vue index 3e4cb5f70..61c43cac7 100644 --- a/src/views/jlmap3d/maintainer/jl3dmaintainer.vue +++ b/src/views/jlmap3d/maintainer/jl3dmaintainer.vue @@ -1,13 +1,13 @@