fix(项目管理): 修复消息中心数据显示问题
--bug=1039289 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039289
This commit is contained in:
parent
22e76da348
commit
7539d83bda
|
@ -97,11 +97,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<a-badge :count="9" dot :offset="[6, -2]">
|
<a-badge v-if="item.status === 'UNREAD'" :count="9" dot :offset="[6, -2]">
|
||||||
<div class="one-line-text max-w-[400px] font-medium text-[var(--color-text-1)]">{{
|
<div class="one-line-text max-w-[400px] font-medium text-[var(--color-text-1)]">{{
|
||||||
t('ms.message.notice.title')
|
t('ms.message.notice.title')
|
||||||
}}</div>
|
}}</div>
|
||||||
</a-badge>
|
</a-badge>
|
||||||
|
<div v-else class="one-line-text max-w-[400px] font-medium text-[var(--color-text-1)]">{{
|
||||||
|
t('ms.message.notice.title')
|
||||||
|
}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<div class="font-medium text-[var(--color-text-2)]">{{ item.userName }} </div>
|
<div class="font-medium text-[var(--color-text-2)]">{{ item.userName }} </div>
|
||||||
|
@ -225,8 +228,9 @@
|
||||||
async function loadTotalCount(key: string) {
|
async function loadTotalCount(key: string) {
|
||||||
const res = await queryMessageHistoryCount({
|
const res = await queryMessageHistoryCount({
|
||||||
resourceType: key,
|
resourceType: key,
|
||||||
status: 'UNREAD',
|
status: position.value === 'all' || position.value === 'mentioned_me' ? '' : position.value,
|
||||||
receiver: userStore.id,
|
receiver: userStore.id,
|
||||||
|
type: position.value === 'mentioned_me' ? 'MENTIONED_ME' : '',
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
});
|
});
|
||||||
|
@ -260,6 +264,7 @@
|
||||||
pageNation.value.current = 1;
|
pageNation.value.current = 1;
|
||||||
currentResourceType.value = key;
|
currentResourceType.value = key;
|
||||||
loadMessageHistoryList('all', key);
|
loadMessageHistoryList('all', key);
|
||||||
|
loadTotalCount(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
function openMessageManage() {
|
function openMessageManage() {
|
||||||
|
@ -275,6 +280,7 @@
|
||||||
messageHistoryList.value = [];
|
messageHistoryList.value = [];
|
||||||
pageNation.value.current = 1;
|
pageNation.value.current = 1;
|
||||||
loadMessageHistoryList(value as string, currentResourceType.value);
|
loadMessageHistoryList(value as string, currentResourceType.value);
|
||||||
|
loadTotalCount(currentResourceType.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 滚动翻页
|
// 滚动翻页
|
||||||
|
@ -284,6 +290,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
loadMessageHistoryList(position.value, currentResourceType.value);
|
loadMessageHistoryList(position.value, currentResourceType.value);
|
||||||
|
loadTotalCount(currentResourceType.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取动态模块count
|
// 获取动态模块count
|
||||||
|
|
Loading…
Reference in New Issue