crm_menu.sql 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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, 2375,
  11. 'contract', '', 'crm/contract/index', 0, 'Contract'
  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:contract:query', 3, 1, @parentId,
  23. '', '', '', 0
  24. );
  25. INSERT INTO system_menu(
  26. name, permission, type, sort, parent_id,
  27. path, icon, component, status
  28. )
  29. VALUES (
  30. '合同创建', 'crm:contract:create', 3, 2, @parentId,
  31. '', '', '', 0
  32. );
  33. INSERT INTO system_menu(
  34. name, permission, type, sort, parent_id,
  35. path, icon, component, status
  36. )
  37. VALUES (
  38. '合同更新', 'crm:contract:update', 3, 3, @parentId,
  39. '', '', '', 0
  40. );
  41. INSERT INTO system_menu(
  42. name, permission, type, sort, parent_id,
  43. path, icon, component, status
  44. )
  45. VALUES (
  46. '合同删除', 'crm:contract:delete', 3, 4, @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:contract:export', 3, 5, @parentId,
  55. '', '', '', 0
  56. );
  57. -- ----------------------------
  58. -- 线索菜单
  59. -- ----------------------------
  60. -- 菜单 SQL
  61. INSERT INTO system_menu(
  62. name, permission, type, sort, parent_id,
  63. path, icon, component, status, component_name
  64. )
  65. VALUES (
  66. '线索管理', '', 2, 0, 2375,
  67. 'clue', '', 'crm/clue/index', 0, 'CrmClue'
  68. );
  69. -- 按钮父菜单ID
  70. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  71. SELECT @parentId := LAST_INSERT_ID();
  72. -- 按钮 SQL
  73. INSERT INTO system_menu(
  74. name, permission, type, sort, parent_id,
  75. path, icon, component, status
  76. )
  77. VALUES (
  78. '线索查询', 'crm:clue:query', 3, 1, @parentId,
  79. '', '', '', 0
  80. );
  81. INSERT INTO system_menu(
  82. name, permission, type, sort, parent_id,
  83. path, icon, component, status
  84. )
  85. VALUES (
  86. '线索创建', 'crm:clue:create', 3, 2, @parentId,
  87. '', '', '', 0
  88. );
  89. INSERT INTO system_menu(
  90. name, permission, type, sort, parent_id,
  91. path, icon, component, status
  92. )
  93. VALUES (
  94. '线索更新', 'crm:clue:update', 3, 3, @parentId,
  95. '', '', '', 0
  96. );
  97. INSERT INTO system_menu(
  98. name, permission, type, sort, parent_id,
  99. path, icon, component, status
  100. )
  101. VALUES (
  102. '线索删除', 'crm:clue:delete', 3, 4, @parentId,
  103. '', '', '', 0
  104. );
  105. INSERT INTO system_menu(
  106. name, permission, type, sort, parent_id,
  107. path, icon, component, status
  108. )
  109. VALUES (
  110. '线索导出', 'crm:clue:export', 3, 5, @parentId,
  111. '', '', '', 0
  112. );
  113. -- ----------------------------
  114. -- 客户管理菜单
  115. -- ----------------------------
  116. INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (2375, '客户管理', '', 1, 0, 0, '/crm', 'ep:avatar', '', '', 0, b'1', b'1', b'1', '1', '2023-10-20 00:36:13', '1', '2023-10-19 16:37:24', b'0');
  117. -- ----------------------------
  118. -- 回款菜单
  119. -- ----------------------------
  120. -- 菜单 SQL
  121. INSERT INTO system_menu(
  122. name, permission, type, sort, parent_id,
  123. path, icon, component, status, component_name
  124. )
  125. VALUES (
  126. '回款管理', '', 2, 0, 2375,
  127. 'receivable', '', 'crm/receivable/index', 0, 'Receivable'
  128. );
  129. -- 按钮父菜单ID
  130. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  131. SELECT @parentId := LAST_INSERT_ID();
  132. -- 按钮 SQL
  133. INSERT INTO system_menu(
  134. name, permission, type, sort, parent_id,
  135. path, icon, component, status
  136. )
  137. VALUES (
  138. '回款管理查询', 'crm:receivable:query', 3, 1, @parentId,
  139. '', '', '', 0
  140. );
  141. INSERT INTO system_menu(
  142. name, permission, type, sort, parent_id,
  143. path, icon, component, status
  144. )
  145. VALUES (
  146. '回款管理创建', 'crm:receivable:create', 3, 2, @parentId,
  147. '', '', '', 0
  148. );
  149. INSERT INTO system_menu(
  150. name, permission, type, sort, parent_id,
  151. path, icon, component, status
  152. )
  153. VALUES (
  154. '回款管理更新', 'crm:receivable:update', 3, 3, @parentId,
  155. '', '', '', 0
  156. );
  157. INSERT INTO system_menu(
  158. name, permission, type, sort, parent_id,
  159. path, icon, component, status
  160. )
  161. VALUES (
  162. '回款管理删除', 'crm:receivable:delete', 3, 4, @parentId,
  163. '', '', '', 0
  164. );
  165. INSERT INTO system_menu(
  166. name, permission, type, sort, parent_id,
  167. path, icon, component, status
  168. )
  169. VALUES (
  170. '回款管理导出', 'crm:receivable:export', 3, 5, @parentId,
  171. '', '', '', 0
  172. );
  173. -- ----------------------------
  174. -- 回款计划菜单
  175. -- ----------------------------
  176. -- 菜单 SQL
  177. INSERT INTO system_menu(
  178. name, permission, type, sort, parent_id,
  179. path, icon, component, status, component_name
  180. )
  181. VALUES (
  182. '回款计划管理', '', 2, 0, 2375,
  183. 'receivable-plan', '', 'crm/receivablePlan/index', 0, 'ReceivablePlan'
  184. );
  185. -- 按钮父菜单ID
  186. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  187. SELECT @parentId := LAST_INSERT_ID();
  188. -- 按钮 SQL
  189. INSERT INTO system_menu(
  190. name, permission, type, sort, parent_id,
  191. path, icon, component, status
  192. )
  193. VALUES (
  194. '回款计划查询', 'crm:receivable-plan:query', 3, 1, @parentId,
  195. '', '', '', 0
  196. );
  197. INSERT INTO system_menu(
  198. name, permission, type, sort, parent_id,
  199. path, icon, component, status
  200. )
  201. VALUES (
  202. '回款计划创建', 'crm:receivable-plan:create', 3, 2, @parentId,
  203. '', '', '', 0
  204. );
  205. INSERT INTO system_menu(
  206. name, permission, type, sort, parent_id,
  207. path, icon, component, status
  208. )
  209. VALUES (
  210. '回款计划更新', 'crm:receivable-plan:update', 3, 3, @parentId,
  211. '', '', '', 0
  212. );
  213. INSERT INTO system_menu(
  214. name, permission, type, sort, parent_id,
  215. path, icon, component, status
  216. )
  217. VALUES (
  218. '回款计划删除', 'crm:receivable-plan:delete', 3, 4, @parentId,
  219. '', '', '', 0
  220. );
  221. INSERT INTO system_menu(
  222. name, permission, type, sort, parent_id,
  223. path, icon, component, status
  224. )
  225. VALUES (
  226. '回款计划导出', 'crm:receivable-plan:export', 3, 5, @parentId,
  227. '', '', '', 0
  228. );