diff --git a/src/api/newChat.js b/src/api/newChat.js index bdcc96501..6ded7fe84 100644 --- a/src/api/newChat.js +++ b/src/api/newChat.js @@ -187,3 +187,35 @@ export function setGroupReadMessage(groupId, data) { data }); } + +/** + * 发送私聊文字信息 + * @param {String} groupId 房间号 + * @param {Object} data + * @param {Number} data.memberId 角色id + * @param {String} data.content 文字内容 + * @returns + */ +export function sendPrivateText(groupId, data) { + return request({ + url: `/simulation/${groupId}/operate/Conversation_Group_Private_Text_Chat`, + method: 'post', + data + }); +} + +/** + * 发送私聊BASE64信息 + * @param {String} groupId 房间号 + * @param {Object} data + * @param {Number} data.memberId 角色id + * @param {String} data.fileBase64Str 文件base64码 + * @returns + */ +export function sendPrivateBase64(groupId, data) { + return request({ + url: `/simulation/${groupId}/operate/Conversation_Group_Private_Audio_Base64`, + method: 'post', + data + }); +} diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index f3a89f7b7..ceca49be2 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -514,7 +514,9 @@ export default { CMD_Conversation_Chat_Text: {value: 'Conversation_Chat_Text', label: '发送文本消息'}, CMD_Conversation_Chat_Audio_Base64: {value: 'Conversation_Chat_Audio_Base64', label: '发送语音消息'}, CMD_Conversation_Group_Text_Chat: {value: 'Conversation_Group_Text_Chat', label: '发送会话群文字消息'}, - CMD_Conversation_Group_Audio_Base64: {value: 'Conversation_Group_Audio_Base64', label: '发送会话群语音消息'} + CMD_Conversation_Group_Audio_Base64: {value: 'Conversation_Group_Audio_Base64', label: '发送会话群语音消息'}, + CMD_Conversation_Group_Private_Text_Chat: {value: 'Conversation_Group_Private_Text_Chat', label: '发送私聊文字消息'}, + CMD_Conversation_Group_Private_Audio_Base64: {value: 'Conversation_Group_Private_Audio_Base64', label: '发送私聊语音消息'} }, PSL: { CMD_PSL_PRESS_BUTTON: {value: 'PSL_PRESS_BUTTON', label: 'PSL按钮操作'} diff --git a/src/views/newMap/display/index.vue b/src/views/newMap/display/index.vue index 7c632e682..93fbdc7b6 100644 --- a/src/views/newMap/display/index.vue +++ b/src/views/newMap/display/index.vue @@ -30,8 +30,8 @@ import TrainingTip from './trainingList/trainingTip'; import TrainingPositionTip from './trainingList/trainingPositionTip.vue'; import TrainingMenu from './trainingList/trainingMenu'; import TrainingDesign from './trainingDesign/designPane.vue'; -// import ChatBox from './newChat/index.vue'; -import ChatBox from './chatBox'; +import ChatBox from './newChat/index.vue'; +// import ChatBox from './chatBox'; import TrainingLeftSlider from './trainingList/trainingLeftSlider'; import LineBoard from './lineBoard'; import BottomTable from './bottomTable'; diff --git a/src/views/newMap/display/newChat/addressBook.vue b/src/views/newMap/display/newChat/addressBook.vue new file mode 100644 index 000000000..919e08620 --- /dev/null +++ b/src/views/newMap/display/newChat/addressBook.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/src/views/newMap/display/newChat/chatContent.vue b/src/views/newMap/display/newChat/chatContent.vue index ec5b057de..1ab489559 100644 --- a/src/views/newMap/display/newChat/chatContent.vue +++ b/src/views/newMap/display/newChat/chatContent.vue @@ -27,7 +27,7 @@
-
+
@@ -25,7 +25,7 @@
{{ item.label }}
-
+
@@ -39,7 +39,7 @@
-
+
@@ -56,28 +56,36 @@
- +
-
文档
-
工作台
-
通讯录
+
+ +
- + + + + + diff --git a/src/views/newMap/display/newChat/editGroup.vue b/src/views/newMap/display/newChat/editGroup.vue index ccf6c815b..0b4a3a466 100644 --- a/src/views/newMap/display/newChat/editGroup.vue +++ b/src/views/newMap/display/newChat/editGroup.vue @@ -2,7 +2,7 @@ {{ selectTreeNode.length }}
- + {{ tag.labelName }}
- - + + - + 取消 确定 @@ -69,7 +69,7 @@