From 2635ea8c576f173d92494c9fca99f12364d2ea3c Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Mon, 22 May 2023 10:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BE=A4=E4=B8=BB=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newMap/display/newChat/chatDialog.vue | 36 ++++++++++++++----- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/src/views/newMap/display/newChat/chatDialog.vue b/src/views/newMap/display/newChat/chatDialog.vue index 970d72d3b..3cb45fae7 100644 --- a/src/views/newMap/display/newChat/chatDialog.vue +++ b/src/views/newMap/display/newChat/chatDialog.vue @@ -184,6 +184,24 @@ export default { } this.getGroupList(); }, + '$store.state.socket.conversationGroup.UPDATE_NAME': function(val) { + if (val.messageTips) { + this.$message.success(`${val.messageTips}`); + } + this.getGroupList(); + }, + '$store.state.socket.conversationGroup.UPDATE_MEMBER': function(val) { + if (val.messageTips) { + this.$message.success(`${val.messageTips}`); + } + this.getGroupList(); + }, + '$store.state.socket.conversationGroup.EXIT': function(val) { + if (val.messageTips) { + this.$message.success(`${val.messageTips}`); + } + this.getGroupList(); + }, myMemberId() { this.getGroupList(); }, @@ -269,16 +287,16 @@ export default { return item.leaderId != this.myMemberId; }, isShow: (item) => item.type === 'GROUP_CHAT' + }, + { + label: '修改群主', + handler: this.editGroupLeader, + groupInfo: item, + isDisabled: (item) => { + return item.leaderId != this.myMemberId; + }, + isShow: (item) => item.type === 'GROUP_CHAT' } - // { - // label: '修改群主', - // handler: this.editGroupLeader, - // groupInfo: item, - // isDisabled: (item) => { - // return item.leaderId != this.myMemberId; - // }, - // isShow: (item) => item.type === 'GROUP_CHAT' - // } ]; this.menu = []; const list = menuNormal(item);