From 4afcef1ce23ec0d0895838ee501aff0b4a78e481 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 27 May 2020 19:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83=20?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=20=E5=88=9B=E5=BB=BA=E7=BE=A4=E8=81=8A?= =?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/api/chat.js | 6 +- src/store/modules/socket.js | 2 +- src/views/newMap/jointTrainingNew/chatBox.vue | 40 +++- .../newMap/jointTrainingNew/chatContent.vue | 6 +- .../jointTrainingNew/chatCoversitionList.vue | 26 ++- .../jointTrainingNew/chatCreateGroup.vue | 219 ++++++++++++++++++ .../jointTrainingNew/chatMemberList.vue | 24 +- .../newMap/jointTrainingNew/menuDemon.vue | 2 +- 8 files changed, 281 insertions(+), 44 deletions(-) create mode 100644 src/views/newMap/jointTrainingNew/chatCreateGroup.vue diff --git a/src/api/chat.js b/src/api/chat.js index 7b493411a..f9d1220a2 100644 --- a/src/api/chat.js +++ b/src/api/chat.js @@ -312,11 +312,11 @@ export function getSimulationConversationListNew(group) { } // 获取/创建仿真会话(新版地图) -export function getSimulationConversationIdNew(params, group) { +export function getSimulationConversationIdNew(data, group) { return request({ url: `/simulation/${group}/wx/conversation`, - method: 'get', - params: params + method: 'post', + data }); } diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index 470488e82..e287a3194 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -163,7 +163,7 @@ function handleSimulationInfo(state, data) { targetOnline:data.targetMember ? data.targetMember.online : null, targetName:data.targetMember ? data.targetMember : 'All', targetRole:data.targetMember ? data.targetMember.role : null, - group: data.group, + all: data.all, date: +new Date(`${myDate1} ${chatTime}`) }; state.simulationText = params; diff --git a/src/views/newMap/jointTrainingNew/chatBox.vue b/src/views/newMap/jointTrainingNew/chatBox.vue index 72f0a1b69..cc7a33ed7 100644 --- a/src/views/newMap/jointTrainingNew/chatBox.vue +++ b/src/views/newMap/jointTrainingNew/chatBox.vue @@ -11,8 +11,11 @@