fix(*): 全量 UI 审查与 undefined 展示异常修复

分析模块:补齐看板、排行、趋势及报表数值兜底
企业与用户中心:修复统计、成员、技能及资金字段展示
充值与交易:修复充值、发票、订单、订阅及支付字段拼接
平台页面:修复渠道、模型、服务监控与状态空值展示
通用能力:新增安全展示工具,补齐九语言文案与回归测试
文档记录:更新修复范围、影响及回滚说明
This commit is contained in:
zhanjunhao
2026-11-20 10:18:17 +08:00
parent e80d719c30
commit 9760e28cb4
65 changed files with 507 additions and 274 deletions
@@ -16,7 +16,11 @@ 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 {
formatNumber,
formatIdReference,
formatUserReference,
} from '../../helpers/safeDisplay';
import { Trans } from 'react-i18next';
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
@@ -86,7 +90,7 @@ const UserTopupRanking = ({ data, title, icon, t, embedded = false }) => {
{formatUserReference(text, record.user_id, t('未知用户'))}
</span>
<span className='text-xs text-gray-400 truncate'>
{I18N_TECHNICAL_TEXT.ID} {record.user_id}
{I18N_TECHNICAL_TEXT.ID} {formatIdReference(record.user_id)}
</span>
</div>
),
@@ -99,7 +103,7 @@ const UserTopupRanking = ({ data, title, icon, t, embedded = false }) => {
defaultSortOrder: 'descend',
render: (value) => (
<span className='font-semibold text-red-500'>
¥{(value || 0).toFixed(2)}
¥{formatNumber(value, 2, '0.00')}
</span>
),
},