routes.ts 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. path: '/user',
  8. routes: [
  9. {
  10. name: 'login',
  11. path: '/user/login',
  12. component: './user/Login',
  13. },
  14. ],
  15. },
  16. ],
  17. },
  18. {
  19. path: '/analysis',
  20. name: 'analysis',
  21. icon: 'smile',
  22. component: './Analysis',
  23. },
  24. {
  25. path: '/system',
  26. name: 'system',
  27. icon: 'crown',
  28. routes: [
  29. {
  30. path: '/system',
  31. redirect: '/system/user',
  32. },
  33. {
  34. path: '/system/user',
  35. name: 'user',
  36. icon: 'smile',
  37. access: 'user',
  38. component: './system/User',
  39. },
  40. {
  41. path: '/system/role',
  42. name: 'role',
  43. icon: 'smile',
  44. access: 'role',
  45. component: './system/Role',
  46. },
  47. {
  48. path: '/system/permission',
  49. name: 'permission',
  50. icon: 'smile',
  51. component: './system/Permission',
  52. },
  53. {
  54. path: '/system/org',
  55. name: 'org',
  56. icon: 'smile',
  57. access: 'organization',
  58. component: './system/Org',
  59. },
  60. {
  61. path: '/system/open-api',
  62. name: 'open-api',
  63. icon: 'smile',
  64. component: './system/OpenAPI',
  65. },
  66. {
  67. path: '/system/tenant',
  68. name: 'tenant',
  69. icon: 'smile',
  70. component: './system/Tenant',
  71. },
  72. {
  73. hideInMenu: true,
  74. path: '/system/tenant/detail/:id',
  75. name: 'tenant-detail',
  76. icon: 'smile',
  77. component: './system/Tenant/Detail',
  78. },
  79. {
  80. path: '/system/datasource',
  81. name: 'datasource',
  82. icon: 'smile',
  83. component: './system/DataSource',
  84. },
  85. {
  86. path: '/system/department',
  87. name: 'department',
  88. icon: 'smile',
  89. component: './system/Department',
  90. },
  91. {
  92. hideInMenu: true,
  93. path: '/system/department/:id/assets',
  94. name: 'Assets',
  95. icon: 'smile',
  96. component: './system/Department/Assets',
  97. },
  98. {
  99. hideInMenu: true,
  100. path: '/system/department/:id/user',
  101. name: 'Member',
  102. icon: 'smile',
  103. component: './system/Department/Member',
  104. },
  105. ],
  106. },
  107. {
  108. path: '/device',
  109. name: 'device',
  110. icon: 'crown',
  111. routes: [
  112. {
  113. path: '/device',
  114. redirect: '/device/product',
  115. },
  116. {
  117. path: '/device/product',
  118. name: 'product',
  119. icon: 'smile',
  120. component: './device/Product',
  121. },
  122. {
  123. path: '/device/category',
  124. name: 'category',
  125. icon: 'smile',
  126. component: './device/Category',
  127. },
  128. {
  129. hideInMenu: true,
  130. path: '/device/product/detail/:id',
  131. name: 'product-detail',
  132. icon: 'smile',
  133. component: './device/Product/Detail',
  134. },
  135. {
  136. path: '/device/instance',
  137. name: 'instance',
  138. icon: 'smile',
  139. component: './device/Instance',
  140. },
  141. {
  142. hideInMenu: true,
  143. path: '/device/instance/detail/:id',
  144. name: 'instance-detail',
  145. icon: 'smile',
  146. component: './device/Instance/Detail',
  147. },
  148. {
  149. path: '/device/command',
  150. name: 'command',
  151. icon: 'smile',
  152. component: './device/Command',
  153. },
  154. {
  155. path: '/device/firmware',
  156. name: 'firmware',
  157. icon: 'smile',
  158. component: './device/Firmware',
  159. },
  160. {
  161. hideInMenu: true,
  162. path: '/device/firmware/detail/:id',
  163. name: 'firmware-detail',
  164. icon: 'smile',
  165. component: './device/Firmware/Detail',
  166. },
  167. {
  168. path: '/device/alarm',
  169. name: 'alarm',
  170. icon: 'smile',
  171. component: './device/Alarm',
  172. },
  173. {
  174. path: '/device/location',
  175. name: 'location',
  176. icon: 'smile',
  177. component: './device/Location',
  178. },
  179. ],
  180. },
  181. {
  182. path: '/link',
  183. name: 'link',
  184. icon: 'crown',
  185. routes: [
  186. {
  187. path: '/link',
  188. redirect: '/link/certificate',
  189. },
  190. {
  191. path: '/link/certificate',
  192. name: 'certificate',
  193. icon: 'smile',
  194. component: './link/Certificate',
  195. },
  196. {
  197. path: '/link/protocol',
  198. name: 'protocol',
  199. icon: 'smile',
  200. component: './link/Protocol',
  201. },
  202. {
  203. path: 'link/type',
  204. name: 'type',
  205. icon: 'smile',
  206. component: './link/Type',
  207. },
  208. {
  209. path: '/link/gateway',
  210. name: 'gateway',
  211. icon: 'smile',
  212. component: './link/Gateway',
  213. },
  214. {
  215. path: '/link/opcua',
  216. name: 'opcua',
  217. icon: 'smile',
  218. component: './link/Opcua',
  219. },
  220. ],
  221. },
  222. {
  223. path: '/notice',
  224. name: 'notice',
  225. icon: 'crown',
  226. routes: [
  227. {
  228. path: '/notice',
  229. redirect: '/notice/config',
  230. },
  231. {
  232. path: '/notice/config',
  233. name: 'config',
  234. icon: 'smile',
  235. component: './notice/Config',
  236. },
  237. {
  238. path: '/notice/template',
  239. name: 'template',
  240. icon: 'smile',
  241. component: './notice/Template',
  242. },
  243. ],
  244. },
  245. {
  246. path: '/rule-engine',
  247. name: 'rule-engine',
  248. icon: 'crown',
  249. routes: [
  250. {
  251. path: '/rule-engine',
  252. redirect: '/rule-engine/instance',
  253. },
  254. {
  255. path: '/rule-engine/instance',
  256. name: 'instance',
  257. icon: 'smile',
  258. component: './rule-engine/Instance',
  259. },
  260. {
  261. path: '/rule-engine/sqlRule',
  262. name: 'sqlRule',
  263. icon: 'smile',
  264. component: './rule-engine/SQLRule',
  265. },
  266. {
  267. path: '/rule-engine/scene',
  268. name: 'scene',
  269. icon: 'smile',
  270. component: './rule-engine/Scene',
  271. },
  272. ],
  273. },
  274. {
  275. path: '/visualization',
  276. name: 'visualization',
  277. icon: 'crown',
  278. routes: [
  279. {
  280. path: '/visualization',
  281. redirect: '/visualization/category',
  282. },
  283. {
  284. path: '/visualization/category',
  285. name: 'category',
  286. icon: 'smile',
  287. component: './visualization/Category',
  288. },
  289. {
  290. path: '/visualization/screen',
  291. name: 'screen',
  292. icon: 'smile',
  293. component: './visualization/Screen',
  294. },
  295. {
  296. path: '/visualization/configuration',
  297. name: 'configuration',
  298. icon: 'smile',
  299. component: './visualization/Configuration',
  300. },
  301. ],
  302. },
  303. {
  304. path: '/simulator',
  305. name: 'simulator',
  306. icon: 'crown',
  307. routes: [
  308. {
  309. path: '/simulator',
  310. redirect: '/simulator/device',
  311. },
  312. {
  313. path: '/simulator/device',
  314. name: 'device',
  315. icon: 'smile',
  316. component: './simulator/Device',
  317. },
  318. ],
  319. },
  320. {
  321. path: '/log',
  322. name: 'log',
  323. icon: 'crown',
  324. routes: [
  325. {
  326. path: '/log',
  327. redirect: '/log/access',
  328. },
  329. {
  330. path: '/log/access',
  331. name: 'access',
  332. icon: 'smile',
  333. component: './log/Access',
  334. },
  335. {
  336. path: '/log/system',
  337. name: 'system',
  338. icon: 'smile',
  339. component: './log/System',
  340. },
  341. ],
  342. },
  343. {
  344. path: '/cloud',
  345. name: 'cloud',
  346. icon: 'crown',
  347. routes: [
  348. {
  349. path: '/cloud',
  350. redirect: '/cloud/duer',
  351. },
  352. {
  353. path: '/cloud/dueros',
  354. name: 'DuerOS',
  355. icon: 'smile',
  356. component: './cloud/DuerOS',
  357. },
  358. {
  359. path: '/cloud/aliyun',
  360. name: 'aliyun',
  361. icon: 'smile',
  362. component: './cloud/Aliyun',
  363. },
  364. {
  365. path: '/cloud/onenet',
  366. name: 'onenet',
  367. icon: 'smile',
  368. component: './cloud/Onenet',
  369. },
  370. {
  371. path: '/cloud/ctwing',
  372. name: 'ctwing',
  373. icon: 'smile',
  374. component: './cloud/Ctwing',
  375. },
  376. ],
  377. },
  378. {
  379. path: '/media',
  380. name: 'media',
  381. icon: 'crown',
  382. routes: [
  383. {
  384. path: '/media',
  385. redirect: '/media/config',
  386. },
  387. {
  388. path: '/media/config',
  389. name: 'config',
  390. icon: 'smile',
  391. component: './media/Config',
  392. },
  393. {
  394. path: '/media/device',
  395. name: 'device',
  396. icon: 'smile',
  397. component: './media/Device',
  398. },
  399. {
  400. path: '/media/reveal',
  401. name: 'reveal',
  402. icon: 'smile',
  403. component: './media/Reveal',
  404. },
  405. {
  406. path: '/media/cascade',
  407. name: 'cascade',
  408. icon: 'smile',
  409. component: './media/Cascade',
  410. },
  411. ],
  412. },
  413. {
  414. path: '/edge',
  415. name: 'edge',
  416. icon: 'crown',
  417. routes: [
  418. {
  419. path: '/edge',
  420. redirect: '/edge/product',
  421. },
  422. {
  423. path: '/edge/product',
  424. name: 'product',
  425. icon: 'smile',
  426. component: './edge/Product',
  427. },
  428. {
  429. path: '/edge/device',
  430. name: 'device',
  431. icon: 'smile',
  432. component: './edge/Device',
  433. },
  434. ],
  435. },
  436. {
  437. path: '/',
  438. redirect: '/analysis',
  439. },
  440. {
  441. component: './404',
  442. },
  443. ];