archive_menu.sql 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. -- 档案管理菜单(可选:若使用动态菜单,执行本脚本后可在侧栏看到「档案管理」)
  2. -- 执行前请先执行 archive_tables.sql
  3. START TRANSACTION;
  4. DELETE FROM sys_permission WHERE id IN ('ARCHIVE_MENU_ROOT_0001', 'ARCHIVE_MENU_LIST_0001', 'ARCHIVE_MENU_FORM_0001', 'ARCHIVE_MENU_DETAIL_0001');
  5. -- 一级菜单:档案管理
  6. INSERT INTO sys_permission (
  7. id, parent_id, name, url, component, component_name, redirect,
  8. menu_type, perms, perms_type, sort_no, always_show, icon,
  9. is_route, is_leaf, keep_alive, hidden, hide_tab, description,
  10. create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external
  11. ) VALUES (
  12. 'ARCHIVE_MENU_ROOT_0001', '', '档案管理', '/archive', 'layouts/RouteView', NULL, '/archive/account/list',
  13. 0, NULL, '1', 40.00, 0, 'folder',
  14. 1, 0, 0, 0, 0, '档案账号与资质文件管理',
  15. 'admin', NOW(), NULL, NULL, 0, 0, '1', 0
  16. );
  17. -- 子菜单:档案账号列表
  18. INSERT INTO sys_permission (
  19. id, parent_id, name, url, component, component_name, redirect,
  20. menu_type, perms, perms_type, sort_no, always_show, icon,
  21. is_route, is_leaf, keep_alive, hidden, hide_tab, description,
  22. create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external
  23. ) VALUES (
  24. 'ARCHIVE_MENU_LIST_0001', 'ARCHIVE_MENU_ROOT_0001', '档案账号列表', '/archive/account/list', 'archive/ArchiveAccountList', NULL, NULL,
  25. 1, 'archive:account:list', '1', 1.00, 0, 'user',
  26. 1, 1, 0, 0, 0, NULL,
  27. 'admin', NOW(), NULL, NULL, 0, 0, '1', 0
  28. );
  29. -- 子菜单:新建/编辑(hidden,通过列表跳转)
  30. INSERT INTO sys_permission (
  31. id, parent_id, name, url, component, component_name, redirect,
  32. menu_type, perms, perms_type, sort_no, always_show, icon,
  33. is_route, is_leaf, keep_alive, hidden, hide_tab, description,
  34. create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external
  35. ) VALUES (
  36. 'ARCHIVE_MENU_FORM_0001', 'ARCHIVE_MENU_ROOT_0001', '新建/编辑档案子账号', '/archive/account/form', 'archive/ArchiveAccountForm', NULL, NULL,
  37. 1, 'archive:account:add', '1', 2.00, 0, NULL,
  38. 1, 1, 0, 1, 0, NULL,
  39. 'admin', NOW(), NULL, NULL, 0, 0, '1', 0
  40. );
  41. -- 子菜单:档案账号详情(hidden)
  42. INSERT INTO sys_permission (
  43. id, parent_id, name, url, component, component_name, redirect,
  44. menu_type, perms, perms_type, sort_no, always_show, icon,
  45. is_route, is_leaf, keep_alive, hidden, hide_tab, description,
  46. create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external
  47. ) VALUES (
  48. 'ARCHIVE_MENU_DETAIL_0001', 'ARCHIVE_MENU_ROOT_0001', '档案账号详情', '/archive/account/detail', 'archive/ArchiveAccountDetail', NULL, NULL,
  49. 1, 'archive:account:detail', '1', 3.00, 0, NULL,
  50. 1, 1, 0, 1, 0, NULL,
  51. 'admin', NOW(), NULL, NULL, 0, 0, '1', 0
  52. );
  53. COMMIT;