init-front-menu.sql 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. -- ============================================================
  2. -- 添加前台菜单标识字段
  3. -- ============================================================
  4. ALTER TABLE sys_menu ADD is_front VARCHAR2(1) DEFAULT '0';
  5. -- ============================================================
  6. -- 前台菜单初始化SQL
  7. -- ============================================================
  8. -- 前台首页(路由已在constantRoutes中定义)
  9. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  10. VALUES ('首页', 0, 0, '/index', 'front/Home', NULL, 1, 0, 'C', '0', '0', 'front:index', 'dashboard', 'admin', SYSDATE, '前台首页', '1');
  11. -- GIS地图展示
  12. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  13. VALUES ('GIS地图展示', 0, 1, '/gis', 'front/Gis', NULL, 1, 0, 'C', '0', '0', 'front:gis', 'map', 'admin', SYSDATE, 'GIS地图展示', '1');
  14. -- 数据查看
  15. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  16. VALUES ('数据查看', 0, 2, '/data-common', 'front/DataCommon', NULL, 1, 0, 'C', '0', '0', 'front:data:common', 'table', 'admin', SYSDATE, '数据查看', '1');
  17. -- 数据统计
  18. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  19. VALUES ('数据统计', 0, 3, '/data-statistics', 'front/DataStatistics', NULL, 1, 0, 'C', '0', '0', 'front:data:statistics', 'chart', 'admin', SYSDATE, '数据统计', '1');
  20. -- 新安江流域
  21. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  22. VALUES ('新安江流域', 0, 4, '/xaj', 'front/Xaj', NULL, 1, 0, 'C', '0', '0', 'front:xaj', 'component', 'admin', SYSDATE, '新安江流域', '1');
  23. -- 一河三湖
  24. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  25. VALUES ('一河三湖', 0, 5, '/1h3h', 'front/OneThreeLake', NULL, 1, 0, 'C', '0', '0', 'front:lake', 'component', 'admin', SYSDATE, '一河三湖', '1');
  26. -- 引江济太
  27. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  28. VALUES ('引江济太', 0, 6, '/yjjt', 'front/Yjjt', NULL, 1, 0, 'C', '0', '0', 'front:yjjt', 'component', 'admin', SYSDATE, '引江济太', '1');
  29. -- 水葫芦
  30. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  31. VALUES ('水葫芦', 0, 7, '/shl', 'front/Shl', NULL, 1, 0, 'C', '0', '0', 'front:shl', 'component', 'admin', SYSDATE, '水葫芦', '1');
  32. -- 系统管理
  33. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  34. VALUES ('系统管理', 0, 8, '/systemmanage', 'front/SystemManage', NULL, 1, 0, 'C', '0', '0', 'front:system', 'system', 'admin', SYSDATE, '系统管理', '1');
  35. -- 河湖长制
  36. INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, remark, is_front)
  37. VALUES ('河湖长制', 0, 9, '/document', 'front/Document', NULL, 1, 0, 'C', '0', '0', 'front:document', 'documentation', 'admin', SYSDATE, '河湖长制', '1');
  38. COMMIT;