mirror of
https://github.com/kuaifan/dootask.git
synced 2026-10-30 14:30:49 +00:00
fix(contacts): 部门视角下长按联系人弹出菜单后不再继续进入联系人
This commit is contained in:
parent
6c19dbc37a
commit
3aeecc4769
@ -155,7 +155,7 @@
|
||||
:data-id="user.userid"
|
||||
data-type="contacts"
|
||||
:class="userClass(user)"
|
||||
@click="openContacts(user)"
|
||||
@click="handleContactsSelect(user)"
|
||||
@pointerdown="handleOperation">
|
||||
<div class="avatar"><UserAvatar :userid="user.userid" :size="contactAvatarSize"/></div>
|
||||
<div class="nickname">
|
||||
@ -896,6 +896,13 @@ export default {
|
||||
this.$store.dispatch("openDialog", dialogId)
|
||||
},
|
||||
|
||||
handleContactsSelect(user) {
|
||||
if (this.operateVisible) {
|
||||
return
|
||||
}
|
||||
this.openContacts(user)
|
||||
},
|
||||
|
||||
openContacts(user) {
|
||||
if (user.loading) {
|
||||
return
|
||||
@ -1278,7 +1285,7 @@ export default {
|
||||
if (this.contactsKey) {
|
||||
return;
|
||||
}
|
||||
this.operateItem = this.contactsFilter.find(item => item.userid == data.dataId)
|
||||
this.operateItem = this.contactsList.reduce((found, group) => found || group.list.find(item => item.userid == data.dataId), null)
|
||||
} else {
|
||||
if (this.dialogSearchKey) {
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user