crm_menu.sql 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. -- ----------------------------
  2. -- 客户公海配置
  3. -- ----------------------------
  4. -- 菜单 SQL
  5. INSERT INTO system_menu(
  6. name, permission, type, sort, parent_id,
  7. path, icon, component, status, component_name
  8. )
  9. VALUES (
  10. '客户公海配置', '', 2, 0, 2397,
  11. 'customer-pool-config', 'ep:data-analysis', 'crm/customerPoolConf/index', 0, 'CustomerPoolConf'
  12. );
  13. -- 按钮父菜单ID
  14. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  15. SELECT @parentId := LAST_INSERT_ID();
  16. -- 按钮 SQL
  17. INSERT INTO system_menu(
  18. name, permission, type, sort, parent_id,
  19. path, icon, component, status
  20. )
  21. VALUES (
  22. '客户公海配置保存', 'crm:customer-pool-config:update', 3, 1, @parentId,
  23. '', '', '', 0
  24. );
  25. -- ----------------------------
  26. -- 客户限制配置管理
  27. -- ----------------------------
  28. -- 菜单 SQL
  29. INSERT INTO system_menu(
  30. name, permission, type, sort, parent_id,
  31. path, icon, component, status, component_name
  32. )
  33. VALUES (
  34. '客户限制配置管理', '', 2, 0, 2397,
  35. 'customer-limit-config', '', 'crm/customerLimitConfig/index', 0, 'CrmCustomerLimitConfig'
  36. );
  37. -- 按钮父菜单ID
  38. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  39. SELECT @parentId := LAST_INSERT_ID();
  40. -- 按钮 SQL
  41. INSERT INTO system_menu(
  42. name, permission, type, sort, parent_id,
  43. path, icon, component, status
  44. )
  45. VALUES (
  46. '客户限制配置查询', 'crm:customer-limit-config:query', 3, 1, @parentId,
  47. '', '', '', 0
  48. );
  49. INSERT INTO system_menu(
  50. name, permission, type, sort, parent_id,
  51. path, icon, component, status
  52. )
  53. VALUES (
  54. '客户限制配置创建', 'crm:customer-limit-config:create', 3, 2, @parentId,
  55. '', '', '', 0
  56. );
  57. INSERT INTO system_menu(
  58. name, permission, type, sort, parent_id,
  59. path, icon, component, status
  60. )
  61. VALUES (
  62. '客户限制配置更新', 'crm:customer-limit-config:update', 3, 3, @parentId,
  63. '', '', '', 0
  64. );
  65. INSERT INTO system_menu(
  66. name, permission, type, sort, parent_id,
  67. path, icon, component, status
  68. )
  69. VALUES (
  70. '客户限制配置删除', 'crm:customer-limit-config:delete', 3, 4, @parentId,
  71. '', '', '', 0
  72. );
  73. INSERT INTO system_menu(
  74. name, permission, type, sort, parent_id,
  75. path, icon, component, status
  76. )
  77. VALUES (
  78. '客户限制配置导出', 'crm:customer-limit-config:export', 3, 5, @parentId,
  79. '', '', '', 0
  80. );