mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 03:03:41 +00:00
no message
This commit is contained in:
parent
7f5261ad93
commit
68af686139
@ -1024,3 +1024,10 @@ Pro版
|
|||||||
关闭:不需要输入图形验证。
|
关闭:不需要输入图形验证。
|
||||||
开启:每次登录都需要图形验证码。
|
开启:每次登录都需要图形验证码。
|
||||||
回应详情
|
回应详情
|
||||||
|
|
||||||
|
复制链接
|
||||||
|
复制文本
|
||||||
|
复制图片
|
||||||
|
下载图片
|
||||||
|
复制失败
|
||||||
|
不可复制的内容
|
||||||
|
|||||||
@ -11223,7 +11223,7 @@
|
|||||||
"key": "设待办",
|
"key": "设待办",
|
||||||
"zh": "",
|
"zh": "",
|
||||||
"zh-CHT": "設待辦",
|
"zh-CHT": "設待辦",
|
||||||
"en": "Set To-do",
|
"en": "To-do",
|
||||||
"ko": "업무 설정",
|
"ko": "업무 설정",
|
||||||
"ja": "未処理にする",
|
"ja": "未処理にする",
|
||||||
"de": "Ich komme zurecht.",
|
"de": "Ich komme zurecht.",
|
||||||
@ -14211,4 +14211,4 @@
|
|||||||
"fr": "Détails des réponses",
|
"fr": "Détails des réponses",
|
||||||
"id": "Menanggapi detail"
|
"id": "Menanggapi detail"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -134,7 +134,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</ScrollerY>
|
</ScrollerY>
|
||||||
<div class="messenger-menu">
|
<div class="messenger-menu">
|
||||||
<div class="menu-icon">
|
<div class="menu-icon" @click="onActive(null)">
|
||||||
<Icon @click="tabActive='dialog'" :class="{active:tabActive==='dialog'}" type="ios-chatbubbles" />
|
<Icon @click="tabActive='dialog'" :class="{active:tabActive==='dialog'}" type="ios-chatbubbles" />
|
||||||
<Badge class="menu-num" :overflow-count="999" :count="msgUnread('all')"/>
|
<Badge class="menu-num" :overflow-count="999" :count="msgUnread('all')"/>
|
||||||
</div>
|
</div>
|
||||||
@ -360,7 +360,7 @@ export default {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'user':
|
case 'user':
|
||||||
if (type != dialog.type) {
|
if (type != dialog.type || dialog.bot) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -474,11 +474,27 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onActive(type) {
|
onActive(type) {
|
||||||
|
let block = "start"
|
||||||
|
if (type === null) {
|
||||||
|
if (this.tabActive !== 'dialog') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
type = this.dialogActive
|
||||||
|
block = "end"
|
||||||
|
}
|
||||||
if (this.dialogActive == type) {
|
if (this.dialogActive == type) {
|
||||||
// 再次点击滚动到未读条目
|
// 再次点击滚动到未读条目
|
||||||
const dialog = this.dialogList.find(dialog => $A.getDialogNum(dialog) > 0)
|
let index = this.dialogList.findIndex(dialog => $A.getDialogNum(dialog) > 0)
|
||||||
if (dialog) {
|
if (index === -1) {
|
||||||
$A.scrollIntoViewIfNeeded(this.$refs[`dialog_${dialog.id}`][0])
|
index = this.dialogList.findIndex(dialog => $A.getDialogUnread(dialog, true) > 0)
|
||||||
|
}
|
||||||
|
if (index > -1) {
|
||||||
|
const el = this.$refs[`dialog_${this.dialogList[index]?.id}`][0]
|
||||||
|
$A.scrollToView(el, {behavior: "smooth", block, inline: "nearest"})
|
||||||
|
requestAnimationFrame(_ => {
|
||||||
|
$A(el).addClass("common-shake")
|
||||||
|
setTimeout(_ => $A(el).removeClass("common-shake"), 1000)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.dialogActive = type
|
this.dialogActive = type
|
||||||
|
|||||||
3
resources/assets/js/store/actions.js
vendored
3
resources/assets/js/store/actions.js
vendored
@ -2553,7 +2553,8 @@ export default {
|
|||||||
saveBefore()
|
saveBefore()
|
||||||
const resData = result.data;
|
const resData = result.data;
|
||||||
if ($A.isJson(resData.dialog)) {
|
if ($A.isJson(resData.dialog)) {
|
||||||
dispatch("saveDialog", resData.dialog);
|
const dialogData = Object.assign(resData.dialog, {user_ms: $A.TimeM(resData.dialog.user_at)})
|
||||||
|
setTimeout(_ => dispatch("saveDialog", dialogData), 100) // 延迟更新对话详情是因为等消息处理完
|
||||||
//
|
//
|
||||||
const ids = resData.list.map(({id}) => id)
|
const ids = resData.list.map(({id}) => id)
|
||||||
state.dialogMsgs = state.dialogMsgs.filter(item => {
|
state.dialogMsgs = state.dialogMsgs.filter(item => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user