routes.ts 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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. },
  87. {
  88. path: '/device',
  89. name: 'device',
  90. icon: 'crown',
  91. routes: [
  92. {
  93. path: '/device',
  94. redirect: '/device/product',
  95. },
  96. {
  97. path: '/device/product',
  98. name: 'product',
  99. icon: 'smile',
  100. component: './device/Product',
  101. },
  102. {
  103. path: '/device/category',
  104. name: 'category',
  105. icon: 'smile',
  106. component: './device/Category',
  107. },
  108. {
  109. hideInMenu: true,
  110. path: '/device/product/detail/:id',
  111. name: 'product-detail',
  112. icon: 'smile',
  113. component: './device/Product/Detail',
  114. },
  115. {
  116. path: '/device/instance',
  117. name: 'instance',
  118. icon: 'smile',
  119. component: './device/Instance',
  120. },
  121. {
  122. hideInMenu: true,
  123. path: '/device/instance/detail/:id',
  124. name: 'instance-detail',
  125. icon: 'smile',
  126. component: './device/Instance/Detail',
  127. },
  128. {
  129. path: '/device/command',
  130. name: 'command',
  131. icon: 'smile',
  132. component: './device/Command',
  133. },
  134. {
  135. path: '/device/firmware',
  136. name: 'firmware',
  137. icon: 'smile',
  138. component: './device/Firmware',
  139. },
  140. {
  141. path: '/device/alarm',
  142. name: 'alarm',
  143. icon: 'smile',
  144. component: './device/Alarm',
  145. },
  146. ],
  147. },
  148. {
  149. path: '/link',
  150. name: 'link',
  151. icon: 'crown',
  152. routes: [
  153. {
  154. path: '/link',
  155. redirect: '/link/certificate',
  156. },
  157. {
  158. path: '/link/certificate',
  159. name: 'certificate',
  160. icon: 'smile',
  161. component: './link/Certificate',
  162. },
  163. {
  164. path: '/link/protocol',
  165. name: 'protocol',
  166. icon: 'smile',
  167. component: './link/Protocol',
  168. },
  169. {
  170. path: 'link/type',
  171. name: 'type',
  172. icon: 'smile',
  173. component: './link/Type',
  174. },
  175. {
  176. path: '/link/gateway',
  177. name: 'gateway',
  178. icon: 'smile',
  179. component: './link/Gateway',
  180. },
  181. {
  182. path: '/link/opcua',
  183. name: 'opcua',
  184. icon: 'smile',
  185. component: './link/Opcua',
  186. },
  187. ],
  188. },
  189. {
  190. path: '/notice',
  191. name: 'notice',
  192. icon: 'crown',
  193. routes: [
  194. {
  195. path: '/notice',
  196. redirect: '/notice/config',
  197. },
  198. {
  199. path: '/notice/config',
  200. name: 'config',
  201. icon: 'smile',
  202. component: './notice/Config',
  203. },
  204. {
  205. path: '/notice/template',
  206. name: 'template',
  207. icon: 'smile',
  208. component: './notice/Template',
  209. },
  210. ],
  211. },
  212. {
  213. path: '/rule-engine',
  214. name: 'rule-engine',
  215. icon: 'crown',
  216. routes: [
  217. {
  218. path: '/rule-engine',
  219. redirect: '/rule-engine/instance',
  220. },
  221. {
  222. path: '/rule-engine/instance',
  223. name: 'instance',
  224. icon: 'smile',
  225. component: './rule-engine/Instance',
  226. },
  227. {
  228. path: '/rule-engine/sqlRule',
  229. name: 'sqlRule',
  230. icon: 'smile',
  231. component: './rule-engine/SQLRule',
  232. },
  233. {
  234. path: '/rule-engine/scene',
  235. name: 'scene',
  236. icon: 'smile',
  237. component: './rule-engine/Scene',
  238. },
  239. ],
  240. },
  241. {
  242. path: '/visualization',
  243. name: 'visualization',
  244. icon: 'crown',
  245. routes: [
  246. {
  247. path: '/visualization',
  248. redirect: '/visualization/category',
  249. },
  250. {
  251. path: '/visualization/category',
  252. name: 'category',
  253. icon: 'smile',
  254. component: './visualization/Category',
  255. },
  256. {
  257. path: '/visualization/screen',
  258. name: 'screen',
  259. icon: 'smile',
  260. component: './visualization/Screen',
  261. },
  262. {
  263. path: '/visualization/configuration',
  264. name: 'configuration',
  265. icon: 'smile',
  266. component: './visualization/Configuration',
  267. },
  268. ],
  269. },
  270. {
  271. path: '/simulator',
  272. name: 'simulator',
  273. icon: 'crown',
  274. routes: [
  275. {
  276. path: '/simulator',
  277. redirect: '/simulator/device',
  278. },
  279. {
  280. path: '/simulator/device',
  281. name: 'device',
  282. icon: 'smile',
  283. component: './simulator/Device',
  284. },
  285. ],
  286. },
  287. {
  288. path: '/log',
  289. name: 'log',
  290. icon: 'crown',
  291. routes: [
  292. {
  293. path: '/log',
  294. redirect: '/log/access',
  295. },
  296. {
  297. path: '/log/access',
  298. name: 'access',
  299. icon: 'smile',
  300. component: './log/Access',
  301. },
  302. {
  303. path: '/log/system',
  304. name: 'system',
  305. icon: 'smile',
  306. component: './log/System',
  307. },
  308. ],
  309. },
  310. {
  311. path: '/cloud',
  312. name: 'cloud',
  313. icon: 'crown',
  314. routes: [
  315. {
  316. path: '/cloud',
  317. redirect: '/cloud/duer',
  318. },
  319. {
  320. path: '/cloud/dueros',
  321. name: 'DuerOS',
  322. icon: 'smile',
  323. component: './cloud/DuerOS',
  324. },
  325. {
  326. path: '/cloud/aliyun',
  327. name: 'aliyun',
  328. icon: 'smile',
  329. component: './cloud/Aliyun',
  330. },
  331. {
  332. path: '/cloud/onenet',
  333. name: 'onenet',
  334. icon: 'smile',
  335. component: './cloud/Onenet',
  336. },
  337. {
  338. path: '/cloud/ctwing',
  339. name: 'ctwing',
  340. icon: 'smile',
  341. component: './cloud/Ctwing',
  342. },
  343. ],
  344. },
  345. {
  346. path: '/media',
  347. name: 'media',
  348. icon: 'crown',
  349. routes: [
  350. {
  351. path: '/media',
  352. redirect: '/media/config',
  353. },
  354. {
  355. path: '/media/config',
  356. name: 'config',
  357. icon: 'smile',
  358. component: './media/Config',
  359. },
  360. {
  361. path: '/media/device',
  362. name: 'device',
  363. icon: 'smile',
  364. component: './media/Device',
  365. },
  366. {
  367. path: '/media/reveal',
  368. name: 'reveal',
  369. icon: 'smile',
  370. component: './media/Reveal',
  371. },
  372. {
  373. path: '/media/cascade',
  374. name: 'cascade',
  375. icon: 'smile',
  376. component: './media/Cascade',
  377. },
  378. ],
  379. },
  380. {
  381. path: '/edge',
  382. name: 'edge',
  383. icon: 'crown',
  384. routes: [
  385. {
  386. path: '/edge',
  387. redirect: '/edge/product',
  388. },
  389. {
  390. path: '/edge/product',
  391. name: 'product',
  392. icon: 'smile',
  393. component: './edge/Product',
  394. },
  395. {
  396. path: '/edge/device',
  397. name: 'device',
  398. icon: 'smile',
  399. component: './edge/Device',
  400. },
  401. ],
  402. },
  403. {
  404. path: '/',
  405. redirect: '/analysis',
  406. },
  407. {
  408. component: './404',
  409. },
  410. ];