Files
ccdi/docs/plans/frontend/2026-03-19-risk-people-overview-risk-count-frontend-implementation.md

42 lines
1.4 KiB
Markdown
Raw Normal View History

# Risk People Overview Risk Count Frontend Implementation Plan
> **For agentic workers:** REQUIRED: Use superpowers:subagent-driven-development (if subagents available) or superpowers:executing-plans to implement this plan. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** 确认风险人员总览前端在后端调整疑似违规数口径后继续直接展示接口返回的 `riskCount`
**Architecture:** 不修改 `RiskPeopleSection.vue` 表格结构和字段绑定,不新增前端兼容逻辑,只做回归验证确保“疑似违规数”仍绑定 `riskCount` 字段。
**Tech Stack:** Vue 2, Element UI, Node.js
---
### Task 1: 回归确认疑似违规数字段绑定
**Files:**
- Verify: `ruoyi-ui/src/views/ccdiProject/components/detail/RiskPeopleSection.vue`
- Verify: `ruoyi-ui/tests/unit/preliminary-check-risk-people-binding.test.js`
- [ ] **Step 1: Review current binding**
确认“疑似违规数”列继续绑定 `riskCount`,不新增前端计算。
- [ ] **Step 2: Run regression check**
Run:
```bash
cd ruoyi-ui
node tests/unit/preliminary-check-risk-people-binding.test.js
```
Expected:
- `PASS`
- [ ] **Step 3: Commit**
```bash
git add ruoyi-ui/src/views/ccdiProject/components/detail/RiskPeopleSection.vue ruoyi-ui/tests/unit/preliminary-check-risk-people-binding.test.js
git commit -m "确认风险人员总览疑似违规数前端展示口径"
```