fix(ui): 修复登录与并发请求并统一表格、主题和页面展示
验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
@@ -16,6 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatIdReference } from '../../helpers/safeDisplay';
|
||||
import { formatPercent } from '../../helpers/safeDisplay';
|
||||
|
||||
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
|
||||
import { RefreshCw as ActionRefreshCw } from '@/components/common/icons/ActionIcons';
|
||||
@@ -414,13 +416,15 @@ const OrgEffectiveness = ({ orgId, canManagePolicy, canManageSkills }) => {
|
||||
title: t('技能'),
|
||||
dataIndex: 'name',
|
||||
render: (name, record) =>
|
||||
name || record.canonical_id || `#${record.skill_id}`,
|
||||
name ||
|
||||
record.canonical_id ||
|
||||
formatIdReference(record.skill_id),
|
||||
},
|
||||
{ title: t('调用次数'), dataIndex: 'request_count' },
|
||||
{
|
||||
title: t('占比'),
|
||||
dataIndex: 'share_percent',
|
||||
render: (share) => `${(share || 0).toFixed(1)}%`,
|
||||
render: (share) => formatPercent(share, 1),
|
||||
},
|
||||
{
|
||||
title: t('提示词 token'),
|
||||
@@ -545,13 +549,16 @@ const OrgEffectiveness = ({ orgId, canManagePolicy, canManageSkills }) => {
|
||||
<span>
|
||||
{t('首次交付通过率')}:{' '}
|
||||
{row.data_sufficient
|
||||
? `${(row.first_delivery_pass_rate * 100).toFixed(1)}%`
|
||||
? formatPercent(
|
||||
Number(row.first_delivery_pass_rate) * 100,
|
||||
1,
|
||||
)
|
||||
: t('数据不足')}
|
||||
</span>
|
||||
<span>
|
||||
{t('退回率')}:{' '}
|
||||
{row.data_sufficient
|
||||
? `${(row.return_rate * 100).toFixed(1)}%`
|
||||
? formatPercent(Number(row.return_rate) * 100, 1)
|
||||
: t('数据不足')}
|
||||
</span>
|
||||
<span>
|
||||
@@ -574,14 +581,17 @@ const OrgEffectiveness = ({ orgId, canManagePolicy, canManageSkills }) => {
|
||||
title: t('首次交付通过率'),
|
||||
render: (_, row) =>
|
||||
row.data_sufficient
|
||||
? `${(row.first_delivery_pass_rate * 100).toFixed(1)}%`
|
||||
? formatPercent(
|
||||
Number(row.first_delivery_pass_rate) * 100,
|
||||
1,
|
||||
)
|
||||
: t('数据不足'),
|
||||
},
|
||||
{
|
||||
title: t('退回率'),
|
||||
render: (_, row) =>
|
||||
row.data_sufficient
|
||||
? `${(row.return_rate * 100).toFixed(1)}%`
|
||||
? formatPercent(Number(row.return_rate) * 100, 1)
|
||||
: t('数据不足'),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user