diff --git a/admin-frontend-vue/src/api/notifications.ts b/admin-frontend-vue/src/api/notifications.ts index 6b52333ba..c05670dcd 100644 --- a/admin-frontend-vue/src/api/notifications.ts +++ b/admin-frontend-vue/src/api/notifications.ts @@ -13,6 +13,17 @@ export const ADMIN_NOTIFICATION_SEVERITY_LABELS: Readonly。任务详情接口按它查。 */ + taskNo: string + moduleType?: string | null + reason?: string | null + updatedAt?: string | null + deviceId?: string | null +} + /** 单条通知(后台铃铛)。 */ export interface AdminNotificationItem { id: number @@ -22,6 +33,8 @@ export interface AdminNotificationItem { severity?: string title: string content: string + /** 可点的定位锚点;旧后端/历史行没有这一列时为空。 */ + refs?: AdminNotificationRef[] | null read: boolean readAt: string | null createdAt: string | null diff --git a/admin-frontend-vue/src/components/NotificationBell.vue b/admin-frontend-vue/src/components/NotificationBell.vue index b9f9ac1e9..238be7423 100644 --- a/admin-frontend-vue/src/components/NotificationBell.vue +++ b/admin-frontend-vue/src/components/NotificationBell.vue @@ -140,6 +140,18 @@ {{ formatTime(item.createdAt) }}
{{ item.content }}
+
+ +
  • 另有 {{ detailTotal - details.length }} 条未列出,可缩小日期范围后查看 @@ -175,14 +187,17 @@