Files
TalkingQ_Dashboard/.workbuddy/memory/2026-05-15.md
“yuanmengy” a225272d1e data&device ready
2026-06-05 17:11:56 +08:00

23 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2026-05-15 工作记录
## 重写三角色权限控制 + 登录页角色改名
**改动列表**
1. **登录页角色卡片**
- 工人 → 员工(图标换为 usersdata-role 保持 worker
- 去掉三个角色的权限描述文字(.role-desc
2. **登录后跳转**:三个角色统一跳转 dashboard之前 client 跳 agent-manageworker 跳 session
3. **权限重新分配**`__updateSidebarForRole`完全重写):
- **管理员**:全部内容可见
- **员工worker**:仪表盘 + 设备管理 + 应用配置 + 会话分析 + 系统管理(隐私保护+系统设置,权限管理隐藏)
- **客户client**:仪表盘 + 会话分析(仅会话详情) + 设备管理仅设备管理无OTA顶部公司选择器隐藏
4. **客户特殊处理**
- `initCompanyNav` 增加 role 参数
- 客户只看自己公司mock: company_a无"全部公司"选项
- 客户的设备管理子菜单不显示 OTA 升级
- 顶部 company-selector 隐藏