crm_menu.sql 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. -- 菜单 SQL
  117. INSERT INTO system_menu(
  118. name, permission, type, sort, parent_id,
  119. path, icon, component, status, component_name
  120. )
  121. VALUES (
  122. '商机管理', '', 2, 0, '',
  123. 'business', '', 'crm/business/index', 0, 'CrmBusiness'
  124. );
  125. -- 按钮父菜单ID
  126. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  127. SELECT @parentId := LAST_INSERT_ID();
  128. -- 按钮 SQL
  129. INSERT INTO system_menu(
  130. name, permission, type, sort, parent_id,
  131. path, icon, component, status
  132. )
  133. VALUES (
  134. '商机查询', 'crm:business:query', 3, 1, @parentId,
  135. '', '', '', 0
  136. );
  137. INSERT INTO system_menu(
  138. name, permission, type, sort, parent_id,
  139. path, icon, component, status
  140. )
  141. VALUES (
  142. '商机创建', 'crm:business:create', 3, 2, @parentId,
  143. '', '', '', 0
  144. );
  145. INSERT INTO system_menu(
  146. name, permission, type, sort, parent_id,
  147. path, icon, component, status
  148. )
  149. VALUES (
  150. '商机更新', 'crm:business:update', 3, 3, @parentId,
  151. '', '', '', 0
  152. );
  153. INSERT INTO system_menu(
  154. name, permission, type, sort, parent_id,
  155. path, icon, component, status
  156. )
  157. VALUES (
  158. '商机删除', 'crm:business:delete', 3, 4, @parentId,
  159. '', '', '', 0
  160. );
  161. INSERT INTO system_menu(
  162. name, permission, type, sort, parent_id,
  163. path, icon, component, status
  164. )
  165. VALUES (
  166. '商机导出', 'crm:business:export', 3, 5, @parentId,
  167. '', '', '', 0
  168. );
  169. -- ----------------------------
  170. -- 客户管理菜单
  171. -- ----------------------------
  172. 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');
  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', '', 'crm/receivable/index', 0, 'Receivable'
  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: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: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: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: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:export', 3, 5, @parentId,
  227. '', '', '', 0
  228. );
  229. -- ----------------------------
  230. -- 回款计划菜单
  231. -- ----------------------------
  232. -- 菜单 SQL
  233. INSERT INTO system_menu(
  234. name, permission, type, sort, parent_id,
  235. path, icon, component, status, component_name
  236. )
  237. VALUES (
  238. '回款计划管理', '', 2, 0, 2375,
  239. 'receivable-plan', '', 'crm/receivablePlan/index', 0, 'ReceivablePlan'
  240. );
  241. -- 按钮父菜单ID
  242. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  243. SELECT @parentId := LAST_INSERT_ID();
  244. -- 按钮 SQL
  245. INSERT INTO system_menu(
  246. name, permission, type, sort, parent_id,
  247. path, icon, component, status
  248. )
  249. VALUES (
  250. '回款计划查询', 'crm:receivable-plan:query', 3, 1, @parentId,
  251. '', '', '', 0
  252. );
  253. INSERT INTO system_menu(
  254. name, permission, type, sort, parent_id,
  255. path, icon, component, status
  256. )
  257. VALUES (
  258. '回款计划创建', 'crm:receivable-plan:create', 3, 2, @parentId,
  259. '', '', '', 0
  260. );
  261. INSERT INTO system_menu(
  262. name, permission, type, sort, parent_id,
  263. path, icon, component, status
  264. )
  265. VALUES (
  266. '回款计划更新', 'crm:receivable-plan:update', 3, 3, @parentId,
  267. '', '', '', 0
  268. );
  269. INSERT INTO system_menu(
  270. name, permission, type, sort, parent_id,
  271. path, icon, component, status
  272. )
  273. VALUES (
  274. '回款计划删除', 'crm:receivable-plan:delete', 3, 4, @parentId,
  275. '', '', '', 0
  276. );
  277. INSERT INTO system_menu(
  278. name, permission, type, sort, parent_id,
  279. path, icon, component, status
  280. )
  281. VALUES (
  282. '回款计划导出', 'crm:receivable-plan:export', 3, 5, @parentId,
  283. '', '', '', 0
  284. );