Przeglądaj źródła

fix(frontend): 修正评分详情和周期管理路由

wangkangyjy 2 tygodni temu
rodzic
commit
d8c00ee6dc

+ 1 - 1
frontend/src/components/shell/AppShell.vue

@@ -70,7 +70,7 @@ const moduleContexts = {
   admin: {
     title: '系统管理',
     items: [
-      { to: '/period', label: '考核周期', icon: Calendar },
+      { to: '/periods', label: '考核周期', icon: Calendar },
       { to: '/org', label: '组织架构', icon: OfficeBuilding },
       { to: '/period/templates', label: '绩效模板', icon: Notebook },
       { to: '/dimensions', label: '考核维度', icon: Grid },

+ 1 - 1
frontend/src/views/scoring/ScoringListView.vue

@@ -75,7 +75,7 @@ async function load() {
 }
 
 function goScore(row) {
-  router.push({ path: `/scoring/${row.targetUser.id}`, query: { periodId: periodId.value } })
+  router.push({ name: 'ScoringDetail', params: { userId: row.targetUser.id }, query: { periodId: periodId.value } })
 }
 
 function gradeType(g) { return { S: '', A: 'success', B: 'primary', C: 'danger' }[g] || 'info' }