fix(workbench): 首页待办上限改为 3 条并修正趋势图尺寸

- TODO_LIMIT 由 5 调整为 3,同步更新接口文档默认值
- 趋势图 viewBox 与画布尺寸对齐原型 560×190
- 趋势卡改为弹性布局,图表贴底避免留白
This commit is contained in:
yelan
2026-09-30 18:05:27 +08:00
parent 7d06c29943
commit 5ed6779ec6
3 changed files with 37 additions and 12 deletions
+5 -3
View File
@@ -353,10 +353,12 @@ function createRanking(
/**
* 首页「我的待办」最多几条。
*
* 照抄原型 `renderDash()` 的 `tasks.slice(0, 5)`(最多 5 条)。
* 仓库多一步:把这个上限同时作为 `todoLimit` 传给后端,避免取回一批再丢掉。
* 原型 `renderDash()` 是 `tasks.slice(0, 5)`(最多 5 条)。
* 仓库收成 **3 条**(2026-09-30 定):趋势卡与待办卡同行,待办越多行高越高,
* 图是按宽度定高的、贴底后会在标题与图之间留大片空白 —— 3 条时两张卡高度基本齐平。
* 该上限同时作为 `todoLimit` 传给后端,避免取回一批再丢掉。
*/
const TODO_LIMIT = 5
const TODO_LIMIT = 3
const RANKING_LIMIT = 10
let campusIds: Map<string, string> | null = null
let campusIdsRequest: Promise<Map<string, string>> | null = null