diff --git a/app/performance-survey/[[...path]]/page.tsx b/app/performance-survey/[[...path]]/page.tsx index a2d90bb5..2f722ddc 100644 --- a/app/performance-survey/[[...path]]/page.tsx +++ b/app/performance-survey/[[...path]]/page.tsx @@ -534,13 +534,28 @@ function PerformanceDashboardBoard({ view }: { view: 'personal' | 'public' }) { return (
{view === 'public' && ( -
-
+
+
+

公共看板

+ {(department || employee) && ( + + )} +
+
setMonth(event.target.value)} - className="rounded-lg border border-[#dbe5f2] bg-white px-3 py-2 text-sm font-semibold text-[#101828] dark:border-gray-700 dark:bg-gray-900 dark:text-white" + className="h-11 rounded-[12px] border border-[#dbe5f2] bg-white px-3 text-sm font-semibold text-[#101828] outline-none transition-colors focus:border-[#1677ff] focus:ring-4 focus:ring-[#1677ff]/10 dark:border-gray-700 dark:bg-gray-950 dark:text-white" /> return ( - <> -
- - - - - {templates.map((template) => ( - - ))} - - - - {rows.map((row) => ( - - - {templates.map((template) => ( - - ))} - - ))} - -
人员{template.name}
-
{row.employee.displayName}
-
- {[row.employee.departmentName, row.employee.positionLevel || row.employee.levelType].filter(Boolean).join(' · ')} -
-
- onOpenDetail({ - month: row.month, - employeeId: row.employee.id, - templateCode: template.code, - })} - /> -
-
- -
- {rows.map((row) => ( -
-
-
{row.employee.displayName}
-
+
+ {rows.map((row) => ( +
+
+
+
{row.employee.displayName}
+
{[row.employee.departmentName, row.employee.positionLevel || row.employee.levelType].filter(Boolean).join(' · ')}
-
+
{templates.map((template) => ( ))}
-
- ))} -
- +
+
+ ))} +
) } @@ -726,7 +702,7 @@ function MonthlyScoreCell({ }) { const hasScore = cell && cell.score !== null && cell.score !== undefined const canOpen = Boolean(hasScore && (canOpenOverride ?? cell?.detailAllowed)) - const className = `${compact ? 'min-h-[74px] px-3 py-3' : 'min-h-[88px] px-3.5 py-3.5'} rounded-[12px] border text-left transition-colors ${ + const className = `${compact ? 'min-h-[72px] px-3 py-3' : 'min-h-[88px] px-3.5 py-3.5'} rounded-[14px] border text-left transition-colors ${ canOpen ? 'border-[#cfe0ff] bg-[#f7fbff] hover:border-[#1677ff] hover:bg-[#eef6ff] dark:border-blue-500/30 dark:bg-blue-500/10' : 'border-[#e7edf5] bg-[#f8fafc] dark:border-gray-700 dark:bg-gray-800' @@ -734,11 +710,11 @@ function MonthlyScoreCell({ const content = ( <>
{template.name}
-
- +
+ {hasScore ? formatNullableScore(cell.score) : '-'} - {hasScore && /120} + {hasScore && /120}
) @@ -1442,18 +1418,18 @@ function DepartmentFilterTree({ {open && ( -
+
setKeyword(event.target.value)} placeholder="搜索组织" - className="mb-2 w-full rounded-lg border border-gray-300 px-3 py-2 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-950 dark:text-white" + className="mb-2 h-10 w-full rounded-[12px] border border-[#dbe5f2] px-3 text-sm text-[#101828] outline-none focus:border-[#1677ff] focus:ring-4 focus:ring-[#1677ff]/10 dark:border-gray-700 dark:bg-gray-950 dark:text-white" />