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 @@