① 看板「导出 Excel」按钮原来挂 canR("board"),但 /export/updates 权限归「自研产品」
(EXPORT_MENU),只有看板权限的账号点了必 403。门改 canR("projects") + title 说明。
② download() 重写为 fetch+blob:403/500/401 的 JSON 错误改 toast 报出(401 直接弹回登录),
不再用同标签页 <a> 跳转把整个 SPA 顶成 JSON 错误页;文件名解析 Content-Disposition 的 UTF-8'' 段。
③ 只有「更新录入」权限的账号录入页死路修复:无自研读权限时 intakeType 强制走定制 tab,
seg 的自研按钮渲染为 disabled+原因 title(intakeTypeSegHtml 助手,两处 seg 模板合并为一个);
定制抽屉「添加交付记录」按 canW(custom)||canW(intake)(POST /custom/updates 走 assist max 口径)、
「AI 录入」按 can(intake)(没菜单跳了也白跳)。
④ 在线会话「下线这个会话」补 confirmDialog({danger:true}),与用户页强制下线同款;
此前 commit message 宣称的一致其实没做(cf0f3a1 只改了用户页)。
⑤ openCustomDrawer / openDrawer 初始加载包 try/catch → 抽屉体内渲染「加载失败」,
不再永久卡在「加载中…+遮罩关不掉」;与 openFocusDrawer 1520-1545 同模板。
node --check 通过;pytest 93 passed 不受影响(纯前端)。
|
||
|---|---|---|
| .. | ||
| app.js | ||
| icons.js | ||
| index.html | ||
| livereload.js | ||
| styles.css | ||