feat(aihr): 重构运营后台与租户知识治理

- 重构运营总览、侧栏和内容运营工作台\n- 增加大喇叭、成果审核与运营统计链路\n- 补齐租户、知识空间、分类和知识维护闭环\n- 加固标签页租户上下文、停用租户写保护与迁移预检
This commit is contained in:
2026-07-23 01:24:22 +08:00
parent 333c365c6f
commit 163b08ecfe
94 changed files with 8610 additions and 1114 deletions
+27 -1
View File
@@ -44,4 +44,30 @@ No actionable P0, P1, or P2 findings remain in the implemented employee Today, P
- Practice result was not persisted solely for a screenshot, so frame `55:2` remains an authenticated visual follow-up.
- Production phone `13900000202` currently returns the real “无主管权限” state, so the authenticated supervisor dashboard frame `57:2` remains blocked by production organization mapping rather than frontend rendering.
final result: passed
employee/mobile final result: passed
## 2026-07-22 — 管理端 R1 运营总览信息架构
### Scope and evidence
- Source visual truth: user-provided high-fidelity reference `/var/folders/05/f0xfl3r11yb9vp23tnf_8pz80000gn/T/codex-clipboard-e50a52e1-6064-47c3-9a29-c7c1f486ffb6.png`.
- Implementation scope: `frontend/src/views/index.vue`, `frontend/src/layout/components/Sidebar/index.vue`, and the related access/route controls.
- Final desktop capture: `/Users/yuanjiantsui/.codex/visualizations/2026/07/22/019f87d2-0cfa-7643-af2a-ecb6eed88c1d/admin-home-ia-audit/operations-overview-1610x977-final-v4.jpg`.
- Final mobile capture: `/Users/yuanjiantsui/.codex/visualizations/2026/07/22/019f87d2-0cfa-7643-af2a-ecb6eed88c1d/admin-home-ia-audit/operations-overview-320x844-final-v3.jpg`.
- Combined comparison inspected: `/Users/yuanjiantsui/.codex/visualizations/2026/07/22/019f87d2-0cfa-7643-af2a-ecb6eed88c1d/admin-home-ia-audit/reference-vs-operations-overview-final-v4.jpg`.
- Viewports: source and desktop implementation 1610 × 977 CSS pixels; mobile implementation 320 × 844 CSS pixels.
- State: authenticated local operations console on `/index`; the cards use the current API response. This is local evidence only, not a deployment or production check.
### Comparison history and findings
1. The dashboard now uses a clear operating sequence: today's actionable items → trial-loop progress and acceptance state → knowledge, recent training, and platform health. The bottom three panels remain fully inside the desktop viewport (bottom edge measured at 966.2px in a 977px viewport).
2. The left navigation is grouped by current business ownership: training, work results, knowledge, content, co-creation, recruitment/organization, and platform settings. It uses real links, an active state, keyboard focus, collapsible navigation, and a visible 184px expanded width matching the reference's visual weight.
3. The reference's numbers and status colors are a static proposal. The implementation deliberately keeps current API values and their truthful states instead of recreating the reference's mock values. The tenant selector remains; no non-functional project/date filters were added.
4. At 320px, the task cards stack cleanly, the document width stays within the viewport, and the recent-training table has an intentional horizontal scroll region (248px viewport width / 498px content width). The knowledge metric `0 条已完成` now remains on one line on desktop.
5. Interaction checks covered navigation, the `/admin/*` alias active state, sidebar collapse/expand, refresh feedback through an `aria-live` message, and access checks for protected console routes. The fixed console is restricted to the same `superadmin` / `hr_operator` role matrix used by the related backend APIs.
### Runtime note
- The local Vite preview emits existing Vue Router `next()` deprecation warnings and unavailable local SSE connection messages. Neither blocked the dashboard or the interactions above; no dashboard-specific JavaScript exception was observed during this visual pass.
final result: passed (locally implemented and visually verified; not deployed or production-verified)