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>
|
||||
),
|
||||
},
|
||||
|
||||
+14
-10
@@ -527,10 +527,6 @@ html.dark .org-center .oc-page {
|
||||
--oc-stat-rose: #cf4c69;
|
||||
--oc-stat-blue-bg: #2981ce10;
|
||||
--oc-stat-blue: #2981ce;
|
||||
--oc-rank-1: #e0ad21;
|
||||
--oc-rank-2: #8795a8;
|
||||
--oc-rank-3: #bc7847;
|
||||
--oc-rank-text: #fff;
|
||||
}
|
||||
|
||||
.org-center .oc-page .oc-exp-stats {
|
||||
@@ -631,18 +627,26 @@ html.dark .org-center .oc-page {
|
||||
}
|
||||
|
||||
.org-center .oc-page .oc-exp-rank-1 {
|
||||
background: var(--oc-rank-1);
|
||||
color: var(--oc-rank-text);
|
||||
background-color: var(--brand-selection-bg);
|
||||
color: var(--brand-selection-text);
|
||||
}
|
||||
|
||||
.org-center .oc-page .oc-exp-rank-2 {
|
||||
background: var(--oc-rank-2);
|
||||
color: var(--oc-rank-text);
|
||||
background-color: color-mix(
|
||||
in srgb,
|
||||
var(--brand-selection-bg) 65%,
|
||||
var(--oc-soft)
|
||||
);
|
||||
color: var(--brand-selection-text);
|
||||
}
|
||||
|
||||
.org-center .oc-page .oc-exp-rank-3 {
|
||||
background: var(--oc-rank-3);
|
||||
color: var(--oc-rank-text);
|
||||
background-color: color-mix(
|
||||
in srgb,
|
||||
var(--brand-selection-bg) 35%,
|
||||
var(--oc-soft)
|
||||
);
|
||||
color: var(--brand-selection-text);
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
|
||||
Reference in New Issue
Block a user