diff --git a/apps/daxpay-admin/src/views/system/notify/center/NotifyCenter.vue b/apps/daxpay-admin/src/views/system/notify/center/NotifyCenter.vue index 20a0e9824..15ba10b99 100644 --- a/apps/daxpay-admin/src/views/system/notify/center/NotifyCenter.vue +++ b/apps/daxpay-admin/src/views/system/notify/center/NotifyCenter.vue @@ -5,6 +5,7 @@ import { $t } from '@vben/locales'; + import dayjs from 'dayjs'; import { MdPreview } from 'md-editor-v3'; import { NotifyUserApi } from '#/api/system/notify/user.api'; @@ -36,6 +37,13 @@ return v === 'message' ? $t('system.notify.messageType') : $t('system.notify.noticeType'); } + /** + * 时间格式化(对齐 vxe formatDateTime, 弹窗内非表格场景使用) + */ + function formatDateTime(v?: string) { + return v ? dayjs(v).format('YYYY-MM-DD HH:mm:ss') : '-'; + } + /** * 拉取通知列表 */ @@ -217,8 +225,74 @@ - - + +
+ +
+ + {{ typeText(detail.type) }} + + {{ $t('system.notify.severityImportant') }} + {{ $t('system.notify.severityNormal') }} + + {{ $t('system.notify.isTop') }} + + + + {{ formatDateTime(detail.createTime) }} + +
+ +
+ +
+
+ + diff --git a/apps/daxpay-merchant/src/views/system/notify/center/NotifyCenter.vue b/apps/daxpay-merchant/src/views/system/notify/center/NotifyCenter.vue index 20a0e9824..15ba10b99 100644 --- a/apps/daxpay-merchant/src/views/system/notify/center/NotifyCenter.vue +++ b/apps/daxpay-merchant/src/views/system/notify/center/NotifyCenter.vue @@ -5,6 +5,7 @@ import { $t } from '@vben/locales'; + import dayjs from 'dayjs'; import { MdPreview } from 'md-editor-v3'; import { NotifyUserApi } from '#/api/system/notify/user.api'; @@ -36,6 +37,13 @@ return v === 'message' ? $t('system.notify.messageType') : $t('system.notify.noticeType'); } + /** + * 时间格式化(对齐 vxe formatDateTime, 弹窗内非表格场景使用) + */ + function formatDateTime(v?: string) { + return v ? dayjs(v).format('YYYY-MM-DD HH:mm:ss') : '-'; + } + /** * 拉取通知列表 */ @@ -217,8 +225,74 @@ - - + +
+ +
+ + {{ typeText(detail.type) }} + + {{ $t('system.notify.severityImportant') }} + {{ $t('system.notify.severityNormal') }} + + {{ $t('system.notify.isTop') }} + + + + {{ formatDateTime(detail.createTime) }} + +
+ +
+ +
+
+ +