fix(ui): 统一三中心表格交互并优化企业及配套页面
- 公共表格:统一分组标签、状态开关和危险操作确认,支持防重复提交和失败重试,修复浮层触发组件的 ref 转发。 - 控制台:统一用户和渠道编辑抽屉,修正分组回填与提交格式,对齐系统设置操作区和预约列表。 - 企业中心:调整技能中心页签和窄屏布局,优化质量监控提示栏、效能分析及成本对账,统一消耗明细和审计日志筛选。 - 用户中心及公共页面:优化密钥和消费记录展示,对齐模型超市筛选,统一公开与内嵌客户端下载页。 - 同步多语言文案、组件规范与移动端视口要求。
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import OrgPageHeader from './components/OrgPageHeader';
|
||||
import OrgSubpageTabs from './components/OrgSubpageTabs';
|
||||
import OrgSkillLibrary from './OrgSkillLibrary';
|
||||
import OrgPrivateSkills from './OrgPrivateSkills';
|
||||
@@ -24,30 +25,39 @@ const OrgSkillCenter = ({
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<OrgSubpageTabs
|
||||
tabs={[
|
||||
showLibrary && {
|
||||
key: 'library',
|
||||
label: t('企业技能库'),
|
||||
// orgRole 用于识别平台超管(超市页解析不出其企业上下文,页内引入
|
||||
// 抽屉是其唯一的"代客开通"入口);canAssignSkills 决定引入成功后的
|
||||
// 指引指向哪里——超管的该权限位后端恒 false,不能让文案把人指向
|
||||
// 一个结构上进不去的页面。两者都复用父层已取的 /api/org/info。
|
||||
node: (
|
||||
<OrgSkillLibrary
|
||||
orgId={orgId}
|
||||
orgRole={orgRole}
|
||||
canAssignSkills={canAssignSkills}
|
||||
/>
|
||||
),
|
||||
},
|
||||
showPrivate && {
|
||||
key: 'private',
|
||||
label: t('企业自研 Skill'),
|
||||
node: <OrgPrivateSkills orgId={orgId} />,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<main className='uc-page oc-page org-skill-center-page'>
|
||||
<OrgSubpageTabs
|
||||
renderHeader={({ label, subtitle }) => (
|
||||
<OrgPageHeader title={label} subtitle={subtitle} />
|
||||
)}
|
||||
tabs={[
|
||||
showLibrary && {
|
||||
key: 'library',
|
||||
label: t('企业技能库'),
|
||||
subtitle: t('控制启用状态、版本锁定、紧急停用和企业展示定制。'),
|
||||
// orgRole 用于识别平台超管(超市页解析不出其企业上下文,页内引入
|
||||
// 抽屉是其唯一的"代客开通"入口);canAssignSkills 决定引入成功后的
|
||||
// 指引指向哪里——超管的该权限位后端恒 false,不能让文案把人指向
|
||||
// 一个结构上进不去的页面。两者都复用父层已取的 /api/org/info。
|
||||
node: (
|
||||
<OrgSkillLibrary
|
||||
orgId={orgId}
|
||||
orgRole={orgRole}
|
||||
canAssignSkills={canAssignSkills}
|
||||
/>
|
||||
),
|
||||
},
|
||||
showPrivate && {
|
||||
key: 'private',
|
||||
label: t('企业自研 Skill'),
|
||||
subtitle: t(
|
||||
'版本内容不可变;兼容扫描、双人审核、发布、回滚与紧急停用均保留审计。',
|
||||
),
|
||||
node: <OrgPrivateSkills orgId={orgId} />,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</main>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user