添加报表页面,更新用户管理和注册功能
This commit is contained in:
@@ -103,8 +103,8 @@ onBeforeUnmount(() => {
|
||||
})
|
||||
|
||||
const menuItems = [
|
||||
{ path: '/pending', label: '待审核', icon: Document, badgeKey: 'pending' },
|
||||
{ path: '/users', label: '用户', icon: User },
|
||||
{ path: '/reports', label: '报表', icon: Document },
|
||||
{ path: '/users', label: '用户', icon: User, badgeKey: 'resets' },
|
||||
{ path: '/feedbacks', label: '反馈', icon: ChatLineSquare, badgeKey: 'feedbacks' },
|
||||
{ path: '/stats', label: '统计', icon: DataAnalysis },
|
||||
{ path: '/logs', label: '任务日志', icon: List },
|
||||
@@ -118,9 +118,7 @@ const activeMenu = computed(() => route.path)
|
||||
|
||||
function badgeFor(item) {
|
||||
if (!item?.badgeKey) return 0
|
||||
if (item.badgeKey === 'pending') {
|
||||
return Number(stats.value?.pending_users || 0) + Number(pendingResetsCount.value || 0)
|
||||
}
|
||||
if (item.badgeKey === 'resets') return Number(pendingResetsCount.value || 0)
|
||||
if (item.badgeKey === 'feedbacks') {
|
||||
return Number(pendingFeedbackCount.value || 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user