vitesse-yitisheng-web/project_doing.md

26 lines
1.1 KiB
Markdown

## 2026-01-02
### [Task 6] User Recommended Major List API Integration
- **Time**: 2026-01-02
- **Goal**: Integrate the user recommended major list API into the simulation page.
- **Scope**:
- `src/service/api/major.ts` (Create)
- `src/pages/simulate.vue` (Update)
- **Result**:
- Created `src/service/api/major.ts` encapsulating `/user/major/list` API.
- Updated `src/pages/simulate.vue` to fetch and display data in Panel A using the new API.
- Implemented infinite scroll and filtering by probability.
- Mapped API response fields to the UI table.
### [Task 7] Update Major List API Response Structure
- **Time**: 2026-01-02
- **Goal**: Adapt to the updated API response structure and implement dynamic tab counting.
- **Scope**:
- `src/service/api/major.ts` (Update interface)
- `src/pages/simulate.vue` (Update logic)
- **Result**:
- Updated `UserMajorListResponse` to support `{ list: { items: [], probCount: {} } }` structure.
- Added 'stable' (较稳妥) tab to `simulate.vue`.
- Implemented dynamic update of tab counts using `probCount` from API response.