From 7449b6b2a3a2d9c369fe36c9344a82f3e702e911 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Fri, 29 May 2020 14:03:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83=20?= =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E8=81=8A=E5=A4=A9=E4=BB=A3=E7=A0=81=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/socket.js | 6 +- .../{ => chatView}/chatBox.vue | 5 +- .../{ => chatView}/chatContent.vue | 0 .../{ => chatView}/chatCoversitionList.vue | 141 +++++++++--------- .../{ => chatView}/chatCreateGroup.vue | 74 +++++---- .../{ => chatView}/chatMemberList.vue | 0 .../{ => chatView}/chatSetting.vue | 0 .../jointTrainingNew/chatView/chatTooltip.vue | 94 ++++++++++++ .../newMap/jointTrainingNew/menuDemon.vue | 2 +- 9 files changed, 218 insertions(+), 104 deletions(-) rename src/views/newMap/jointTrainingNew/{ => chatView}/chatBox.vue (99%) rename src/views/newMap/jointTrainingNew/{ => chatView}/chatContent.vue (100%) rename src/views/newMap/jointTrainingNew/{ => chatView}/chatCoversitionList.vue (50%) rename src/views/newMap/jointTrainingNew/{ => chatView}/chatCreateGroup.vue (81%) rename src/views/newMap/jointTrainingNew/{ => chatView}/chatMemberList.vue (100%) rename src/views/newMap/jointTrainingNew/{ => chatView}/chatSetting.vue (100%) create mode 100644 src/views/newMap/jointTrainingNew/chatView/chatTooltip.vue diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index e287a3194..12c9f15c4 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -29,6 +29,9 @@ function handle(state, data) { case 'Simulation_Script_Tip': // 仿真-聊天界面用户进出仿真消息 handleSimulationScriptTipInfo(state, msg); // 用户进出仿真消息 break; + case 'Simulation_Start_Conversation': // 综合演练仿真-聊天界面用户邀请其他人加入群聊 + state.inviteOtherIntoChat = msg; + break; case 'Competition_Practical': // 竞赛裁判系统裁判员开始考试推送消息 state.competitionStart++; // 竞赛裁判系统裁判员开始考试推送消息 break; @@ -213,7 +216,8 @@ const socket = { simulationStart: '', // 仿真-开始消息 simulationOver:0, // 退出仿真推送消息 simulationReset: '', // 仿真-异常消息 - simulationText: {}, // 仿真-用户交互消息(聊天/命令) + simulationText: {}, // 仿真-用户交互消息(聊天/命令), + inviteOtherIntoChat:{}, // 综合演练仿真-聊天界面用户邀请其他人加入群聊推送信息 // coversitionList:{}, // 历史仿真-用户消息列表 message: {}, // 仿真聊天 diff --git a/src/views/newMap/jointTrainingNew/chatBox.vue b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue similarity index 99% rename from src/views/newMap/jointTrainingNew/chatBox.vue rename to src/views/newMap/jointTrainingNew/chatView/chatBox.vue index d1c1f8846..23e97bbb0 100644 --- a/src/views/newMap/jointTrainingNew/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue @@ -43,6 +43,7 @@ + diff --git a/src/views/newMap/jointTrainingNew/chatCreateGroup.vue b/src/views/newMap/jointTrainingNew/chatView/chatCreateGroup.vue similarity index 81% rename from src/views/newMap/jointTrainingNew/chatCreateGroup.vue rename to src/views/newMap/jointTrainingNew/chatView/chatCreateGroup.vue index 68bcf6b89..5f16484b8 100644 --- a/src/views/newMap/jointTrainingNew/chatCreateGroup.vue +++ b/src/views/newMap/jointTrainingNew/chatView/chatCreateGroup.vue @@ -1,38 +1,40 @@ - - - 添加会话对象 - - - - - - - - {{ member.memberName }} - - - - - {{ member.memberName }} + + + + 添加会话对象 + + - + + + + {{ member.memberName }} + + + + + {{ member.memberName }} + + + - - - 创建会话 - 取消 + + + 创建会话 + 取消 + @@ -102,7 +104,7 @@ export default { this.checkList = []; } }).catch(error=>{ - this.$messageBox('创建会话失败: ' + error.messagfe); + this.$messageBox('创建会话失败: ' + error.message); this.loading = false; this.dialogVisible = false; this.checkList = []; @@ -118,6 +120,14 @@ export default { }; diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue index fd84b70da..258768701 100644 --- a/src/views/newMap/jointTrainingNew/menuDemon.vue +++ b/src/views/newMap/jointTrainingNew/menuDemon.vue @@ -26,7 +26,7 @@