routers.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. import { resultSuccess } from '../_util';
  2. const list = [
  3. {
  4. path: 'system-config',
  5. name: 'system-config',
  6. component: 'LAYOUT',
  7. redirect: null,
  8. meta: {
  9. icon: 'ApartmentOutlined',
  10. title: '系统设置',
  11. noCache: false,
  12. hidden: false,
  13. query: '',
  14. isFrame: '1',
  15. frameSrc: null,
  16. status: '0',
  17. isRoot: false,
  18. alwaysShow: false,
  19. },
  20. children: [
  21. {
  22. path: 'scene-manage',
  23. name: 'scene-manage',
  24. component: '/system-config/scene-manage/SceneManage',
  25. redirect: null,
  26. meta: {
  27. icon: '',
  28. title: '场景管理',
  29. noCache: false,
  30. hidden: false,
  31. query: '',
  32. isFrame: '1',
  33. frameSrc: null,
  34. status: '0',
  35. isRoot: false,
  36. alwaysShow: false,
  37. },
  38. children: null,
  39. },
  40. {
  41. path: 'template',
  42. name: 'system-config/template',
  43. component: '/system-config/template/TemplateManager',
  44. redirect: null,
  45. meta: {
  46. icon: '',
  47. title: '模板管理',
  48. noCache: false,
  49. hidden: false,
  50. query: '',
  51. isFrame: '1',
  52. frameSrc: null,
  53. status: '0',
  54. isRoot: false,
  55. alwaysShow: false,
  56. },
  57. children: null,
  58. },
  59. {
  60. path: 'scene-layout',
  61. name: 'scene-layout',
  62. component: '/system-config/scene-layout/SceneLayout',
  63. redirect: null,
  64. meta: {
  65. icon: '',
  66. title: '场景布局',
  67. noCache: false,
  68. hidden: true,
  69. query: '',
  70. isFrame: '1',
  71. frameSrc: null,
  72. status: '0',
  73. isRoot: false,
  74. alwaysShow: false,
  75. },
  76. children: null,
  77. },
  78. ],
  79. },
  80. {
  81. path: '/page-config',
  82. name: 'page-config',
  83. component: 'LAYOUT',
  84. redirect: null,
  85. meta: {
  86. icon: 'ApartmentOutlined',
  87. title: '主页配置',
  88. noCache: false,
  89. hidden: false,
  90. query: '',
  91. isFrame: '1',
  92. frameSrc: null,
  93. status: '0',
  94. isRoot: false,
  95. alwaysShow: false,
  96. },
  97. children: [
  98. {
  99. path: 'layout',
  100. name: 'page-layout',
  101. component: '/page-config/PageConfig',
  102. redirect: null,
  103. meta: {
  104. icon: '',
  105. title: '主页布局',
  106. noCache: false,
  107. hidden: false,
  108. query: '',
  109. isFrame: '1',
  110. frameSrc: null,
  111. status: '0',
  112. isRoot: false,
  113. alwaysShow: false,
  114. },
  115. children: null,
  116. },
  117. {
  118. path: 'config',
  119. name: 'layout-config',
  120. component: '/page-config/ConfigEdit',
  121. redirect: null,
  122. meta: {
  123. icon: '',
  124. title: '主页配置',
  125. noCache: false,
  126. hidden: false,
  127. query: '',
  128. isFrame: '1',
  129. frameSrc: null,
  130. status: '0',
  131. isRoot: false,
  132. alwaysShow: false,
  133. },
  134. children: null,
  135. },
  136. ],
  137. },
  138. {
  139. path: '/dashboard',
  140. name: 'dashboard',
  141. component: 'LAYOUT',
  142. redirect: '/dashboard/console',
  143. meta: {
  144. icon: 'DashboardOutlined',
  145. title: 'Dashboard',
  146. noCache: false,
  147. hidden: false,
  148. query: null,
  149. isFrame: '1',
  150. frameSrc: null,
  151. status: '0',
  152. isRoot: false,
  153. alwaysShow: false,
  154. },
  155. children: [
  156. {
  157. path: 'console',
  158. name: 'dashboard_console',
  159. component: '/dashboard/console/console',
  160. redirect: null,
  161. meta: {
  162. icon: null,
  163. title: '主控台',
  164. noCache: false,
  165. hidden: false,
  166. query: null,
  167. isFrame: '1',
  168. frameSrc: null,
  169. status: '0',
  170. isRoot: false,
  171. alwaysShow: false,
  172. },
  173. children: null,
  174. },
  175. ],
  176. },
  177. {
  178. path: '/map-config',
  179. name: 'map-config',
  180. component: 'LAYOUT',
  181. redirect: null,
  182. meta: {
  183. icon: 'PictureOutlined',
  184. title: '地图配置',
  185. noCache: false,
  186. hidden: false,
  187. query: '',
  188. isFrame: '1',
  189. frameSrc: null,
  190. status: '0',
  191. isRoot: false,
  192. alwaysShow: false,
  193. },
  194. children: [
  195. {
  196. path: 'layout',
  197. name: 'map-layout',
  198. component: '/map-config/mini-map/MiniMapConfig',
  199. redirect: null,
  200. meta: {
  201. icon: '',
  202. title: '地图布局',
  203. noCache: false,
  204. hidden: false,
  205. query: '',
  206. isFrame: '1',
  207. frameSrc: null,
  208. status: '0',
  209. isRoot: false,
  210. alwaysShow: false,
  211. },
  212. children: null,
  213. },
  214. ],
  215. },
  216. {
  217. path: '/cameras',
  218. name: 'cameras',
  219. component: 'LAYOUT',
  220. redirect: null,
  221. meta: {
  222. icon: 'CameraOutlined',
  223. title: '相机管理',
  224. noCache: false,
  225. hidden: false,
  226. query: '',
  227. isFrame: '1',
  228. frameSrc: null,
  229. status: '0',
  230. isRoot: false,
  231. alwaysShow: false,
  232. },
  233. children: [
  234. {
  235. path: 'overview',
  236. name: 'camera_overview',
  237. component: '/cameras/overview/CamerasOverview',
  238. redirect: null,
  239. meta: {
  240. icon: '',
  241. title: '相机配置',
  242. noCache: false,
  243. hidden: false,
  244. query: '',
  245. isFrame: '1',
  246. frameSrc: null,
  247. status: '0',
  248. isRoot: false,
  249. alwaysShow: false,
  250. },
  251. children: null,
  252. },
  253. {
  254. path: 'preview',
  255. name: 'cameras/preview',
  256. component: '/cameras/preview/CameraPreview',
  257. redirect: null,
  258. meta: {
  259. icon: '',
  260. title: '相机预览',
  261. noCache: false,
  262. hidden: false,
  263. query: '',
  264. isFrame: '1',
  265. frameSrc: null,
  266. status: '0',
  267. isRoot: false,
  268. alwaysShow: false,
  269. },
  270. children: null,
  271. },
  272. {
  273. path: 'algo-manager',
  274. name: 'algo-manager',
  275. component: '/cameras/algo-management/algoManagement',
  276. redirect: null,
  277. meta: {
  278. icon: '',
  279. title: '算法管理',
  280. noCache: false,
  281. hidden: false,
  282. query: '',
  283. isFrame: '1',
  284. frameSrc: null,
  285. status: '0',
  286. isRoot: false,
  287. alwaysShow: false,
  288. },
  289. children: null,
  290. },
  291. ],
  292. },
  293. {
  294. path: '/auth',
  295. name: 'auth',
  296. component: 'LAYOUT',
  297. redirect: null,
  298. meta: {
  299. icon: 'SafetyOutlined',
  300. title: '权限管理',
  301. noCache: false,
  302. hidden: false,
  303. query: '',
  304. isFrame: '1',
  305. frameSrc: null,
  306. status: '0',
  307. isRoot: false,
  308. alwaysShow: false,
  309. },
  310. children: [
  311. {
  312. path: 'user',
  313. name: 'system_user',
  314. component: '/system/user/user',
  315. redirect: '',
  316. meta: {
  317. icon: null,
  318. title: '用户管理',
  319. noCache: false,
  320. hidden: false,
  321. query: null,
  322. isFrame: '1',
  323. frameSrc: null,
  324. status: '0',
  325. isRoot: false,
  326. alwaysShow: false,
  327. },
  328. children: null,
  329. },
  330. {
  331. path: 'role',
  332. name: 'system_role',
  333. component: '/system/role/role',
  334. redirect: null,
  335. meta: {
  336. icon: null,
  337. title: '角色管理',
  338. noCache: false,
  339. hidden: false,
  340. query: null,
  341. isFrame: '1',
  342. frameSrc: null,
  343. status: '0',
  344. isRoot: false,
  345. alwaysShow: false,
  346. },
  347. children: null,
  348. },
  349. {
  350. path: 'dept',
  351. name: 'dept',
  352. component: '/auth/dept/dept',
  353. redirect: null,
  354. meta: {
  355. icon: null,
  356. title: '组织管理',
  357. noCache: false,
  358. hidden: false,
  359. query: null,
  360. isFrame: '1',
  361. frameSrc: null,
  362. status: '0',
  363. isRoot: false,
  364. alwaysShow: true,
  365. },
  366. children: null,
  367. },
  368. ],
  369. },
  370. {
  371. path: '/system',
  372. name: 'system',
  373. component: 'LAYOUT',
  374. redirect: '/system/menu',
  375. meta: {
  376. icon: 'OptionsSharp',
  377. title: '系统管理',
  378. noCache: false,
  379. hidden: false,
  380. query: null,
  381. isFrame: '1',
  382. frameSrc: null,
  383. status: '0',
  384. isRoot: false,
  385. alwaysShow: false,
  386. },
  387. children: [
  388. {
  389. path: 'tenant',
  390. name: 'system_tenant',
  391. component: '/system/tenant/tenant',
  392. redirect: null,
  393. meta: {
  394. icon: '',
  395. title: '租户管理',
  396. noCache: false,
  397. hidden: false,
  398. query: '',
  399. isFrame: '1',
  400. frameSrc: null,
  401. status: '0',
  402. isRoot: false,
  403. alwaysShow: false,
  404. },
  405. children: null,
  406. },
  407. {
  408. path: 'menu',
  409. name: 'system_menu',
  410. component: '/system/menu/menu',
  411. redirect: '',
  412. meta: {
  413. icon: null,
  414. title: '菜单管理',
  415. noCache: false,
  416. hidden: false,
  417. query: null,
  418. isFrame: '1',
  419. frameSrc: null,
  420. status: '0',
  421. isRoot: false,
  422. alwaysShow: false,
  423. },
  424. children: null,
  425. },
  426. {
  427. path: 'logs',
  428. name: 'system_logs',
  429. component: 'ParentLayout',
  430. redirect: null,
  431. meta: {
  432. icon: null,
  433. title: '日志管理',
  434. noCache: false,
  435. hidden: false,
  436. query: null,
  437. isFrame: '1',
  438. frameSrc: null,
  439. status: '0',
  440. isRoot: false,
  441. alwaysShow: false,
  442. },
  443. children: null,
  444. },
  445. {
  446. path: 'dictionary',
  447. name: 'system_dictionary',
  448. component: '/system/dictionary/dictionary',
  449. redirect: null,
  450. meta: {
  451. icon: null,
  452. title: '字典管理',
  453. noCache: false,
  454. hidden: false,
  455. query: null,
  456. isFrame: '1',
  457. frameSrc: null,
  458. status: '0',
  459. isRoot: false,
  460. alwaysShow: false,
  461. },
  462. children: null,
  463. },
  464. {
  465. path: 'region',
  466. name: 'system_region',
  467. component: 'ParentLayout',
  468. redirect: '',
  469. meta: {
  470. icon: null,
  471. title: '区域管理',
  472. noCache: false,
  473. hidden: false,
  474. query: null,
  475. isFrame: '1',
  476. frameSrc: null,
  477. status: '0',
  478. isRoot: false,
  479. alwaysShow: true,
  480. },
  481. children: null,
  482. },
  483. {
  484. path: 'config',
  485. name: 'system_config',
  486. component: 'ParentLayout',
  487. redirect: null,
  488. meta: {
  489. icon: null,
  490. title: '配置管理',
  491. noCache: false,
  492. hidden: false,
  493. query: null,
  494. isFrame: '1',
  495. frameSrc: null,
  496. status: '0',
  497. isRoot: false,
  498. alwaysShow: true,
  499. },
  500. children: null,
  501. },
  502. ],
  503. },
  504. {
  505. path: '/instation',
  506. name: 'instation',
  507. component: 'LAYOUT',
  508. redirect: null,
  509. meta: {
  510. icon: 'BellOutlined',
  511. title: '站内通知',
  512. noCache: false,
  513. hidden: false,
  514. query: null,
  515. isFrame: '1',
  516. frameSrc: null,
  517. status: '0',
  518. isRoot: false,
  519. alwaysShow: false,
  520. },
  521. children: [
  522. {
  523. path: 'notice',
  524. name: 'instation_notice',
  525. component: '/instation/notice/notice',
  526. redirect: null,
  527. meta: {
  528. icon: '',
  529. title: '通知管理',
  530. noCache: false,
  531. hidden: false,
  532. query: '',
  533. isFrame: '1',
  534. frameSrc: null,
  535. status: '0',
  536. isRoot: false,
  537. alwaysShow: false,
  538. },
  539. children: null,
  540. },
  541. ],
  542. },
  543. {
  544. path: '/article',
  545. name: 'System_Article',
  546. component: 'LAYOUT',
  547. redirect: '/article/list',
  548. meta: {
  549. icon: 'BookOutlined',
  550. title: '文章管理',
  551. noCache: false,
  552. hidden: false,
  553. query: null,
  554. isFrame: '1',
  555. frameSrc: null,
  556. status: '0',
  557. isRoot: false,
  558. alwaysShow: false,
  559. },
  560. children: null,
  561. },
  562. ];
  563. export default [
  564. {
  565. url: '/api/login/getRouters',
  566. timeout: 1000,
  567. method: 'get',
  568. response: () => {
  569. return resultSuccess(list);
  570. },
  571. },
  572. ];