mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
feat: 会员资料窗口添加创建群组按钮
This commit is contained in:
parent
40f04d9860
commit
49701fcd09
@ -55,7 +55,10 @@
|
||||
</li>
|
||||
</template>
|
||||
</ul>
|
||||
<div class="user-detail-actions">
|
||||
<Button icon="md-chatbubbles" :disabled="!!userData.delete_at" @click="onOpenDialog">{{ $L('开始聊天') }}</Button>
|
||||
<Button icon="md-people" :disabled="!!userData.delete_at" @click="onOpenCreateGroup">{{ $L('创建群组') }}</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 共同群组 -->
|
||||
@ -193,6 +196,20 @@ export default {
|
||||
});
|
||||
},
|
||||
|
||||
onOpenCreateGroup() {
|
||||
const userids = [];
|
||||
if (this.userId) {
|
||||
userids.push(this.userId);
|
||||
}
|
||||
if (this.userData.userid && this.userData.userid !== this.userId) {
|
||||
userids.push(this.userData.userid);
|
||||
}
|
||||
if (userids.length === 0 && this.userData.userid) {
|
||||
userids.push(this.userData.userid);
|
||||
}
|
||||
emitter.emit('createGroup', userids);
|
||||
},
|
||||
|
||||
loadCommonDialogCount() {
|
||||
const target_userid = this.userData.userid;
|
||||
const previousUserId = this.commonDialog.userid;
|
||||
|
||||
@ -19,6 +19,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
.user-detail-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.ivu-modal-content {
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user