mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-17 23:02:49 +00:00
perf: 优化对话阅读状况
This commit is contained in:
parent
9753dec996
commit
46f5dd99a6
@ -132,7 +132,7 @@
|
|||||||
<div v-else class="time" :title="msgData.created_at" @click="timeShow=true">{{$A.timeFormat(msgData.created_at)}}</div>
|
<div v-else class="time" :title="msgData.created_at" @click="timeShow=true">{{$A.timeFormat(msgData.created_at)}}</div>
|
||||||
<!--阅读-->
|
<!--阅读-->
|
||||||
<template v-if="!hidePercentage">
|
<template v-if="!hidePercentage">
|
||||||
<div v-if="msgData.send > 1 || dialogType === 'group'" class="percent" @click="openReadPercentage">
|
<div v-if="dialogType === 'group'" class="percent" @click="openReadPercentage">
|
||||||
<EPopover
|
<EPopover
|
||||||
v-model="percentageShow"
|
v-model="percentageShow"
|
||||||
ref="percent"
|
ref="percent"
|
||||||
@ -315,12 +315,12 @@ export default {
|
|||||||
return array
|
return array
|
||||||
},
|
},
|
||||||
|
|
||||||
readList() {
|
readList({userId}) {
|
||||||
return this.percentageList.filter(({read_at}) => read_at)
|
return this.percentageList.filter(({userid, read_at}) => userid != userId && read_at)
|
||||||
},
|
},
|
||||||
|
|
||||||
unreadList() {
|
unreadList({userId}) {
|
||||||
return this.percentageList.filter(({read_at}) => !read_at)
|
return this.percentageList.filter(({userid, read_at}) => userid != userId && !read_at)
|
||||||
},
|
},
|
||||||
|
|
||||||
todoDoneList() {
|
todoDoneList() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user