fix(org/vite): 修正成员排行跨页名次与配色,拦截开发服务的 .npmrc 请求

This commit is contained in:
zhanjunhao
2026-11-25 16:29:05 +08:00
parent 49515f4ef3
commit ed693a450a
6 changed files with 70 additions and 14 deletions
+9 -3
View File
@@ -731,6 +731,7 @@ const OrgLogs = ({ orgId, orgRole, isDeptManager = false }) => {
() =>
(ranking || []).map((row, index) => ({
...row,
rank: index + 1,
rank_row_key: `${row.user_id ?? 'unknown'}-${index}`,
})),
[ranking],
@@ -740,10 +741,15 @@ const OrgLogs = ({ orgId, orgRole, isDeptManager = false }) => {
() => [
{
title: t('排名'),
dataIndex: 'rank',
width: 90,
render: (_, __, index) => (
<span className={`oc-exp-rank oc-exp-rank-${index + 1}`}>
{index + 1}
render: (rank) => (
<span
className={
rank <= 3 ? `oc-exp-rank oc-exp-rank-${rank}` : 'oc-exp-rank'
}
>
{rank}
</span>
),
},