fix(*): 全量 UI 审查与 undefined 展示异常修复
分析模块:补齐看板、排行、趋势及报表数值兜底 企业与用户中心:修复统计、成员、技能及资金字段展示 充值与交易:修复充值、发票、订单、订阅及支付字段拼接 平台页面:修复渠道、模型、服务监控与状态空值展示 通用能力:新增安全展示工具,补齐九语言文案与回归测试 文档记录:更新修复范围、影响及回滚说明
This commit is contained in:
@@ -16,7 +16,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatUserReference } from '../../helpers/safeDisplay';
|
||||
import {
|
||||
formatIdReference,
|
||||
formatUserReference,
|
||||
} from '../../helpers/safeDisplay';
|
||||
|
||||
import { Trans } from 'react-i18next';
|
||||
import {
|
||||
@@ -39,6 +42,7 @@ import { Button as AntButton } from 'antd';
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { useEffectEvent } from '../../hooks/common/useEffectEvent';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { formatCurrency } from '../../helpers/safeDisplay';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { CreditCard, Search, History } from 'lucide-react';
|
||||
import {
|
||||
@@ -423,7 +427,7 @@ const Subscription = () => {
|
||||
title: t('支付金额'),
|
||||
dataIndex: 'price_paid',
|
||||
width: 100,
|
||||
render: (v) => (v != null ? `¥${Number(v).toFixed(2)}` : '-'),
|
||||
render: (v) => (v != null ? formatCurrency(v) : '-'),
|
||||
},
|
||||
{
|
||||
title: t('操作'),
|
||||
@@ -1440,7 +1444,7 @@ const DetailDrawer = ({ visible, row, loading, auditLogs, onClose, t }) => {
|
||||
</div>
|
||||
<div className='flex justify-between'>
|
||||
<span className='text-gray-500'>{t('支付金额')}</span>
|
||||
<span>¥{Number(row.price_paid || 0).toFixed(2)}</span>
|
||||
<span>{formatCurrency(row.price_paid, '¥', 2, '¥0.00')}</span>
|
||||
</div>
|
||||
<div className='flex justify-between'>
|
||||
<span className='text-gray-500'>{t('支付方式')}</span>
|
||||
@@ -1503,7 +1507,9 @@ const DetailDrawer = ({ visible, row, loading, auditLogs, onClose, t }) => {
|
||||
<span className='ml-2 text-gray-700 dark:text-gray-200'>
|
||||
{log.admin_display_name ||
|
||||
log.admin_username ||
|
||||
`Admin#${log.admin_id}`}
|
||||
(log.admin_id == null
|
||||
? t('未知管理员')
|
||||
: `Admin${formatIdReference(log.admin_id)}`)}
|
||||
</span>
|
||||
</div>
|
||||
{log.reason && (
|
||||
|
||||
Reference in New Issue
Block a user