会话群代码调整

This commit is contained in:
dong 2023-04-25 15:56:18 +08:00
parent 0805383fde
commit 2d15eee9f8
2 changed files with 11 additions and 1 deletions

View File

@ -33,7 +33,7 @@
<div class="activeLine" /> <div class="activeLine" />
</div> </div>
<div class="nullDiv" /> <div class="nullDiv" />
<div class="editFilter pointer"> <div class="editFilter " :class="myMemberId ? 'pointer' : 'disable'">
<i class="el-icon-plus" title="创建会话群" @click="createGroup" /> <i class="el-icon-plus" title="创建会话群" @click="createGroup" />
<!-- <i class="el-icon-more" /> --> <!-- <i class="el-icon-more" /> -->
</div> </div>
@ -208,6 +208,7 @@ export default {
return name; return name;
}, },
createGroup() { createGroup() {
if (!this.myMemberId) { return; }
this.$refs.editGroup.doShow(); this.$refs.editGroup.doShow();
}, },
getLastMsg(list) { getLastMsg(list) {
@ -317,6 +318,9 @@ export default {
.pointer { .pointer {
cursor: pointer; cursor: pointer;
} }
.disable {
cursor: not-allowed;
}
.dialogHeader { .dialogHeader {
padding: 5px 10px; padding: 5px 10px;
display: flex; display: flex;

View File

@ -173,6 +173,12 @@ export default {
memberList () { memberList () {
this.getTreeData(); this.getTreeData();
}, },
myMemberId(val) {
this.initData();
if (!val) {
this.handleClose();
}
},
'$store.state.map.activeTrainListChange': function () { '$store.state.map.activeTrainListChange': function () {
this.getActiveTrains(); this.getActiveTrains();
} }