Commit Graph
3 Commits
Author SHA1 Message Date
lewis_yan 27b98bc73f feat(dashboard): complete buyer/supplier dashboard redesign
Backend:
- Fix JWT auth header format (use "JWT " prefix)
- Fix DashboardView to return data for superadmin users
- Return empty structure when no business data exists
- Use serializers for response validation

Frontend:
- Redesign BuyerDashboard with new UI matching design spec
- Redesign SupplierDashboard with consistent styling
- Add role switcher for users with both buyer/supplier roles
- Fix FontAwesome icon class names (fa vs fas)
- Update tagsView title when switching roles via mitt event
- Add i18n translations for dashboard

Auth fixes:
- Fix token storage to use sessionStorage instead of Cookies
- Add route initialization guard to prevent duplicate routing
- Fix login flow for token handling

Files:
- Add BuyerDashboard, SupplierDashboard, KpiCard, TrendChart components
- Add dashboard API and Pinia store
- Add mitt event type for tagsView name update
2026-04-02 09:20:12 +08:00
allen_xiong b7351d44cf 日常更新
1. 修改后端配置及路由中相关应用路径为 apps.pisadmin 和 apps.pissupplier
2. 添加询价业务逻辑
3. 其他优化
2026-03-23 09:28:12 +08:00
allen_xiong 884dab3fb1 初次提交PIS代码 2026-03-19 20:03:10 +08:00