From 30947f013ff902e1899301734a63e4e4d8e66e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=9E=97=E9=93=96?= Date: Wed, 29 Jul 2026 18:52:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5=E5=8F=91=E8=B5=B7?= =?UTF-8?q?=E9=A1=B5=E6=A8=A1=E6=9D=BF=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PerformanceSurveyDashboardNavigation.test.tsx | 6 +++++- app/performance-survey/[[...path]]/page.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/performance-survey/PerformanceSurveyDashboardNavigation.test.tsx b/app/performance-survey/PerformanceSurveyDashboardNavigation.test.tsx index 381fa3a..b62fcd7 100644 --- a/app/performance-survey/PerformanceSurveyDashboardNavigation.test.tsx +++ b/app/performance-survey/PerformanceSurveyDashboardNavigation.test.tsx @@ -217,9 +217,11 @@ describe('考核调研顶层导航保护', () => { if (url.includes('/templates?month=2026-07&positionGroupCode=brand_designer')) { return jsonResponse([{ ...templateDefinition, + name: '品牌调性视觉评分(综合主管)', + shortName: '视觉评分', templateVersionId: 'version-1', templateOptionKey: 'visual_review:version-1', - templateVariantName: '视觉案例评分', + templateVariantName: '视觉评分(综合主管)', }]) } if (url.includes('/departments?purpose=evaluator')) return jsonResponse([]) @@ -232,6 +234,8 @@ describe('考核调研顶层导航保护', () => { expect(await screen.findByText('品牌设计师')).toBeInTheDocument() expect(screen.queryByRole('combobox', { name: '考核岗位' })).not.toBeInTheDocument() expect(screen.getByText('已按被考核人的人员分配自动关联,发起时无需选择。')).toBeInTheDocument() + expect(await screen.findByRole('option', { name: '品牌调性视觉评分(综合主管)' })).toBeInTheDocument() + expect(screen.queryByRole('option', { name: '视觉评分(综合主管)' })).not.toBeInTheDocument() await waitFor(() => expect(global.fetch).toHaveBeenCalledWith( '/api/performance-survey/templates?month=2026-07&positionGroupCode=brand_designer', expect.anything(), diff --git a/app/performance-survey/[[...path]]/page.tsx b/app/performance-survey/[[...path]]/page.tsx index fd688ba..e23d249 100644 --- a/app/performance-survey/[[...path]]/page.tsx +++ b/app/performance-survey/[[...path]]/page.tsx @@ -3446,7 +3446,7 @@ function CreateSurveyForm({ {templates.length === 0 && } {templates.map((template) => ( ))}