mock.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. export const mockData = {
  2. menus: [
  3. {
  4. name: "home",
  5. path: "/home",
  6. meta: { title: "首页", affix: true },
  7. component: "home"
  8. },
  9. {
  10. name: "userCenter",
  11. path: "/usercenter",
  12. meta: { title: "个人信息", hidden: true },
  13. component: "userCenter"
  14. },
  15. {
  16. name: "basic",
  17. path: "/basic",
  18. meta: { title: "基础数据管理", icon: "ri:apps-line" },
  19. redirect: "/basic/supplier",
  20. children: [
  21. {
  22. name: "supplier",
  23. path: "/basic/supplier",
  24. meta: { title: "供应商管理", icon: "ant-design:phone-outlined" },
  25. component: "basic/supplier"
  26. },
  27. {
  28. name: "customer",
  29. path: "/basic/customer",
  30. meta: { title: "客户管理", icon: "garden:customer-lists-fill-26" },
  31. component: "basic/customer"
  32. },
  33. {
  34. name: "tag",
  35. path: "/basic/tag",
  36. meta: { title: "标签管理", icon: "mingcute:tag-line" },
  37. component: "basic/tag"
  38. }
  39. ]
  40. },
  41. {
  42. name: "facerec",
  43. path: "/facerec",
  44. meta: { title: "人脸识别", icon: "tabler:face-id" },
  45. redirect: "/facerec/device",
  46. children: [
  47. {
  48. name: "facerecDevice",
  49. path: "/facerec/device",
  50. meta: { title: "人脸识别-全部设备", icon: "ant-design:code-sandbox-outlined" },
  51. component: "facerec/device"
  52. },
  53. {
  54. name: "facerecPlatformTask",
  55. path: "/facerec/platformTask",
  56. meta: { title: "人脸识别-第三方平台下发任务", icon: "solar:list-arrow-down-bold" },
  57. component: "facerec/platform/task"
  58. },
  59. {
  60. name: "facerecPlatformTaskPush",
  61. path: "/facerec/platformTaskPush",
  62. meta: { title: "人脸识别-第三方平台推送任务", icon: "cil:list-high-priority" },
  63. component: "facerec/platform/push"
  64. }
  65. ]
  66. },
  67. {
  68. name: "passqrcode",
  69. path: "/passqrcode",
  70. meta: { title: "临时访客", icon: "ant-design:qrcode-outlined" },
  71. redirect: "/passqrcode/device",
  72. children: [
  73. {
  74. name: "passqrcodeDevice",
  75. path: "/passqrcode/device",
  76. meta: { title: "临时访客-全部设备", icon: "ant-design:code-sandbox-outlined" },
  77. component: "passqrcode/device"
  78. },
  79. {
  80. name: "passqrcodePlatformTask",
  81. path: "/passqrcode/platformTask",
  82. meta: { title: "临时访客-青岛地铁卡号同步", icon: "mdi:calendar-sync-outline" },
  83. component: "passqrcode/platform/task"
  84. },
  85. {
  86. name: "passqrcodePlatformTaskPush",
  87. path: "/passqrcode/platformTaskPush",
  88. meta: { title: "临时访客-第三方平台推送任务", icon: "cil:list-high-priority" },
  89. component: "passqrcode/platform/push"
  90. }
  91. ]
  92. },
  93. {
  94. name: "tower",
  95. path: "/tower",
  96. meta: { title: "塔基监测", icon: "mingcute:tower-crane-line" },
  97. redirect: "/tower/device",
  98. children: [
  99. {
  100. name: "towerDevice",
  101. path: "/tower/device",
  102. meta: { title: "塔基监测-全部设备", icon: "ant-design:code-sandbox-outlined" },
  103. component: "tower/device"
  104. },
  105. {
  106. name: "towerRecord",
  107. path: "/tower/monitor",
  108. meta: { title: "塔基监测-监测记录", icon: "ant-design:reconciliation-outlined" },
  109. component: "tower/monitor"
  110. },
  111. {
  112. name: "towerWarning",
  113. path: "/tower/warning",
  114. meta: { title: "塔基监测-告警记录", icon: "fluent:text-bullet-list-square-warning-16-regular" },
  115. component: "tower/warning"
  116. }
  117. ]
  118. },
  119. {
  120. name: "env",
  121. path: "/env",
  122. meta: { title: "环境监测", icon: "fluent:earth-leaf-16-regular" },
  123. redirect: "/env/device",
  124. children: [
  125. {
  126. name: "envDevice",
  127. path: "/env/device",
  128. meta: { title: "环境监测-全部设备", icon: "ant-design:code-sandbox-outlined" },
  129. component: "env/device"
  130. },
  131. {
  132. name: "envRecord",
  133. path: "/env/monitor",
  134. meta: { title: "环境监测-监测记录", icon: "ant-design:reconciliation-outlined" },
  135. component: "env/monitor"
  136. }
  137. ]
  138. },
  139. /* ***************************************************************** */
  140. {
  141. name: "dataMock",
  142. path: "/dataMock",
  143. meta: { title: "数据管理与模拟", icon: "majesticons:data-plus-line" },
  144. redirect: "/dataMock/env",
  145. children: [
  146. {
  147. name: "envMock",
  148. path: "/dataMock/env",
  149. meta: { title: "数据管理与模拟-环境监测", icon: "fluent:earth-leaf-16-regular" },
  150. component: "dataMock/env"
  151. },
  152. {
  153. name: "standardMock",
  154. path: "/dataMock/standard",
  155. meta: { title: "数据管理与模拟-标养室监测", icon: "dashicons:dashboard" },
  156. component: "dataMock/standard"
  157. },
  158. {
  159. name: "carwashMock",
  160. path: "/dataMock/carwash",
  161. meta: { title: "数据管理与模拟-车辆冲洗", icon: "map:car-wash" },
  162. component: "dataMock/carwash"
  163. },
  164. {
  165. name: "ugliAiMock",
  166. path: "/dataMock/ugliAi",
  167. meta: { title: "数据管理与模拟-AI识别", icon: "hugeicons:ai-brain-02" },
  168. component: "dataMock/ugliAi"
  169. }
  170. ]
  171. },
  172. {
  173. name: "EasyRun",
  174. path: "/easyRun",
  175. meta: { title: "EasyRun", icon: "fluent-emoji-high-contrast:hammer-and-wrench" },
  176. redirect: "/easyRun/saleOrder",
  177. children: [
  178. {
  179. name: "saleOrder",
  180. path: "/easyRun/saleOrder",
  181. meta: { title: "销售订单", icon: "material-symbols:inactive-order-outline-sharp" },
  182. component: "easyRun/saleOrder"
  183. },
  184. {
  185. name: "purchaseOrder",
  186. path: "/easyRun/purchaseOrder",
  187. meta: { title: "采购订单", icon: "hugeicons:file-01" },
  188. component: "easyRun/purchaseOrder"
  189. }
  190. ]
  191. },
  192. {
  193. name: "warranty",
  194. path: "/warranty",
  195. meta: { title: "质保管理", icon: "streamline-flex:warranty-badge-highlight-remix" },
  196. redirect: "/warranty/warranty",
  197. children: []
  198. },
  199. {
  200. name: "afterSales",
  201. path: "/afterSales",
  202. meta: { title: "售后管理", icon: "icon-park-outline:market" },
  203. redirect: "/afterSales/afterSales",
  204. children: []
  205. }
  206. ],
  207. // 预警
  208. warning: [
  209. // 设备离线,
  210. // 数据异常
  211. {
  212. name: "facerec",
  213. meta: { title: "人脸识别", icon: "tabler:face-id" },
  214. children: [
  215. {
  216. path: "/facerec/device",
  217. meta: { title: "实名制设备" }
  218. },
  219. {
  220. path: "/facerec/tower",
  221. meta: { title: "塔机设备" }
  222. },
  223. {
  224. path: "/facerec/elevator",
  225. meta: { title: "升降机设备" }
  226. }
  227. ]
  228. },
  229. {
  230. name: "towerDevice",
  231. path: "/tower/device",
  232. meta: { title: "塔机监测", icon: "mingcute:tower-crane-line" }
  233. },
  234. {
  235. name: "elevatorDevice",
  236. path: "/elevator/device",
  237. meta: { title: "升降机监测", icon: "icon-park-outline:elevator" }
  238. },
  239. {
  240. name: "envDevice",
  241. path: "/env/device",
  242. meta: { title: "环境监测", icon: "fluent:earth-leaf-16-regular" }
  243. },
  244. {
  245. name: "standardDevice",
  246. path: "/standard/device",
  247. meta: { title: "标养室监测", icon: "dashicons:dashboard" }
  248. },
  249. {
  250. name: "ugliAiDevice",
  251. path: "/ugliAi/device",
  252. meta: { title: "AI识别", icon: "hugeicons:ai-brain-02" }
  253. },
  254. {
  255. name: "carwashDevice",
  256. path: "/carwash/device",
  257. meta: { title: "车辆冲洗", icon: "map:car-wash" }
  258. },
  259. {
  260. name: "smokeDevice",
  261. path: "/smoke/device",
  262. meta: { title: "智能烟感", icon: "cbi:smoke-detector" }
  263. },
  264. {
  265. name: "broadcastDevice",
  266. path: "/broadcast/device",
  267. meta: { title: "智能广播", icon: "ri:broadcast-fill" }
  268. },
  269. ],
  270. // 待办
  271. toDo: [
  272. {
  273. name: "saleOrder",
  274. path: "/easyRun/saleOrder",
  275. meta: { title: "待发布", icon: "Release" }
  276. },
  277. {
  278. name: "broadcast",
  279. path: "/easyRun/device",
  280. meta: { title: "待盘货", icon: "Stock" }
  281. },
  282. {
  283. name: "broadcast",
  284. path: "/easyRun/device",
  285. meta: { title: "待建计划", icon: "pajamas:todo-add" }
  286. },
  287. {
  288. name: "broadcast",
  289. path: "/easyRun/device",
  290. meta: { title: "待实施", icon: "fluent:window-wrench-32-regular" }
  291. },
  292. {
  293. name: "broadcast",
  294. path: "/easyRun/device",
  295. meta: { title: "待验收", icon: "bi:clipboard2-check" }
  296. },
  297. {
  298. name: "broadcast",
  299. path: "/easyRun/device",
  300. meta: { title: "待付款", icon: "mingcute:refund-cny-line" }
  301. },
  302. {
  303. name: "broadcast",
  304. path: "/easyRun/device",
  305. meta: { title: "待收款", icon: "fluent:payment-32-regular" },
  306. },
  307. ],
  308. // 数据模拟
  309. dataMock: [
  310. {
  311. name: "envMock",
  312. path: "/dataMock/env",
  313. meta: { title: "环境监测", icon: "fluent:earth-leaf-16-regular" },
  314. tags: {
  315. formData: {
  316. name: "",
  317. type: ""
  318. },
  319. list: [
  320. { name: "数量过多", type: "danger" },
  321. { name: "分布不均", type: "danger" }
  322. ]
  323. }
  324. },
  325. {
  326. name: "standardMock",
  327. path: "/dataMock/standard",
  328. meta: { title: "标养室监测", icon: "dashicons:dashboard" },
  329. tags: {
  330. formData: {
  331. name: "",
  332. type: ""
  333. },
  334. list: [
  335. { name: "数量不足", type: "danger" },
  336. { name: "时间段缺失", type: "danger" }
  337. ]
  338. }
  339. },
  340. {
  341. name: "carwashMock",
  342. path: "/dataMock/carwash",
  343. meta: { title: "车辆冲洗", icon: "map:car-wash" },
  344. tags: {
  345. formData: {
  346. name: "",
  347. type: ""
  348. },
  349. list: [
  350. { name: "数量过多", type: "danger" },
  351. { name: "分布不均", type: "danger" }
  352. ]
  353. }
  354. },
  355. {
  356. name: "ugliAiMock",
  357. path: "/dataMock/ugliAi",
  358. meta: { title: "AI识别", icon: "hugeicons:ai-brain-02" },
  359. tags: {
  360. formData: {
  361. name: "",
  362. type: ""
  363. },
  364. list: [
  365. { name: "数量不足", type: "danger" },
  366. { name: "时间段缺失", type: "danger" }
  367. ]
  368. }
  369. }
  370. ]
  371. };