|
|
@@ -60,7 +60,28 @@ CREATE TABLE IF NOT EXISTS `duty_assignment` (
|
|
|
KEY `idx_tenant` (`tenant_no`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='值班占位(指定或抢班)';
|
|
|
|
|
|
--- 菜单:挂在 Web 虚拟根(parent_id=2,menu_name=Web端)下「值班排班」
|
|
|
+-- 菜单:一级「值班管理」+ 叶子「值班排班」(门户首页按一级模块出卡片)
|
|
|
+INSERT INTO `sys_menu` (
|
|
|
+ `id`, `menu_name`, `parent_id`, `menu_type`, `path`, `component`, `perms`,
|
|
|
+ `is_frame`, `visible`, `status`, `tenant_no`, `order_num`, `remark`,
|
|
|
+ `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`
|
|
|
+) VALUES (
|
|
|
+ 'DUTY000000000000000000000000000',
|
|
|
+ '值班管理',
|
|
|
+ '2',
|
|
|
+ 'M',
|
|
|
+ '/duty',
|
|
|
+ '/index/index',
|
|
|
+ NULL,
|
|
|
+ 1, '1', '1', 'shanxia2.0', 85,
|
|
|
+ '值班一级模块(门户首页分区)',
|
|
|
+ 'system', '', NOW(), NULL, NOW(), 0
|
|
|
+)
|
|
|
+ON DUPLICATE KEY UPDATE
|
|
|
+ `menu_name`=VALUES(`menu_name`),
|
|
|
+ `component`=VALUES(`component`),
|
|
|
+ `path`=VALUES(`path`);
|
|
|
+
|
|
|
INSERT INTO `sys_menu` (
|
|
|
`id`, `menu_name`, `parent_id`, `menu_type`, `path`, `component`, `perms`,
|
|
|
`is_frame`, `visible`, `status`, `tenant_no`, `order_num`, `remark`,
|
|
|
@@ -68,17 +89,18 @@ INSERT INTO `sys_menu` (
|
|
|
) VALUES (
|
|
|
'DUTY000000000000000000000000001',
|
|
|
'值班排班',
|
|
|
- '2',
|
|
|
+ 'DUTY000000000000000000000000000',
|
|
|
'C',
|
|
|
- 'duty-schedule',
|
|
|
+ 'schedule',
|
|
|
'/duty/schedule/index',
|
|
|
'duty:schedule:list',
|
|
|
- 1, '1', '1', 'shanxia2.0', 90,
|
|
|
+ 1, '1', '1', 'shanxia2.0', 1,
|
|
|
'日历排班与公开抢班链接',
|
|
|
'system', '', NOW(), NULL, NOW(), 0
|
|
|
)
|
|
|
ON DUPLICATE KEY UPDATE
|
|
|
`menu_name`=VALUES(`menu_name`),
|
|
|
+ `parent_id`=VALUES(`parent_id`),
|
|
|
`component`=VALUES(`component`),
|
|
|
`perms`=VALUES(`perms`),
|
|
|
`path`=VALUES(`path`);
|