1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| -- ----------------------------
| -- 1、发票管理主菜单
| -- ----------------------------
| 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, remark)
| values('发票管理', '1', '10', 'invoice', 'system/invoice/index', 1, 0, 'C', '0', '0', 'system:invoice:list', 'edit', 'admin', sysdate(), '发票申请管理菜单');
|
| -- 获取刚刚插入的菜单ID (适用于MySQL)
| set @parentId = LAST_INSERT_ID();
|
| -- ----------------------------
| -- 2、发票管理相关按钮权限
| -- ----------------------------
| -- 查询权限
| 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, remark)
| values('发票查询', @parentId, '1', '', '', 1, 0, 'F', '0', '0', 'system:invoice:query', '#', 'admin', sysdate(), '');
|
| -- 修改/审核权限
| 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, remark)
| values('发票审核', @parentId, '2', '', '', 1, 0, 'F', '0', '0', 'system:invoice:edit', '#', 'admin', sysdate(), '');
|
| -- 删除权限
| 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, remark)
| values('发票删除', @parentId, '3', '', '', 1, 0, 'F', '0', '0', 'system:invoice:remove', '#', 'admin', sysdate(), '');
|
| -- 导出权限
| 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, remark)
| values('发票导出', @parentId, '4', '', '', 1, 0, 'F', '0', '0', 'system:invoice:export', '#', 'admin', sysdate(), '');
|
|