crm_menu.sql 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. -- 菜单 SQL
  2. INSERT INTO system_menu(
  3. name, permission, type, sort, parent_id,
  4. path, icon, component, status, component_name
  5. )
  6. VALUES (
  7. '联系人', '', 2, 0, ${table.parentMenuId},
  8. 'contact', '', 'crm/contact/index', 0, 'Contact'
  9. );
  10. -- 按钮父菜单ID
  11. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  12. SELECT @parentId := LAST_INSERT_ID();
  13. -- 按钮 SQL
  14. INSERT INTO system_menu(
  15. name, permission, type, sort, parent_id,
  16. path, icon, component, status
  17. )
  18. VALUES (
  19. '联系人查询', 'crm:contact:query', 3, 1, @parentId,
  20. '', '', '', 0
  21. );
  22. INSERT INTO system_menu(
  23. name, permission, type, sort, parent_id,
  24. path, icon, component, status
  25. )
  26. VALUES (
  27. '联系人创建', 'crm:contact:create', 3, 2, @parentId,
  28. '', '', '', 0
  29. );
  30. INSERT INTO system_menu(
  31. name, permission, type, sort, parent_id,
  32. path, icon, component, status
  33. )
  34. VALUES (
  35. '联系人更新', 'crm:contact:update', 3, 3, @parentId,
  36. '', '', '', 0
  37. );
  38. INSERT INTO system_menu(
  39. name, permission, type, sort, parent_id,
  40. path, icon, component, status
  41. )
  42. VALUES (
  43. '联系人删除', 'crm:contact:delete', 3, 4, @parentId,
  44. '', '', '', 0
  45. );
  46. INSERT INTO system_menu(
  47. name, permission, type, sort, parent_id,
  48. path, icon, component, status
  49. )
  50. VALUES (
  51. '联系人导出', 'crm:contact:export', 3, 5, @parentId,
  52. '', '', '', 0
  53. );
  54. -- ----------------------------
  55. -- 回款菜单
  56. -- ----------------------------
  57. -- 菜单 SQL
  58. INSERT INTO system_menu(
  59. name, permission, type, sort, parent_id,
  60. path, icon, component, status, component_name
  61. )
  62. VALUES (
  63. '回款管理', '', 2, 0, 2375,
  64. 'receivable', '', 'crm/receivable/index', 0, 'Receivable'
  65. );
  66. -- 按钮父菜单ID
  67. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  68. SELECT @parentId := LAST_INSERT_ID();
  69. -- 按钮 SQL
  70. INSERT INTO system_menu(
  71. name, permission, type, sort, parent_id,
  72. path, icon, component, status
  73. )
  74. VALUES (
  75. '回款管理查询', 'crm:receivable:query', 3, 1, @parentId,
  76. '', '', '', 0
  77. );
  78. INSERT INTO system_menu(
  79. name, permission, type, sort, parent_id,
  80. path, icon, component, status
  81. )
  82. VALUES (
  83. '回款管理创建', 'crm:receivable:create', 3, 2, @parentId,
  84. '', '', '', 0
  85. );
  86. INSERT INTO system_menu(
  87. name, permission, type, sort, parent_id,
  88. path, icon, component, status
  89. )
  90. VALUES (
  91. '回款管理更新', 'crm:receivable:update', 3, 3, @parentId,
  92. '', '', '', 0
  93. );
  94. INSERT INTO system_menu(
  95. name, permission, type, sort, parent_id,
  96. path, icon, component, status
  97. )
  98. VALUES (
  99. '回款管理删除', 'crm:receivable:delete', 3, 4, @parentId,
  100. '', '', '', 0
  101. );
  102. INSERT INTO system_menu(
  103. name, permission, type, sort, parent_id,
  104. path, icon, component, status
  105. )
  106. VALUES (
  107. '回款管理导出', 'crm:receivable:export', 3, 5, @parentId,
  108. '', '', '', 0
  109. );
  110. -- ----------------------------
  111. -- 回款计划菜单
  112. -- ----------------------------
  113. -- 菜单 SQL
  114. INSERT INTO system_menu(
  115. name, permission, type, sort, parent_id,
  116. path, icon, component, status, component_name
  117. )
  118. VALUES (
  119. '回款计划管理', '', 2, 0, 2375,
  120. 'receivable-plan', '', 'crm/receivablePlan/index', 0, 'ReceivablePlan'
  121. );
  122. -- 按钮父菜单ID
  123. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  124. SELECT @parentId := LAST_INSERT_ID();
  125. -- 按钮 SQL
  126. INSERT INTO system_menu(
  127. name, permission, type, sort, parent_id,
  128. path, icon, component, status
  129. )
  130. VALUES (
  131. '回款计划查询', 'crm:receivable-plan:query', 3, 1, @parentId,
  132. '', '', '', 0
  133. );
  134. INSERT INTO system_menu(
  135. name, permission, type, sort, parent_id,
  136. path, icon, component, status
  137. )
  138. VALUES (
  139. '回款计划创建', 'crm:receivable-plan:create', 3, 2, @parentId,
  140. '', '', '', 0
  141. );
  142. INSERT INTO system_menu(
  143. name, permission, type, sort, parent_id,
  144. path, icon, component, status
  145. )
  146. VALUES (
  147. '回款计划更新', 'crm:receivable-plan:update', 3, 3, @parentId,
  148. '', '', '', 0
  149. );
  150. INSERT INTO system_menu(
  151. name, permission, type, sort, parent_id,
  152. path, icon, component, status
  153. )
  154. VALUES (
  155. '回款计划删除', 'crm:receivable-plan:delete', 3, 4, @parentId,
  156. '', '', '', 0
  157. );
  158. INSERT INTO system_menu(
  159. name, permission, type, sort, parent_id,
  160. path, icon, component, status
  161. )
  162. VALUES (
  163. '回款计划导出', 'crm:receivable-plan:export', 3, 5, @parentId,
  164. '', '', '', 0
  165. );