routers.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  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. path: 'template',
  216. name: 'template',
  217. component: '/system-config/template/TemplateManager',
  218. meta: {
  219. title: '模板管理',
  220. noCache: false,
  221. hidden: false,
  222. isFrame: '1',
  223. status: '0',
  224. isRoot: false,
  225. alwaysShow: false,
  226. },
  227. },
  228. ],
  229. },
  230. {
  231. path: '/cameras',
  232. name: 'cameras',
  233. component: 'LAYOUT',
  234. redirect: null,
  235. meta: {
  236. icon: 'CameraOutlined',
  237. title: '相机管理',
  238. noCache: false,
  239. hidden: false,
  240. query: '',
  241. isFrame: '1',
  242. frameSrc: null,
  243. status: '0',
  244. isRoot: false,
  245. alwaysShow: false,
  246. },
  247. children: [
  248. {
  249. path: 'overview',
  250. name: 'camera_overview',
  251. component: '/cameras/overview/CamerasOverview',
  252. redirect: null,
  253. meta: {
  254. icon: '',
  255. title: '相机配置',
  256. noCache: false,
  257. hidden: false,
  258. query: '',
  259. isFrame: '1',
  260. frameSrc: null,
  261. status: '0',
  262. isRoot: false,
  263. alwaysShow: false,
  264. },
  265. children: null,
  266. },
  267. {
  268. path: 'preview',
  269. name: 'cameras/preview',
  270. component: '/cameras/preview/CameraPreview',
  271. redirect: null,
  272. meta: {
  273. icon: '',
  274. title: '相机预览',
  275. noCache: false,
  276. hidden: false,
  277. query: '',
  278. isFrame: '1',
  279. frameSrc: null,
  280. status: '0',
  281. isRoot: false,
  282. alwaysShow: false,
  283. },
  284. children: null,
  285. },
  286. {
  287. path: 'algo-manager',
  288. name: 'algo-manager',
  289. component: '/cameras/algo-management/algoManagement',
  290. redirect: null,
  291. meta: {
  292. icon: '',
  293. title: '算法管理',
  294. noCache: false,
  295. hidden: false,
  296. query: '',
  297. isFrame: '1',
  298. frameSrc: null,
  299. status: '0',
  300. isRoot: false,
  301. alwaysShow: false,
  302. },
  303. children: null,
  304. },
  305. ],
  306. },
  307. {
  308. path: '/auth',
  309. name: 'auth',
  310. component: 'LAYOUT',
  311. redirect: null,
  312. meta: {
  313. icon: 'SafetyOutlined',
  314. title: '权限管理',
  315. noCache: false,
  316. hidden: false,
  317. query: '',
  318. isFrame: '1',
  319. frameSrc: null,
  320. status: '0',
  321. isRoot: false,
  322. alwaysShow: false,
  323. },
  324. children: [
  325. {
  326. path: 'user',
  327. name: 'system_user',
  328. component: '/system/user/user',
  329. redirect: '',
  330. meta: {
  331. icon: null,
  332. title: '用户管理',
  333. noCache: false,
  334. hidden: false,
  335. query: null,
  336. isFrame: '1',
  337. frameSrc: null,
  338. status: '0',
  339. isRoot: false,
  340. alwaysShow: false,
  341. },
  342. children: null,
  343. },
  344. {
  345. path: 'role',
  346. name: 'system_role',
  347. component: '/system/role/role',
  348. redirect: null,
  349. meta: {
  350. icon: null,
  351. title: '角色管理',
  352. noCache: false,
  353. hidden: false,
  354. query: null,
  355. isFrame: '1',
  356. frameSrc: null,
  357. status: '0',
  358. isRoot: false,
  359. alwaysShow: false,
  360. },
  361. children: null,
  362. },
  363. {
  364. path: 'dept',
  365. name: 'dept',
  366. component: '/auth/dept/dept',
  367. redirect: null,
  368. meta: {
  369. icon: null,
  370. title: '组织管理',
  371. noCache: false,
  372. hidden: false,
  373. query: null,
  374. isFrame: '1',
  375. frameSrc: null,
  376. status: '0',
  377. isRoot: false,
  378. alwaysShow: true,
  379. },
  380. children: null,
  381. },
  382. ],
  383. },
  384. {
  385. path: '/system',
  386. name: 'system',
  387. component: 'LAYOUT',
  388. redirect: '/system/menu',
  389. meta: {
  390. icon: 'OptionsSharp',
  391. title: '系统管理',
  392. noCache: false,
  393. hidden: false,
  394. query: null,
  395. isFrame: '1',
  396. frameSrc: null,
  397. status: '0',
  398. isRoot: false,
  399. alwaysShow: false,
  400. },
  401. children: [
  402. {
  403. path: 'tenant',
  404. name: 'system_tenant',
  405. component: '/system/tenant/tenant',
  406. redirect: null,
  407. meta: {
  408. icon: '',
  409. title: '租户管理',
  410. noCache: false,
  411. hidden: false,
  412. query: '',
  413. isFrame: '1',
  414. frameSrc: null,
  415. status: '0',
  416. isRoot: false,
  417. alwaysShow: false,
  418. },
  419. children: null,
  420. },
  421. {
  422. path: 'menu',
  423. name: 'system_menu',
  424. component: '/system/menu/menu',
  425. redirect: '',
  426. meta: {
  427. icon: null,
  428. title: '菜单管理',
  429. noCache: false,
  430. hidden: false,
  431. query: null,
  432. isFrame: '1',
  433. frameSrc: null,
  434. status: '0',
  435. isRoot: false,
  436. alwaysShow: false,
  437. },
  438. children: null,
  439. },
  440. {
  441. path: 'logs',
  442. name: 'system_logs',
  443. component: 'ParentLayout',
  444. redirect: null,
  445. meta: {
  446. icon: null,
  447. title: '日志管理',
  448. noCache: false,
  449. hidden: false,
  450. query: null,
  451. isFrame: '1',
  452. frameSrc: null,
  453. status: '0',
  454. isRoot: false,
  455. alwaysShow: false,
  456. },
  457. children: null,
  458. },
  459. {
  460. path: 'dictionary',
  461. name: 'system_dictionary',
  462. component: '/system/dictionary/dictionary',
  463. redirect: null,
  464. meta: {
  465. icon: null,
  466. title: '字典管理',
  467. noCache: false,
  468. hidden: false,
  469. query: null,
  470. isFrame: '1',
  471. frameSrc: null,
  472. status: '0',
  473. isRoot: false,
  474. alwaysShow: false,
  475. },
  476. children: null,
  477. },
  478. {
  479. path: 'region',
  480. name: 'system_region',
  481. component: 'ParentLayout',
  482. redirect: '',
  483. meta: {
  484. icon: null,
  485. title: '区域管理',
  486. noCache: false,
  487. hidden: false,
  488. query: null,
  489. isFrame: '1',
  490. frameSrc: null,
  491. status: '0',
  492. isRoot: false,
  493. alwaysShow: true,
  494. },
  495. children: null,
  496. },
  497. {
  498. path: 'config',
  499. name: 'system_config',
  500. component: 'ParentLayout',
  501. redirect: null,
  502. meta: {
  503. icon: null,
  504. title: '配置管理',
  505. noCache: false,
  506. hidden: false,
  507. query: null,
  508. isFrame: '1',
  509. frameSrc: null,
  510. status: '0',
  511. isRoot: false,
  512. alwaysShow: true,
  513. },
  514. children: null,
  515. },
  516. ],
  517. },
  518. {
  519. path: '/instation',
  520. name: 'instation',
  521. component: 'LAYOUT',
  522. redirect: null,
  523. meta: {
  524. icon: 'BellOutlined',
  525. title: '站内通知',
  526. noCache: false,
  527. hidden: false,
  528. query: null,
  529. isFrame: '1',
  530. frameSrc: null,
  531. status: '0',
  532. isRoot: false,
  533. alwaysShow: false,
  534. },
  535. children: [
  536. {
  537. path: 'notice',
  538. name: 'instation_notice',
  539. component: '/instation/notice/notice',
  540. redirect: null,
  541. meta: {
  542. icon: '',
  543. title: '通知管理',
  544. noCache: false,
  545. hidden: false,
  546. query: '',
  547. isFrame: '1',
  548. frameSrc: null,
  549. status: '0',
  550. isRoot: false,
  551. alwaysShow: false,
  552. },
  553. children: null,
  554. },
  555. ],
  556. },
  557. {
  558. path: '/article',
  559. name: 'System_Article',
  560. component: 'LAYOUT',
  561. redirect: '/article/list',
  562. meta: {
  563. icon: 'BookOutlined',
  564. title: '文章管理',
  565. noCache: false,
  566. hidden: false,
  567. query: null,
  568. isFrame: '1',
  569. frameSrc: null,
  570. status: '0',
  571. isRoot: false,
  572. alwaysShow: false,
  573. },
  574. children: null,
  575. },
  576. ];
  577. export default [
  578. {
  579. url: '/api/login/getRouters',
  580. timeout: 1000,
  581. method: 'get',
  582. response: () => {
  583. return resultSuccess(list);
  584. },
  585. },
  586. ];