feat: 累积功能变更 — 聊天集成、租户管理、小程序更新、ETL 增强、迁移脚本
包含多个会话的累积代码变更: - backend: AI 聊天服务、触发器调度、认证增强、WebSocket、调度器最小间隔 - admin-web: ETL 状态页、任务管理、调度配置、登录优化 - miniprogram: 看板页面、聊天集成、UI 组件、导航更新 - etl: DWS 新任务(finance_area_daily/board_cache)、连接器增强 - tenant-admin: 项目初始化 - db: 19 个迁移脚本(etl_feiqiu 11 + zqyy_app 8) - packages/shared: 枚举和工具函数更新 - tools: 数据库工具、报表生成、健康检查 - docs: PRD/架构/部署/合约文档更新 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
61
docs/prd/Neo_Specs/review-audit/P7-NS1-09.md
Normal file
61
docs/prd/Neo_Specs/review-audit/P7-NS1-09.md
Normal file
@@ -0,0 +1,61 @@
|
||||
# P7→NS1/RNS1 缺失项 #9:绩效页面的空状态
|
||||
|
||||
## 简要结论
|
||||
- 状态:✅ 已解决
|
||||
- 风险等级:🟡 低
|
||||
- performance 主页面和 performance-records 页面均已实现空状态处理,包含空态图标、文案和错误重试。
|
||||
|
||||
## 详细审查
|
||||
|
||||
### 审查范围
|
||||
- `apps/miniprogram/miniprogram/pages/performance/performance.ts` — pageState 状态管理
|
||||
- `apps/miniprogram/miniprogram/pages/performance/performance.wxml` — 空态 UI
|
||||
- `apps/miniprogram/miniprogram/pages/performance-records/performance-records.ts` — pageState 状态管理
|
||||
- `apps/miniprogram/miniprogram/pages/performance-records/performance-records.wxml` — 空态 UI
|
||||
|
||||
### 发现
|
||||
|
||||
1. **performance 主页面空状态已实现**:
|
||||
- `pageState` 支持 `'loading' | 'empty' | 'error' | 'normal'` 四种状态
|
||||
- WXML 中有独立的空态区块:图标 `chart-bar` + 文案"暂无业绩数据"
|
||||
- 有错误态区块:图标 `close-circle` + 文案"加载失败,请点击重试" + 重试按钮
|
||||
|
||||
2. **performance-records 页面空状态已实现**:
|
||||
- 同样支持四种 pageState
|
||||
- 空态区块:图标 `chart-bar` + 文案"暂无数据"
|
||||
- 错误态区块:图标 `close-circle` + 文案"加载失败,请点击重试" + 重试按钮
|
||||
- 当 `dateGroups.length === 0` 时自动切换到 `'empty'` 状态
|
||||
|
||||
3. **loading 态使用 toast 浮层**:不销毁内容,避免白屏闪烁。
|
||||
|
||||
### 证据
|
||||
|
||||
performance.wxml 空态区块:
|
||||
```xml
|
||||
<!-- 空数据态 -->
|
||||
<view class="page-empty" wx:elif="{{pageState === 'empty'}}">
|
||||
<t-icon name="chart-bar" size="40px" color="#dcdcdc" />
|
||||
<text class="empty-text">暂无业绩数据</text>
|
||||
</view>
|
||||
```
|
||||
|
||||
performance-records.wxml 空态区块:
|
||||
```xml
|
||||
<!-- 空态 -->
|
||||
<view class="page-empty" wx:if="{{pageState === 'empty'}}">
|
||||
<t-icon name="chart-bar" size="120rpx" color="#dcdcdc" />
|
||||
<text class="empty-text">暂无数据</text>
|
||||
</view>
|
||||
```
|
||||
|
||||
performance-records.ts 中空态判断:
|
||||
```typescript
|
||||
this.setData({
|
||||
pageState: dateGroups.length > 0 ? 'normal' : 'empty',
|
||||
// ...
|
||||
})
|
||||
```
|
||||
|
||||
### 建议
|
||||
|
||||
无需额外补充。空状态处理已覆盖新助教无数据场景。
|
||||
Reference in New Issue
Block a user