fix(org/vite): 修正成员排行跨页名次与配色,拦截开发服务的 .npmrc 请求
This commit is contained in:
@@ -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>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user