fix(ui): 统一三中心表格交互并优化企业及配套页面

- 公共表格:统一分组标签、状态开关和危险操作确认,支持防重复提交和失败重试,修复浮层触发组件的 ref 转发。
- 控制台:统一用户和渠道编辑抽屉,修正分组回填与提交格式,对齐系统设置操作区和预约列表。
- 企业中心:调整技能中心页签和窄屏布局,优化质量监控提示栏、效能分析及成本对账,统一消耗明细和审计日志筛选。
- 用户中心及公共页面:优化密钥和消费记录展示,对齐模型超市筛选,统一公开与内嵌客户端下载页。
- 同步多语言文案、组件规范与移动端视口要求。
This commit is contained in:
zhanjunhao
2026-11-24 13:26:07 +08:00
parent 4054735383
commit 471d7843de
124 changed files with 2682 additions and 1810 deletions
+6 -4
View File
@@ -1,3 +1,4 @@
import TableActionPopconfirm from '@/components/common/table/TableActionPopconfirm';
import { useEffectEvent } from '../../hooks/common/useEffectEvent';
import React, { useState, useEffect } from 'react';
import {
@@ -9,7 +10,6 @@ import {
Card,
Typography,
Tag,
Popconfirm,
} from '@/components/ui';
import { IconPlus } from '@/components/ui/icons';
import { useTranslation } from 'react-i18next';
@@ -101,14 +101,14 @@ const AmountOptionsManager = ({
<Button onClick={() => handleEdit(record)} type='link' size='small'>
{t('编辑')}
</Button>
<Popconfirm
<TableActionPopconfirm
title={t('确定删除该档位吗?')}
onConfirm={() => handleDelete(record.id)}
>
<Button type='link' size='small' danger>
{t('删除')}
</Button>
</Popconfirm>
</TableActionPopconfirm>
</Space>
),
width: 150,
@@ -121,7 +121,7 @@ const AmountOptionsManager = ({
const handleDelete = async (id) => {
const newOptions = options.filter((opt) => opt.id !== id);
await saveOptions(newOptions);
return saveOptions(newOptions);
};
const handleAdd = () => {
@@ -171,12 +171,14 @@ const AmountOptionsManager = ({
if (res.data.success) {
showSuccess(t('保存成功'));
loadOptions();
return true;
} else {
showError(res.data.message);
}
} catch (error) {
showError(t('保存失败'));
}
return false;
};
return (