feat(feedback-notify): 用户提交意见反馈,发送通知到企业微信群

This commit is contained in:
sophie committed 2026-06-24 14:22:27 +08:00
1 parent 0d3a812e16
commit 6adea87a5f
7 files changed
+213 -21

No files matched your search

@@ -15,6 +15,7 @@ import {
import { loadReportLayoutPref, saveReportLayoutPref } from '@/shared/composables/useReportLayoutStorage';
import { buildOffsetPageButtons } from '@/shared/composables/useOffsetPagination';
import { useMessage } from '@/shared/composables/useMessage';
import { formatLocalDateTime } from '@/shared/utils/dateTime';
import { ADMIN_REPORT_TABLES } from '@/features/admin/constants/modules';
import type {
ChatLogsLayoutPref,
@@ -561,27 +562,7 @@ const getTranslatedFeedbackValue = (group: 'types' | 'modules' | 'pages', value:
const formatReportDateTime = (value: any) => {
if (value === null || value === undefined || value === '') return value;
const d = new Date(value);
if (Number.isNaN(d.getTime())) return value;
const localeMap: Record<string, string> = {
'zh-CN': 'zh-CN',
'zh-TW': 'zh-TW',
en: 'en-US',
th: 'th-TH',
};
const lang = resolveReportLang();
const localeName = localeMap[lang] || 'en-US';
return new Intl.DateTimeFormat(localeName, {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false,
}).format(d);
return formatLocalDateTime(String(value));
};
const getReportCellValue = (row: any, key: string) => {