From f13ba95407c1decb13e5bc8bbe3633f219d99da0 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 28 Jul 2020 18:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=81=E6=B3=A2=E8=8F=9C=E5=8D=95=E5=9B=9E?= =?UTF-8?q?=E8=BD=A6=E5=BF=AB=E6=8D=B7=E9=94=AE=EF=BC=88=E5=8C=BA=E6=AE=B5?= =?UTF-8?q?=E3=80=81=E4=BF=A1=E5=8F=B7=E6=9C=BA=E3=80=81=E8=BD=A6=E7=AB=99?= =?UTF-8?q?=EF=BC=89&=E8=AE=BE=E5=A4=87=E7=99=BB=E5=BD=95=E7=BB=BC?= =?UTF-8?q?=E5=90=88=E6=BC=94=E7=BB=83=E4=B8=8D=E6=98=BE=E7=A4=BAcctv?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E8=AE=BE=E5=A4=87=E8=A7=86=E5=9B=BE=E4=B8=89?= =?UTF-8?q?=E7=BB=B4=E8=A7=86=E5=9B=BE&=E4=BC=9A=E8=AF=9D=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=85=AC=E5=85=B1=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/menus/dialog/routeControl.vue | 7 ++ .../components/menus/dialog/routeDetail.vue | 7 ++ .../menus/dialog/routeHandControl.vue | 5 ++ .../menus/dialog/stationCmdControl.vue | 11 ++++ .../menus/dialog/stationHumanControlAll.vue | 7 ++ .../dialog/stationSetRouteControlAll.vue | 7 ++ .../ningbo_01/menus/dialog/alxeEffective.vue | 9 +++ .../ningbo_01/menus/dialog/routeSelection.vue | 7 ++ .../ningbo_01/menus/dialog/routeUnLock.vue | 12 ++++ .../ningbo_01/menus/dialog/routerCommand.vue | 7 ++ .../menus/dialog/speedLimitControl.vue | 13 ++++ src/store/modules/map.js | 2 +- .../jointTrainingNew/chatView/chatBox.vue | 65 ++++++++++++------- .../newMap/jointTrainingNew/menuDemon.vue | 38 +++++------ 14 files changed, 155 insertions(+), 42 deletions(-) diff --git a/src/jmapNew/theme/components/menus/dialog/routeControl.vue b/src/jmapNew/theme/components/menus/dialog/routeControl.vue index 511fe02e6..70ba9d83e 100644 --- a/src/jmapNew/theme/components/menus/dialog/routeControl.vue +++ b/src/jmapNew/theme/components/menus/dialog/routeControl.vue @@ -110,6 +110,13 @@ export default { return ''; } }, + watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show && this.popClass === 'ningbo-01__systerm') { + this.commit(); + } + } + }, mounted() { this.$nextTick(() => { this.$store.dispatch('training/tipReload'); diff --git a/src/jmapNew/theme/components/menus/dialog/routeDetail.vue b/src/jmapNew/theme/components/menus/dialog/routeDetail.vue index 2e4108377..59dbc82af 100644 --- a/src/jmapNew/theme/components/menus/dialog/routeDetail.vue +++ b/src/jmapNew/theme/components/menus/dialog/routeDetail.vue @@ -103,6 +103,13 @@ export default { return '查询进路状态'; } }, + watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show && this.systemName === 'ningbo-01__systerm') { + this.commit(); + } + } + }, mounted() { this.$nextTick(() => { this.$store.dispatch('training/tipReload'); diff --git a/src/jmapNew/theme/components/menus/dialog/routeHandControl.vue b/src/jmapNew/theme/components/menus/dialog/routeHandControl.vue index 04ff39def..825d9aa77 100644 --- a/src/jmapNew/theme/components/menus/dialog/routeHandControl.vue +++ b/src/jmapNew/theme/components/menus/dialog/routeHandControl.vue @@ -146,6 +146,11 @@ export default { } }, watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show && this.systemName === 'ningbo-01__systerm' && !this.commitDisabled) { + this.commit(); + } + } }, mounted() { this.$nextTick(() => { diff --git a/src/jmapNew/theme/components/menus/dialog/stationCmdControl.vue b/src/jmapNew/theme/components/menus/dialog/stationCmdControl.vue index 520c42e2c..592ad293e 100644 --- a/src/jmapNew/theme/components/menus/dialog/stationCmdControl.vue +++ b/src/jmapNew/theme/components/menus/dialog/stationCmdControl.vue @@ -194,6 +194,17 @@ export default { }); }, deep: true + }, + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show && this.popClass === 'ningbo-01__systerm') { + if (!this.cmdDisabled[0]) { + this.command(); + } else if (!this.cmdDisabled[1]) { + this.confirm1(); + } else if (!this.cmdDisabled[2]) { + this.confirm2(); + } + } } }, mounted() { diff --git a/src/jmapNew/theme/components/menus/dialog/stationHumanControlAll.vue b/src/jmapNew/theme/components/menus/dialog/stationHumanControlAll.vue index 973efd221..33bb492c3 100644 --- a/src/jmapNew/theme/components/menus/dialog/stationHumanControlAll.vue +++ b/src/jmapNew/theme/components/menus/dialog/stationHumanControlAll.vue @@ -64,6 +64,13 @@ export default { return this.dialogShow ? OperationEvent.Station.humanControlALL.menu.domId : ''; } }, + watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show && this.popClass === 'ningbo-01__systerm') { + this.commit(); + } + } + }, mounted() { this.$nextTick(() => { this.$store.dispatch('training/tipReload'); diff --git a/src/jmapNew/theme/components/menus/dialog/stationSetRouteControlAll.vue b/src/jmapNew/theme/components/menus/dialog/stationSetRouteControlAll.vue index d2715738e..600f50494 100644 --- a/src/jmapNew/theme/components/menus/dialog/stationSetRouteControlAll.vue +++ b/src/jmapNew/theme/components/menus/dialog/stationSetRouteControlAll.vue @@ -78,6 +78,13 @@ export default { return this.dialogShow ? OperationEvent.Station.atsAutoControlALL.menu.domId : ''; } }, + watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show && this.popClass === 'ningbo-01__systerm') { + this.commit(); + } + } + }, mounted() { this.$nextTick(() => { this.$store.dispatch('training/tipReload'); diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue index 37e5e560b..662516d7b 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/alxeEffective.vue @@ -183,6 +183,15 @@ export default { } }, watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show) { + if (this.type !== 'password') { + this.commitOnce(); + } else if (this.type !== 'text') { + this.commit(); + } + } + } }, mounted() { this.$nextTick(() => { diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue index 4a8051f6c..d27e84ecc 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeSelection.vue @@ -90,6 +90,13 @@ export default { return disabled; } }, + watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show && !this.commitDisabled) { + this.commit(); + } + } + }, mounted() { this.$nextTick(() => { this.$store.dispatch('training/tipReload'); diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue index 671e435e6..bcaaf80ab 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routeUnLock.vue @@ -109,6 +109,18 @@ export default { return '解除封锁'; } }, + watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show) { + if (!this.disabledConfirm1) { + this.confirm1(); + } else if (!this.disabledConfirm2) { + this.confirm2(); + } + + } + } + }, mounted() { this.$nextTick(() => { this.$store.dispatch('training/tipReload'); diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue index 96aebeafd..476a1f37e 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/routerCommand.vue @@ -70,6 +70,13 @@ export default { return ''; } }, + watch: { + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show) { + this.commit(); + } + } + }, mounted() { this.$nextTick(() => { this.$store.dispatch('training/tipReload'); diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/speedLimitControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/speedLimitControl.vue index e7e79298c..e22db3748 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/speedLimitControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/speedLimitControl.vue @@ -265,6 +265,19 @@ export default { }, 'speed': function (val) { if (val) this.cmdDisabled[0] = false; + }, + '$store.state.map.keyboardEnterCount': function (val) { + if (this.show) { + if (this.$refs.confirmControlSpeed.show) { + this.$refs.confirmControlSpeed.commit(); + } else if (!this.cmdDisabled[0]) { + this.command(); + } else if (!this.cmdDisabled[1]) { + this.confirm1(); + } else if (!this.cmdDisabled[2]) { + this.confirm2(); + } + } } }, mounted() { diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 14f8ffc7c..ad3952002 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -874,7 +874,7 @@ const map = { }; }, setKeyboardEnter: (state) => { - state.keyboardEnterCount++; + state.keyboardEnterCount++; } }, diff --git a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue index 917b3375a..57d183457 100644 --- a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue @@ -15,6 +15,16 @@
+
+ + + +
+
+ + + +
@@ -50,6 +59,21 @@
+
+ + + +
+
+ + + +
+
+ + + +
@@ -205,7 +226,7 @@ export default { }); }, '$store.state.socket.createConversition':function(val) { - const member = this.memberData[val.creatorId]; + const member = this.memberData[val.creatorId]; if (member && member.userId == this.$store.state.user.id) { const memberList = []; val.memberIds.forEach(id=>{ @@ -369,23 +390,23 @@ export default { this.form = data; }, createCoversition() { - if (this.memberIdList.length) { - this.createLoading = true; - startConversition(this.group, this.memberIdList).then(resp => { - this.conversitionId = resp.data.id; - this.messageList = []; - this.privateMessageList = []; - this.userString = ''; - this.isConversitionCreator = true; - this.$message.success('创建会话成功!'); - this.createLoading = false; - }).catch((error) => { - this.$message.error(error.code == '3005' ? '创建会话失败:仿真会话成员忙线中!' : '创建仿真失败!'); - this.createLoading = false; - }); - } else { - this.userString = '群聊列表为空, 请选择人员'; - } + if (this.memberIdList.length) { + this.createLoading = true; + startConversition(this.group, this.memberIdList).then(resp => { + this.conversitionId = resp.data.id; + this.messageList = []; + this.privateMessageList = []; + this.userString = ''; + this.isConversitionCreator = true; + this.$message.success('创建会话成功!'); + this.createLoading = false; + }).catch((error) => { + this.$message.error(error.code == '3005' ? '创建会话失败:仿真会话成员忙线中!' : '创建仿真失败!'); + this.createLoading = false; + }); + } else { + this.userString = '群聊列表为空, 请选择人员'; + } }, // 语音录制开始 startRecording() { diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index 3346f471a..502e021c9 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -7,11 +7,11 @@ 成员管理 生成二维码 - + {{ $t('display.demon.passengerflow') }} - + {{ jl3dname }} - + {{ $t('display.demon.deviceView') }}