mencCofig.js 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. export const menuData = [
  2. // {
  3. // optionName: "首页",
  4. // iconClassName: "el-icon-s-home",
  5. // routerName: "Index",
  6. // index: '-1',
  7. // disabled: false
  8. // },
  9. {
  10. optionName: "档案信息",
  11. iconClassName: "el-icon-setting",
  12. index: '0',
  13. disabled: false, // 是否禁用
  14. childList: [
  15. {
  16. optionName: '企业信息',
  17. index: '0-1',
  18. routerName: "firmInfo"
  19. },
  20. {
  21. optionName: '牧场信息',
  22. index: '0-2',
  23. routerName: "pastureInfo"
  24. },
  25. {
  26. optionName: '栋舍信息',
  27. index: '0-3',
  28. routerName: "areaInfo"
  29. },
  30. {
  31. optionName: '员工信息',
  32. index: '0-4',
  33. routerName: "workerInfo"
  34. }
  35. ]
  36. },
  37. {
  38. optionName: "繁殖管理",
  39. iconClassName: "el-icon-setting",
  40. index: '1',
  41. disabled: false, // 是否禁用
  42. childList: [
  43. {
  44. optionName: '种羊档案',
  45. index: '1-1',
  46. routerName: "seedSheepFile"
  47. },
  48. {
  49. optionName: '采精记录',
  50. index: '1-2',
  51. routerName: "collectSeedLog"
  52. },
  53. {
  54. optionName: '查情记录',
  55. index: '1-3',
  56. routerName: "matingSuccLog"
  57. },
  58. {
  59. optionName: '配种记录',
  60. index: '1-4',
  61. routerName: "matingLog"
  62. },
  63. {
  64. optionName: '妊检记录',
  65. index: '1-5',
  66. routerName: "pregnancyTestLog"
  67. },
  68. {
  69. optionName: '分娩记录',
  70. index: '1-6',
  71. routerName: "parturitionLog"
  72. },
  73. {
  74. optionName: '断奶记录',
  75. index: '1-7',
  76. routerName: "weaningLog"
  77. },
  78. {
  79. optionName: '离场记录',
  80. index: '1-8',
  81. routerName: "offFieldLog"
  82. },
  83. {
  84. optionName: '转舍记录',
  85. index: '1-9',
  86. routerName: "shiftFieldLog"
  87. },
  88. ]
  89. },
  90. {
  91. optionName: "防疫管理",
  92. iconClassName: "el-icon-s-flag",
  93. index: '2',
  94. disabled: false,
  95. childList: [
  96. {
  97. optionName: '免疫程序',
  98. index: '2-1',
  99. routerName: "immuneProce"
  100. },
  101. {
  102. optionName: '免疫计划',
  103. index: '2-2',
  104. routerName: "immunePlan"
  105. },
  106. {
  107. optionName: '免疫记录',
  108. index: '2-3',
  109. routerName: "immuneLog"
  110. },
  111. {
  112. optionName: '疾病记录',
  113. index: '2-4',
  114. routerName: "illnessLog"
  115. },
  116. // {
  117. // optionName: '羊杂登记',
  118. // index: '2-5',
  119. // routerName: "goatHasletLog"
  120. // },
  121. ]
  122. },
  123. {
  124. optionName: "生产管理",
  125. iconClassName: "el-icon-s-flag",
  126. index: '3',
  127. disabled: false,
  128. childList: [
  129. {
  130. optionName: '批次管理',
  131. index: '3-1',
  132. routerName: "batch"
  133. },
  134. {
  135. optionName: '生产预警',
  136. index: '3-2',
  137. routerName: "productionWarn"
  138. },
  139. {
  140. optionName: '调拨转舍',
  141. index: '3-3',
  142. routerName: "shiftField"
  143. },
  144. {
  145. optionName: '死淘管理',
  146. index: '3-4',
  147. routerName: "dieWeedOut"
  148. },
  149. {
  150. optionName: '耳标管理',
  151. index: '3-5',
  152. routerName: "earTag"
  153. },
  154. {
  155. optionName: '精细饲喂',
  156. index: '3-6',
  157. routerName: "carefulFeed"
  158. },
  159. {
  160. optionName: '检测报告',
  161. index: '3-7',
  162. routerName: "examiningReport"
  163. }
  164. ]
  165. },
  166. {
  167. optionName: "无害化管理",
  168. iconClassName: "el-icon-s-flag",
  169. index: '4',
  170. disabled: false,
  171. childList: [
  172. {
  173. optionName: '无害化确认',
  174. index: '4-1',
  175. routerName: "harmlessConfirm"
  176. },
  177. {
  178. optionName: '智能提醒',
  179. index: '4-2',
  180. routerName: "intelligentHint"
  181. },
  182. ]
  183. },
  184. {
  185. optionName: "物料管理",
  186. iconClassName: "el-icon-s-flag",
  187. index: '5',
  188. disabled: false,
  189. childList: [
  190. {
  191. optionName: '基础信息',
  192. index: '5-1',
  193. routerName: "basicsInfo"
  194. },
  195. {
  196. optionName: '物料入库',
  197. index: '5-2',
  198. routerName: "materialInStore"
  199. },
  200. {
  201. optionName: '物料出库',
  202. index: '5-3',
  203. routerName: "materialOutStore"
  204. },
  205. {
  206. optionName: '库存盘点',
  207. index: '5-4',
  208. routerName: "storeList"
  209. },
  210. ]
  211. },
  212. {
  213. optionName: "育种管理",
  214. iconClassName: "el-icon-s-flag",
  215. index: '6',
  216. disabled: false,
  217. childList: [
  218. {
  219. optionName: '等级评定',
  220. index: '6-1',
  221. routerName: "gradeAssess"
  222. }
  223. ]
  224. },
  225. {
  226. optionName: "设备管理",
  227. iconClassName: "el-icon-s-flag",
  228. index: '7',
  229. disabled: false,
  230. childList: [
  231. {
  232. optionName: '环境检测',
  233. index: '7-1',
  234. routerName: "environmentMonitoring"
  235. },
  236. {
  237. optionName: '视频监控',
  238. index: '7-2',
  239. routerName: "video"
  240. },
  241. {
  242. optionName: '设备故障',
  243. index: '7-3',
  244. routerName: "deviceFault"
  245. },
  246. ]
  247. },
  248. {
  249. optionName: "开发用模板",
  250. iconClassName: "el-icon-menu",
  251. index: '100',
  252. disabled: false, // 是否禁用
  253. childList: [
  254. {
  255. optionName: '模板 1',
  256. index: '100-1',
  257. routerName: "aa"
  258. },
  259. {
  260. optionName: '普通表格',
  261. index: '100-2',
  262. routerName: "ab"
  263. },
  264. {
  265. optionName: '模板 3',
  266. index: '100-3',
  267. routerName: "ac"
  268. },
  269. {
  270. optionName: '模板 4',
  271. index: '100-4',
  272. routerName: "ad"
  273. },
  274. {
  275. optionName: '模板 5',
  276. index: '100-5',
  277. routerName: "ee"
  278. },
  279. {
  280. optionName: '模板 6',
  281. index: '100-6',
  282. routerName: "af"
  283. }
  284. ]
  285. },
  286. ]
  287. // export default {menuData}
  288. /* 菜单配置 描述 */
  289. const menuData描述 = [
  290. // 有子菜单 并且字菜单分组的
  291. {
  292. oneMenuName: "导航一", // 一级菜单名
  293. iconClassName: "aaa", // element-ui图标名
  294. index: '1', // 唯一标志
  295. childList: [ // 分组的
  296. {
  297. groupName: '组名一',
  298. index: '1-1-1',
  299. list: [
  300. {
  301. optionName: '选项1',
  302. routerName: "home"
  303. },
  304. {}
  305. ],
  306. },
  307. {
  308. groupName: '组名二',
  309. index: '1-1-2',
  310. list: [
  311. {
  312. optionName: '选项1',
  313. routerName: "home"
  314. },
  315. {}
  316. ],
  317. }
  318. ],
  319. },
  320. // 有子菜单 字菜单不分组的
  321. {
  322. oneMenuName: "导航二",
  323. iconClassName: "el-icon-menu",
  324. index: '2',
  325. disabled: false, // 是否禁用
  326. childList: [ // 不分组的
  327. {
  328. optionName: '选项1',
  329. index: '2-1',
  330. routerName: "home"
  331. },
  332. {}
  333. ]
  334. },
  335. // 无子菜单的
  336. {
  337. oneMenuName: "导航三",
  338. iconClassName: "el-icon-document",
  339. routerName: "home",
  340. index: '3',
  341. disabled: false
  342. },
  343. "导航四"
  344. ]