cmvr-wms/sql/projectdev/20261022_home_permissions.sql
lixiaolong ebac97185e feat(assistant): 新增用户核对功能并优化对话流程
- 新增 user.check 功能用于核对人员是否已有系统账号
- 在 assistant-table-layout.js 中为用户表格添加 checkedIdentity 和 matchResult 字段
- 优化 AssistantConversationService 中的任务记忆和澄清流程
- 支持对草稿特定行进行修改,无需重新填写整张表
- 限制 user.check 操作最大查询数量为 100 条记录
- 实现中断任务恢复机制,保持原始请求上下文
- 添加针对多行数据选择性修改的目标行标识支持
2026-10-23 17:00:47 +08:00

13 lines
1.1 KiB
SQL

-- Menu configuration only. No automatic grants to roles or users, and no business data changes.
-- /index remains a constant route; its menu record participates in role authorization.
INSERT INTO sys_menu(menu_name,parent_id,order_num,path,component,is_frame,is_cache,menu_type,visible,status,perms,icon,create_by,create_time)
SELECT '首页',0,0,'index','businessHome/index',1,0,'C','0','0','business:home:view','dashboard','admin',now()
WHERE NOT EXISTS(SELECT 1 FROM sys_menu WHERE perms='business:home:view');
INSERT INTO sys_menu(menu_name,parent_id,order_num,path,is_frame,is_cache,menu_type,visible,status,perms,icon,create_by,create_time)
SELECT v.label,p.menu_id,v.sort_order,'',1,0,'F','0','0',v.permission,'#','admin',now()
FROM sys_menu p JOIN (
SELECT '首页库存统计' label,1 sort_order,'business:home:warehouse' permission UNION ALL
SELECT '首页项目及经费统计',2,'business:home:project' UNION ALL
SELECT '首页业务待办',3,'business:home:todo'
) v WHERE p.perms='business:home:view' AND NOT EXISTS(SELECT 1 FROM sys_menu x WHERE x.perms=v.permission);