index.ts 94 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066
  1. import { EnumRouterName } from '@/common/constants/enumRouterName';
  2. import { setLoadComplete } from '@/common/methods';
  3. import { getLoadIsComplete } from '@/common/methods/mixin';
  4. import Main from '@/layout/components/main.vue';
  5. import Layout from '@/layout/index.vue';
  6. import { globalDataRefresh } from '@/services/bus';
  7. import { isLogin, login } from '@/services/bus/login';
  8. import { localStorageUtil } from '@/utils/storage';
  9. import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
  10. import eventBus from '../utils/eventBus';
  11. const routes: Array<RouteRecordRaw> = [
  12. {
  13. path: '/login',
  14. name: 'login',
  15. component: () => import('@/views/account/login.vue'),
  16. },
  17. {
  18. path: '/logon',
  19. name: 'logon',
  20. component: () => import('@/views/account/logon.vue'),
  21. },
  22. {
  23. path: '/resetPassword',
  24. name: 'resetPassword',
  25. component: () => import('@/views/account/resetPassword.vue'),
  26. },
  27. {
  28. path: '/',
  29. component: Layout,
  30. props: true,
  31. redirect: '/login',
  32. children: [
  33. {
  34. path: '/home',
  35. name: 'home',
  36. component: () => import('@/views/home.vue'),
  37. },
  38. {
  39. path: '/futures',
  40. name: 'forward',
  41. component: () => import('@/views/market/forward/index.vue'),
  42. },
  43. {
  44. path: '/warehouse-trade',
  45. name: 'warehouseTrade',
  46. component: () => import('@/views/market/warehouseTrade/index.vue'),
  47. },
  48. {
  49. path: 'custom_info',
  50. name: 'custom_info',
  51. component: Main,
  52. meta: {
  53. requireAuth: true,
  54. },
  55. redirect: (to) => {
  56. return { name: 'custom_info_unsubmit' };
  57. },
  58. children: [
  59. {
  60. path: '/custom_info/custom_info_normal',
  61. name: 'custom_info_normal',
  62. component: () => import('@/views/information/custom/list/normal-use/index.vue'),
  63. meta: {
  64. requireAuth: true,
  65. },
  66. },
  67. {
  68. path: '/custom_info/custom_info_disabled',
  69. name: 'custom_info_disabled',
  70. component: () => import('@/views/information/custom/list/stop-use/index.vue'),
  71. meta: {
  72. requireAuth: true,
  73. },
  74. },
  75. {
  76. path: '/custom_info/custom_info_checkpending',
  77. name: 'custom_info_checkpending',
  78. component: () => import('@/views/information/custom/list/checkpending/index.vue'),
  79. meta: {
  80. requireAuth: true,
  81. },
  82. },
  83. {
  84. path: '/custom_info/custom_info_unsubmit',
  85. name: 'custom_info_unsubmit',
  86. component: () => import('@/views/information/custom/list/unsubmit/index.vue'),
  87. meta: {
  88. requireAuth: true,
  89. },
  90. },
  91. ],
  92. },
  93. {
  94. path: 'goods_info',
  95. name: 'goods_info',
  96. component: Main,
  97. meta: {
  98. requireAuth: true,
  99. },
  100. redirect: (to) => {
  101. return { name: 'goods_info_spot' };
  102. },
  103. children: [
  104. {
  105. path: '/goods_info/goods_info_spot',
  106. name: 'goods_info_spot',
  107. component: () => import('@/views/information/goods/list/spot-variety/index.vue'),
  108. meta: {
  109. requireAuth: true,
  110. },
  111. },
  112. {
  113. path: '/goods_info/goods_info_hedge',
  114. name: 'goods_info_hedge',
  115. component: () => import('@/views/information/goods/list/hedging-variety/index.vue'),
  116. meta: {
  117. requireAuth: true,
  118. },
  119. },
  120. ],
  121. },
  122. {
  123. path: '/spot_contract',
  124. name: 'spot_contract',
  125. component: Main,
  126. meta: {
  127. requireAuth: true,
  128. },
  129. redirect: (to) => {
  130. return { name: 'spot_contract_unsubmitted' };
  131. },
  132. children: [
  133. {
  134. path: '/spot_contract/spot_contract_unsubmitted',
  135. name: 'spot_contract_unsubmitted',
  136. component: () => import('@/views/information/spot-contract/list/unsubmitted/index.vue'),
  137. meta: {
  138. requireAuth: true,
  139. },
  140. },
  141. {
  142. path: '/spot_contract/spot_contract_checkpending',
  143. name: 'spot_contract_checkpending',
  144. component: () => import('@/views/information/spot-contract/list/checkpending/index.vue'),
  145. meta: {
  146. requireAuth: true,
  147. },
  148. },
  149. {
  150. path: '/spot_contract/spot_contract_performance',
  151. name: 'spot_contract_performance',
  152. component: () => import('@/views/information/spot-contract/list/performance/index.vue'),
  153. meta: {
  154. requireAuth: true,
  155. },
  156. },
  157. {
  158. path: '/spot_contract/spot_contract_finished',
  159. name: 'spot_contract_finished',
  160. component: () => import('@/views/information/spot-contract/list/finished/index.vue'),
  161. meta: {
  162. requireAuth: true,
  163. },
  164. },
  165. ],
  166. },
  167. {
  168. path: '/account_info',
  169. name: 'account_info',
  170. component: Main,
  171. meta: {
  172. requireAuth: true,
  173. },
  174. redirect: (to) => {
  175. return { name: 'account_info_business' };
  176. },
  177. children: [
  178. {
  179. path: '/account_info/account_info_business',
  180. name: 'account_info_business',
  181. component: () => import('@/views/information/account_info/list/account_info_business/index.vue'),
  182. meta: {
  183. requireAuth: true,
  184. },
  185. },
  186. {
  187. path: '/account_info/account_info_futures',
  188. name: 'account_info_futures',
  189. component: () => import('@/views/information/account_info/list/account_info_futures/index.vue'),
  190. meta: {
  191. requireAuth: true,
  192. },
  193. },
  194. {
  195. path: '/account_info/account_info_manager',
  196. name: 'account_info_manager',
  197. component: () => import('@/views/information/account_info/list/account_info_manager/index.vue'),
  198. meta: {
  199. requireAuth: true,
  200. },
  201. },
  202. {
  203. path: '/account_info/account_info_trade',
  204. name: 'account_info_trade',
  205. component: () => import('@/views/information/account_info/list/account_info_trade/index.vue'),
  206. meta: {
  207. requireAuth: true,
  208. },
  209. },
  210. ],
  211. },
  212. {
  213. path: '/warehouse_info',
  214. name: 'warehouse_info',
  215. component: Main,
  216. meta: {
  217. requireAuth: true,
  218. },
  219. redirect: (to) => {
  220. return { name: 'warehouse_info_normal' };
  221. },
  222. children: [
  223. {
  224. path: '/warehouse_info/warehouse_info_normal',
  225. name: 'warehouse_info_normal',
  226. component: () => import('@/views/information/warehouse-info/list/normal-use/index.vue'),
  227. meta: {
  228. requireAuth: true,
  229. },
  230. },
  231. {
  232. path: '/warehouse_info/warehouse_info_disabled',
  233. name: 'warehouse_info_disabled',
  234. component: () => import('@/views/information/warehouse-info/list/stop-use/index.vue'),
  235. meta: {
  236. requireAuth: true,
  237. },
  238. },
  239. ],
  240. },
  241. {
  242. path: '/outaccount_status',
  243. name: 'outaccount_status',
  244. component: () => import('@/views/search/outaccount_status/index.vue'),
  245. meta: {
  246. requireAuth: true,
  247. },
  248. },
  249. {
  250. path: '/inventory',
  251. name: 'inventory',
  252. component: Main,
  253. meta: {
  254. requireAuth: true,
  255. },
  256. redirect: (to) => {
  257. return { name: 'inventory_current' };
  258. },
  259. children: [
  260. {
  261. path: '/inventory/inventory_current',
  262. name: 'inventory_current',
  263. component: () => import('@/views/search/inventory/list/inventory_current/index.vue'),
  264. meta: {
  265. requireAuth: true,
  266. },
  267. },
  268. {
  269. path: '/inventory/inventory_applyrecord',
  270. name: 'inventory_applyrecord',
  271. component: () => import('@/views/search/inventory/list/inventory_applyrecord/index.vue'),
  272. meta: {
  273. requireAuth: true,
  274. },
  275. },
  276. ]
  277. },
  278. {
  279. path: '/purchase',
  280. name: 'purchase',
  281. component: Main,
  282. meta: {
  283. requireAuth: true,
  284. },
  285. redirect: { name: 'purchase_pending' },
  286. children: [
  287. {
  288. path: '/purchase/purchase_pending',
  289. name: 'purchase_pending',
  290. component: () => import('@/views/business/purchase/list/pending/index.vue'),
  291. meta: {
  292. requireAuth: true,
  293. },
  294. },
  295. {
  296. path: '/purchase/purchase_performance',
  297. name: 'purchase_performance',
  298. component: () => import('@/views/business/purchase/list/performance/index.vue'),
  299. meta: {
  300. requireAuth: true,
  301. },
  302. },
  303. {
  304. path: '/purchase/purchase_all',
  305. name: 'purchase_all',
  306. component: () => import('@/views/business/purchase/list/all/index.vue'),
  307. meta: {
  308. requireAuth: true,
  309. },
  310. },
  311. ],
  312. },
  313. {
  314. path: '/sell',
  315. name: 'sell',
  316. component: Main,
  317. meta: {
  318. requireAuth: true,
  319. },
  320. redirect: { name: 'sell_pending' },
  321. children: [
  322. {
  323. path: '/sell/sell_pending',
  324. name: 'sell_pending',
  325. component: () => import('@/views/business/sell/list/pending/index.vue'),
  326. meta: {
  327. requireAuth: true,
  328. },
  329. },
  330. {
  331. path: '/sell/sell_performance',
  332. name: 'sell_performance',
  333. component: () => import('@/views/business/sell/list/performance/index.vue'),
  334. meta: {
  335. requireAuth: true,
  336. },
  337. },
  338. {
  339. path: '/sell/sell_all',
  340. name: 'sell_all',
  341. component: () => import('@/views/business/sell/list/all/index.vue'),
  342. meta: {
  343. requireAuth: true,
  344. },
  345. },
  346. ],
  347. },
  348. {
  349. path: '/risk_parameter_settings',
  350. name: 'risk_parameter_settings',
  351. component: Main,
  352. meta: {
  353. requireAuth: true,
  354. },
  355. redirect: { name: 'risk_parameter_settings_sub' },
  356. children: [
  357. {
  358. path: '/risk_parameter_settings_sub/risk_parameter_settings_sub',
  359. name: 'risk_parameter_settings_sub',
  360. component: () => import('@/views/ping_an/risk_parameter_settings/index.vue'),
  361. meta: {
  362. requireAuth: true,
  363. },
  364. },
  365. ]
  366. },
  367. {
  368. path: '/futures_and_spot',
  369. name: 'futures_and_spot',
  370. component: Main,
  371. meta: {
  372. requireAuth: true,
  373. },
  374. redirect: { name: 'futures_and_spot_stof' },
  375. children: [
  376. {
  377. path: '/futures_and_spot/futures_and_spot_stof',
  378. name: 'futures_and_spot_stof',
  379. component: () => import('@/views/ping_an/futures_and_spot/futures_and_spot_stof/index.vue'),
  380. meta: {
  381. requireAuth: true,
  382. },
  383. },
  384. {
  385. path: '/futures_and_spot/futures_and_spot_ftos',
  386. name: 'futures_and_spot_ftos',
  387. component: () => import('@/views/ping_an/futures_and_spot/futures_and_spot_ftos/index.vue'),
  388. meta: {
  389. requireAuth: true,
  390. },
  391. },
  392. ]
  393. },
  394. {
  395. path: '/spot_price_management_p',
  396. name: 'spot_price_management_p',
  397. component: Main,
  398. meta: {
  399. requireAuth: true,
  400. },
  401. redirect: { name: 'spot_price_management_today' },
  402. children: [
  403. {
  404. path: '/spot_price_management_p/spot_price_management_today',
  405. name: 'spot_price_management_today',
  406. component: () => import('@/views/ping_an/spot_price_management/spot_price_management_today/index.vue'),
  407. meta: {
  408. requireAuth: true,
  409. },
  410. },
  411. {
  412. path: '/spot_price_management_p/spot_price_management_all',
  413. name: 'spot_price_management_all',
  414. component: () => import('@/views/ping_an/spot_price_management/spot_price_management_all/index.vue'),
  415. meta: {
  416. requireAuth: true,
  417. },
  418. },
  419. {
  420. path: '/spot_price_management_p/spot_price_management_pending',
  421. name: 'spot_price_management_pending',
  422. component: () => import('@/views/ping_an/spot_price_management/spot_price_management_pending/index.vue'),
  423. meta: {
  424. requireAuth: true,
  425. },
  426. },
  427. ]
  428. },
  429. {
  430. path: '/exposure',
  431. name: 'exposure',
  432. component: Main,
  433. meta: {
  434. requireAuth: true,
  435. },
  436. redirect: { name: 'exposure_realtime' },
  437. children: [
  438. {
  439. path: '/exposure/exposure_realtime',
  440. name: 'exposure_realtime',
  441. component: () => import('@/views/business/exposure/list/realTime/index.vue'),
  442. meta: {
  443. requireAuth: true,
  444. },
  445. },
  446. {
  447. path: '/exposure/exposure_spot',
  448. name: 'exposure_spot',
  449. component: () => import('@/views/business/exposure/list/spot/index.vue'),
  450. meta: {
  451. requireAuth: true,
  452. },
  453. },
  454. {
  455. path: '/exposure/exposure_futures',
  456. name: 'exposure_futures',
  457. component: () => import('@/views/business/exposure/list/futures/index.vue'),
  458. meta: {
  459. requireAuth: true,
  460. },
  461. },
  462. {
  463. path: '/exposure/exposure_history',
  464. name: 'exposure_history',
  465. component: () => import('@/views/business/exposure/list/history/index.vue'),
  466. meta: {
  467. requireAuth: true,
  468. },
  469. },
  470. ],
  471. },
  472. {
  473. path: '/plan',
  474. name: 'plan',
  475. component: Main,
  476. meta: {
  477. requireAuth: true,
  478. },
  479. redirect: { name: 'plan_uncommitted' },
  480. children: [
  481. {
  482. path: '/plan/plan_uncommitted',
  483. name: 'plan_uncommitted',
  484. component: () => import('@/views/business/plan/list/uncommitted/index.vue'),
  485. meta: {
  486. requireAuth: true,
  487. },
  488. },
  489. {
  490. path: '/plan/plan_audit',
  491. name: 'plan_audit',
  492. component: () => import('@/views/business/plan/list/audit/index.vue'),
  493. meta: {
  494. requireAuth: true,
  495. },
  496. },
  497. {
  498. path: '/plan/plan_running',
  499. name: 'plan_running',
  500. component: () => import('@/views/business/plan/list/running/index.vue'),
  501. meta: {
  502. requireAuth: true,
  503. },
  504. },
  505. ],
  506. },
  507. {
  508. path: 'review',
  509. name: 'business_review',
  510. component: Main,
  511. meta: {
  512. requireAuth: true,
  513. },
  514. redirect: { name: 'business_review_someprice' },
  515. children: [
  516. {
  517. path: '/business_review/business_review_someprice',
  518. name: 'business_review_someprice',
  519. component: () => import('@/views/manage/business-review/list/someprice/index.vue'),
  520. meta: {
  521. requireAuth: true,
  522. },
  523. },
  524. {
  525. path: '/business_review/business_review_settlement',
  526. name: 'business_review_settlement',
  527. component: () => import('@/views/manage/business-review/list/settlement/index.vue'),
  528. meta: {
  529. requireAuth: true,
  530. },
  531. },
  532. ]
  533. },
  534. {
  535. path: '/finance_review',
  536. name: 'finance_review',
  537. component: Main,
  538. meta: {
  539. requireAuth: true,
  540. },
  541. redirect: { name: 'finance_review_funds' },
  542. children: [
  543. {
  544. path: '/finance_review/finance_review_funds',
  545. name: 'finance_review_funds',
  546. component: () => import('@/views/manage/finance-review/list/funds/index.vue'),
  547. meta: {
  548. requireAuth: true,
  549. },
  550. },
  551. {
  552. path: '/finance_review/finance_review_invoice',
  553. name: 'finance_review_invoice',
  554. component: () => import('@/views/manage/finance-review/list/invoice/index.vue'),
  555. meta: {
  556. requireAuth: true,
  557. },
  558. },
  559. ]
  560. },
  561. {
  562. path: '/inventory_review',
  563. name: 'inventory_review',
  564. component: Main,
  565. meta: {
  566. requireAuth: true,
  567. },
  568. redirect: { name: 'inventory_review_checkin' },
  569. children: [
  570. {
  571. path: '/inventory_review/inventory_review_checkin',
  572. name: 'inventory_review_checkin',
  573. component: () => import('@/views/manage/inventory-review/list/checkin/index.vue'),
  574. meta: {
  575. requireAuth: true,
  576. },
  577. },
  578. {
  579. path: '/inventory_review/inventory_review_checkout',
  580. name: 'inventory_review_checkout',
  581. component: () => import('@/views/manage/inventory-review/list/checkout/index.vue'),
  582. meta: {
  583. requireAuth: true,
  584. },
  585. },
  586. ]
  587. },
  588. {
  589. path: '/exposure_report',
  590. name: 'exposure_report',
  591. component: Main,
  592. meta: {
  593. requireAuth: true,
  594. },
  595. redirect: { name: 'exposure_report_exposure' },
  596. children: [
  597. {
  598. path: '/exposure_report/exposure_report_exposure',
  599. name: 'exposure_report_exposure',
  600. component: () => import('@/views/report/exposure-report/list/exposure_report/index.vue'),
  601. meta: {
  602. requireAuth: true,
  603. },
  604. },
  605. ]
  606. },
  607. {
  608. path: '/search_performance_template',
  609. name: 'search_performance_template',
  610. component: Main,
  611. meta: {
  612. requireAuth: true,
  613. },
  614. redirect: { name: 'search_performance_template_sub' },
  615. children: [
  616. {
  617. path: '/search_performance_template/search_performance_template_sub',
  618. name: 'search_performance_template_sub',
  619. component: () => import('@/views/search/search_performance_template/search_performance_template_sub/index.vue'),
  620. meta: {
  621. requireAuth: true,
  622. },
  623. },
  624. ]
  625. },
  626. {
  627. path: '/finance_report',
  628. name: 'finance_report',
  629. component: Main,
  630. meta: {
  631. requireAuth: true,
  632. },
  633. redirect: { name: 'finance_report_finance' },
  634. children: [
  635. {
  636. path: '/finance_report/finance_report_finance',
  637. name: 'finance_report_finance',
  638. component: () => import('@/views/report/finance-report/list/finance_report_finance/index.vue'),
  639. meta: {
  640. requireAuth: true,
  641. },
  642. },
  643. ]
  644. },
  645. {
  646. path: '/inventory_report',
  647. name: 'inventory_report',
  648. component: Main,
  649. meta: {
  650. requireAuth: true,
  651. },
  652. redirect: { name: 'inventory_report_inventory_category' },
  653. children: [
  654. {
  655. path: '/inventory_report/inventory_report_inventory_category',
  656. name: 'inventory_report_inventory_category',
  657. component: () => import('@/views/report/inventory-report/list/category/index.vue'),
  658. meta: {
  659. requireAuth: true,
  660. },
  661. },
  662. {
  663. path: '/inventory_report/warehouse',
  664. name: 'inventory_report_warehouse',
  665. component: () => import('@/views/report/inventory-report/list/warehouse/index.vue'),
  666. meta: {
  667. requireAuth: true,
  668. },
  669. },
  670. ]
  671. },
  672. {
  673. path: '/spot_report',
  674. name: 'spot_report',
  675. component: Main,
  676. meta: {
  677. requireAuth: true,
  678. },
  679. redirect: { name: 'spot_report_spot' },
  680. children: [
  681. {
  682. path: '/spot_report/spot_report_spot',
  683. name: 'spot_report_spot',
  684. component: () => import('@/views/report/spot-report/list/spot_report/index.vue'),
  685. meta: {
  686. requireAuth: true,
  687. },
  688. },
  689. ]
  690. },
  691. {
  692. path: '/sum_pl_report',
  693. name: 'sum_pl_report',
  694. component: Main,
  695. meta: {
  696. requireAuth: true,
  697. },
  698. redirect: { name: 'sum_pl_report_sum_pl' },
  699. children: [
  700. {
  701. path: '/sum_pl_report/sum_pl_report_sum_pl',
  702. name: 'sum_pl_report_sum_pl',
  703. component: () => import('@/views/report/sum_pl_report/list/sum_pl_report/index.vue'),
  704. meta: {
  705. requireAuth: true,
  706. },
  707. },
  708. ]
  709. },
  710. {
  711. path: '/future_report',
  712. name: 'future_report',
  713. component: Main,
  714. meta: {
  715. requireAuth: true,
  716. },
  717. redirect: { name: 'future_report_future' },
  718. children: [
  719. {
  720. path: '/future_report/future_report_future',
  721. name: 'future_report_future',
  722. component: () => import('@/views/report/future_report/list/future_report/index.vue'),
  723. meta: {
  724. requireAuth: true,
  725. },
  726. },
  727. ]
  728. },
  729. {
  730. path: '/platinum_customer_info',
  731. name: 'platinum_customer_info',
  732. component: Main,
  733. meta: {
  734. requireAuth: true,
  735. },
  736. redirect: { name: 'platinum_custom_info_normal' },
  737. children: [
  738. {
  739. path: '/platinum_customer_info/platinum_custom_info_normal',
  740. name: 'platinum_custom_info_normal',
  741. component: () => import('@/views/platinum/platinum_customer_info/list/normal-use/index.vue'),
  742. meta: {
  743. requireAuth: true,
  744. },
  745. },
  746. {
  747. path: '/platinum_customer_info/platinum_customer_info_unsubmit',
  748. name: 'platinum_customer_info_unsubmit',
  749. component: () => import('@/views/platinum/platinum_customer_info/list/unsubmit/index.vue'),
  750. meta: {
  751. requireAuth: true,
  752. },
  753. },
  754. {
  755. path: '/platinum_customer_info/platinum_customer_info_stop',
  756. name: 'platinum_customer_info_stop',
  757. component: () => import('@/views/platinum/platinum_customer_info/list/stop-use/index.vue'),
  758. meta: {
  759. requireAuth: true,
  760. },
  761. },
  762. ]
  763. },
  764. {
  765. path: '/platinum_pick_query',
  766. name: 'platinum_pick_query',
  767. component: Main,
  768. meta: {
  769. requireAuth: true,
  770. },
  771. redirect: { name: 'platinum_pick_query_tab' },
  772. children: [
  773. {
  774. path: '/platinum_pick_query/platinum_pick_query_tab',
  775. name: 'platinum_pick_query_tab',
  776. component: () => import('@/views/platinum/platinum_pick_query/list/tab/index.vue'),
  777. meta: {
  778. requireAuth: true,
  779. },
  780. },
  781. ]
  782. },
  783. {
  784. path: '/platinum_recharge_withdrawal_review',
  785. name: 'platinum_recharge_withdrawal_review',
  786. component: Main,
  787. meta: {
  788. requireAuth: true,
  789. },
  790. redirect: { name: 'platinum_recharge_review_tab' },
  791. children: [
  792. {
  793. path: '/platinum_withdrawal_review_tab/platinum_recharge_review_tab',
  794. name: 'platinum_recharge_review_tab',
  795. component: () => import('@/views/platinum/platinum_recharge_withdrawal_review/list/recharge/index.vue'),
  796. meta: {
  797. requireAuth: true,
  798. },
  799. },
  800. {
  801. path: '/platinum_withdrawal_review_tab/platinum_withdrawal_review_tab',
  802. name: 'platinum_withdrawal_review_tab',
  803. component: () => import('@/views/platinum/platinum_recharge_withdrawal_review/list/withdrawal/index.vue'),
  804. meta: {
  805. requireAuth: true,
  806. },
  807. },
  808. ]
  809. },
  810. {
  811. path: '/platinum_fixed_investment_price_query',
  812. name: 'platinum_fixed_investment_price_query',
  813. component: Main,
  814. meta: {
  815. requireAuth: true,
  816. },
  817. redirect: { name: 'platinum_fixed_investment_price_query_tab' },
  818. children: [
  819. {
  820. path: '/platinum_fixed_investment_price_query/platinum_fixed_investment_price_query_tab',
  821. name: 'platinum_fixed_investment_price_query_tab',
  822. component: () => import('@/views/platinum/platinum_fixed_investment_price_query/list/tab/index.vue'),
  823. meta: {
  824. requireAuth: true,
  825. },
  826. },
  827. ]
  828. },
  829. {
  830. path: '/platinum_fixed_investment_query',
  831. name: 'platinum_fixed_investment_query',
  832. component: Main,
  833. meta: {
  834. requireAuth: true,
  835. },
  836. redirect: { name: 'platinum_fixed_investment_plan_query' },
  837. children: [
  838. {
  839. path: '/platinum_fixed_investment_plan_query/platinum_fixed_investment_plan_query',
  840. name: 'platinum_fixed_investment_plan_query',
  841. component: () => import('@/views/platinum/platinum_fixed_investment_query/list/plan/index.vue'),
  842. meta: {
  843. requireAuth: true,
  844. },
  845. },
  846. {
  847. path: '/platinum_fixed_investment_plan_query/platinum_fixed_investment_flow_query',
  848. name: 'platinum_fixed_investment_flow_query',
  849. component: () => import('@/views/platinum/platinum_fixed_investment_query/list/flow/index.vue'),
  850. meta: {
  851. requireAuth: true,
  852. },
  853. },
  854. ]
  855. },
  856. {
  857. path: '/platinum_document_query',
  858. name: 'platinum_document_query',
  859. component: Main,
  860. meta: {
  861. requireAuth: true,
  862. },
  863. redirect: { name: 'platinum_document_query_position' },
  864. children: [
  865. {
  866. path: '/platinum_document_query/platinum_document_query_position',
  867. name: 'platinum_document_query_position',
  868. component: () => import('@/views/platinum/platinum_document_query/list/position/index.vue'),
  869. meta: {
  870. requireAuth: true,
  871. },
  872. },
  873. {
  874. path: '/platinum_document_query/platinum_document_query_order',
  875. name: 'platinum_document_query_order',
  876. component: () => import('@/views/platinum/platinum_document_query/list/order/index.vue'),
  877. meta: {
  878. requireAuth: true,
  879. },
  880. },
  881. {
  882. path: '/platinum_document_query/platinum_document_query_waiting',
  883. name: 'platinum_document_query_waiting',
  884. component: () => import('@/views/platinum/platinum_document_query/list/waiting/index.vue'),
  885. meta: {
  886. requireAuth: true,
  887. },
  888. },
  889. {
  890. path: '/platinum_document_query/platinum_document_query_success',
  891. name: 'platinum_document_query_success',
  892. component: () => import('@/views/platinum/platinum_document_query/list/success/index.vue'),
  893. meta: {
  894. requireAuth: true,
  895. },
  896. },
  897. ]
  898. },
  899. {
  900. path: '/platinum_financing_information',
  901. name: 'platinum_financing_information',
  902. component: Main,
  903. meta: {
  904. requireAuth: true,
  905. },
  906. redirect: { name: 'platinum_financing_information_tab' },
  907. children: [
  908. {
  909. path: '/platinum_financing_information/platinum_financing_information_tab',
  910. name: 'platinum_financing_information_tab',
  911. component: () => import('@/views/platinum/platinum_financing_information/list/tab/index.vue'),
  912. meta: {
  913. requireAuth: true,
  914. },
  915. },
  916. ]
  917. },
  918. {
  919. path: '/platinum_agents_and_stores',
  920. name: 'platinum_agents_and_stores',
  921. component: Main,
  922. meta: {
  923. requireAuth: true,
  924. },
  925. redirect: { name: 'platinum_agents_and_stores_tab' },
  926. children: [
  927. {
  928. path: '/platinum_agents_and_stores/platinum_agents_and_stores_tab',
  929. name: 'platinum_agents_and_stores_tab',
  930. component: () => import('@/views/platinum/platinum_agents_and_stores/list/tab/index.vue'),
  931. meta: {
  932. requireAuth: true,
  933. },
  934. },
  935. ]
  936. },
  937. {
  938. path: '/platinum_agreement',
  939. name: 'platinum_agreement',
  940. component: Main,
  941. meta: {
  942. requireAuth: true,
  943. },
  944. redirect: { name: 'platinum_agreement_tab' },
  945. children: [
  946. {
  947. path: '/platinum_agreement/platinum_agreement_tab',
  948. name: 'platinum_agreement_tab',
  949. component: () => import('@/views/platinum/platinum_agreement/list/tab/index.vue'),
  950. meta: {
  951. requireAuth: true,
  952. },
  953. },
  954. ]
  955. },
  956. {
  957. path: '/platinum_capital_flow',
  958. name: 'platinum_capital_flow',
  959. component: Main,
  960. meta: {
  961. requireAuth: true,
  962. },
  963. redirect: { name: 'platinum_capital_flow_tab' },
  964. children: [
  965. {
  966. path: '/platinum_capital_flow_tab/platinum_capital_flow_tab',
  967. name: 'platinum_capital_flow_tab',
  968. component: () => import('@/views/platinum/platinum_capital_flow/platinum_capital_flow_tab/index.vue'),
  969. meta: {
  970. requireAuth: true,
  971. },
  972. },
  973. ]
  974. },
  975. {
  976. path: '/platinum_promotion_report',
  977. name: 'platinum_promotion_report',
  978. component: Main,
  979. meta: {
  980. requireAuth: true,
  981. },
  982. redirect: { name: 'platinum_promotion_report_tab' },
  983. children: [
  984. {
  985. path: '/platinum_promotion_report/platinum_promotion_report_tab',
  986. name: 'platinum_promotion_report_tab',
  987. component: () => import('@/views/platinum/platinum_promotion_report/platinum_promotion_report_tab/index.vue'),
  988. meta: {
  989. requireAuth: true,
  990. },
  991. },
  992. ]
  993. },
  994. {
  995. path: '/platinum_signing_settings',
  996. name: 'platinum_signing_settings',
  997. component: Main,
  998. meta: {
  999. requireAuth: true,
  1000. },
  1001. redirect: { name: 'platinum_signing_settings_tab' },
  1002. children: [
  1003. {
  1004. path: '/platinum_signing_settings/platinum_signing_settings_tab',
  1005. name: 'platinum_signing_settings_tab',
  1006. component: () => import('@/views/platinum/platinum_signing_settings/index.vue'),
  1007. meta: {
  1008. requireAuth: true,
  1009. },
  1010. },
  1011. ]
  1012. },
  1013. {
  1014. path: '/platinum_team_settings',
  1015. name: 'platinum_team_settings',
  1016. component: Main,
  1017. meta: {
  1018. requireAuth: true,
  1019. },
  1020. redirect: { name: 'platinum_team_settings_tab' },
  1021. children: [
  1022. {
  1023. path: '/platinum_team_settings/platinum_team_settings_tab',
  1024. name: 'platinum_team_settings_tab',
  1025. component: () => import('@/views/platinum/platinum_team_settings/index.vue'),
  1026. meta: {
  1027. requireAuth: true,
  1028. },
  1029. },
  1030. ]
  1031. },
  1032. {
  1033. path: '/platinum_account_manager',
  1034. name: 'platinum_account_manager',
  1035. component: Main,
  1036. meta: {
  1037. requireAuth: true,
  1038. },
  1039. redirect: { name: 'platinum_account_manager_tab' },
  1040. children: [
  1041. {
  1042. path: '/platinum_account_manager/platinum_account_manager_tab',
  1043. name: 'platinum_account_manager_tab',
  1044. component: () => import('@/views/platinum/platinum_account_manager/index.vue'),
  1045. meta: {
  1046. requireAuth: true,
  1047. },
  1048. },
  1049. ]
  1050. },
  1051. {
  1052. path: '/trading_strategy_notes_sub',
  1053. name: 'trading_strategy_notes_sub',
  1054. component: Main,
  1055. meta: {
  1056. requireAuth: true,
  1057. },
  1058. redirect: { name: 'trading_strategy_notes' },
  1059. children: [
  1060. {
  1061. path: '/trading_strategy_notes_sub/trading_strategy_notes',
  1062. name: 'trading_strategy_notes',
  1063. component: () => import('@/views/ping_an/trading_strategy_notes_sub/trading_strategy_notes/index.vue'),
  1064. meta: {
  1065. requireAuth: true,
  1066. },
  1067. },
  1068. ]
  1069. },
  1070. {
  1071. path: '/goods_info_p',
  1072. name: 'goods_info_p',
  1073. component: Main,
  1074. meta: {
  1075. requireAuth: true,
  1076. },
  1077. redirect: { name: 'goods_info_p_spot' },
  1078. children: [
  1079. {
  1080. path: '/goods_info_p/goods_info_p_spot',
  1081. name: 'goods_info_p_spot',
  1082. component: () => import('@/views/ping_an/goods_info_p/goods_info_p_spot/index.vue'),
  1083. meta: {
  1084. requireAuth: true,
  1085. },
  1086. },
  1087. {
  1088. path: '/goods_info_p/goods_info_p_hedge',
  1089. name: 'goods_info_p_hedge',
  1090. component: () => import('@/views/ping_an/goods_info_p/goods_info_p_hedge/index.vue'),
  1091. meta: {
  1092. requireAuth: true,
  1093. },
  1094. },
  1095. ]
  1096. },
  1097. {
  1098. path: '/division_management',
  1099. name: 'division_management',
  1100. component: Main,
  1101. meta: {
  1102. requireAuth: true,
  1103. },
  1104. redirect: { name: 'division_management_sub' },
  1105. children: [
  1106. {
  1107. path: '/division_management/division_management_sub',
  1108. name: 'division_management_sub',
  1109. component: () => import('@/views/ping_an/division_management/division_management_sub/index.vue'),
  1110. meta: {
  1111. requireAuth: true,
  1112. },
  1113. },
  1114. ]
  1115. },
  1116. {
  1117. path: '/spot_execution_management',
  1118. name: 'spot_execution_management',
  1119. component: Main,
  1120. meta: {
  1121. requireAuth: true,
  1122. },
  1123. redirect: { name: 'spot_execution_management_all' },
  1124. children: [
  1125. {
  1126. path: '/spot_execution_management/spot_execution_management_all',
  1127. name: 'spot_execution_management_all',
  1128. component: () => import('@/views/ping_an/spot_execution_management/spot_execution_management_all/index.vue'),
  1129. meta: {
  1130. requireAuth: true,
  1131. },
  1132. },
  1133. {
  1134. path: '/spot_execution_management/spot_execution_management_pending',
  1135. name: 'spot_execution_management_pending',
  1136. component: () => import('@/views/ping_an/spot_execution_management/spot_execution_management_pending/index.vue'),
  1137. meta: {
  1138. requireAuth: true,
  1139. },
  1140. },
  1141. {
  1142. path: '/spot_execution_management/spot_execution_management_today',
  1143. name: 'spot_execution_management_today',
  1144. component: () => import('@/views/ping_an/spot_execution_management/spot_execution_management_today/index.vue'),
  1145. meta: {
  1146. requireAuth: true,
  1147. },
  1148. },
  1149. ]
  1150. },
  1151. {
  1152. path: '/transaction_main_body',
  1153. name: 'transaction_main_body',
  1154. component: Main,
  1155. meta: {
  1156. requireAuth: true,
  1157. },
  1158. redirect: { name: 'transaction_main_body_normal' },
  1159. children: [
  1160. {
  1161. path: '/transaction_main_body/transaction_main_body_normal',
  1162. name: 'transaction_main_body_normal',
  1163. component: () => import('@/views/ping_an/transaction_main_body/transaction_main_body_normal/index.vue'),
  1164. meta: {
  1165. requireAuth: true,
  1166. },
  1167. },
  1168. {
  1169. path: '/transaction_main_body/transaction_main_body_disabled',
  1170. name: 'transaction_main_body_disabled',
  1171. component: () => import('@/views/ping_an/transaction_main_body/transaction_main_body_disabled/index.vue'),
  1172. meta: {
  1173. requireAuth: true,
  1174. },
  1175. },
  1176. ]
  1177. },
  1178. {
  1179. path: '/futures_order_search',
  1180. name: 'futures_order_search',
  1181. component: Main,
  1182. meta: {
  1183. requireAuth: true,
  1184. },
  1185. redirect: { name: 'futures_order_search_tradepostion' },
  1186. children: [
  1187. {
  1188. path: '/futures_order_search/futures_order_search_tradepostion',
  1189. name: 'futures_order_search_tradepostion',
  1190. component: () => import('@/views/ping_an/futures_order_search/futures_order_search_tradepostion/index.vue'),
  1191. meta: {
  1192. requireAuth: true,
  1193. },
  1194. },
  1195. {
  1196. path: '/futures_order_search/futures_order_search_orderdetail',
  1197. name: 'futures_order_search_orderdetail',
  1198. component: () => import('@/views/ping_an/futures_order_search/futures_order_search_orderdetail/index.vue'),
  1199. meta: {
  1200. requireAuth: true,
  1201. },
  1202. },
  1203. {
  1204. path: '/futures_order_search/futures_order_search_tradedetail',
  1205. name: 'futures_order_search_tradedetail',
  1206. component: () => import('@/views/ping_an/futures_order_search/futures_order_search_tradedetail/index.vue'),
  1207. meta: {
  1208. requireAuth: true,
  1209. },
  1210. },
  1211. {
  1212. path: '/futures_order_search/futures_order_search_outtradedetail',
  1213. name: 'futures_order_search_outtradedetail',
  1214. component: () => import('@/views/ping_an/futures_order_search/futures_order_search_outtradedetail/index.vue'),
  1215. meta: {
  1216. requireAuth: true,
  1217. },
  1218. },
  1219. ]
  1220. },
  1221. {
  1222. path: '/provisional_pricing_info_sub',
  1223. name: 'provisional_pricing_info_sub',
  1224. component: Main,
  1225. meta: {
  1226. requireAuth: true,
  1227. },
  1228. redirect: { name: 'provisional_pricing_info' },
  1229. children: [
  1230. {
  1231. path: '/provisional_pricing_info_sub/provisional_pricing_info',
  1232. name: 'provisional_pricing_info',
  1233. component: () => import('@/views/ping_an/provisional_pricing_info_sub/provisional_pricing_info/index.vue'),
  1234. meta: {
  1235. requireAuth: true,
  1236. },
  1237. },
  1238. ]
  1239. },
  1240. {
  1241. path: '/query_of_opponent_details',
  1242. name: 'query_of_opponent_details',
  1243. component: Main,
  1244. meta: {
  1245. requireAuth: true,
  1246. },
  1247. redirect: { name: 'query_of_opponent_details_pricing' },
  1248. children: [
  1249. {
  1250. path: '/query_of_opponent_details/query_of_opponent_details_pricing',
  1251. name: 'query_of_opponent_details_pricing',
  1252. component: () => import('@/views/ping_an/query_of_opponent_details/query_of_opponent_details_pricing/index.vue'),
  1253. meta: {
  1254. requireAuth: true,
  1255. },
  1256. },
  1257. {
  1258. path: '/query_of_opponent_details/query_of_opponent_details_inout',
  1259. name: 'query_of_opponent_details_inout',
  1260. component: () => import('@/views/ping_an/query_of_opponent_details/query_of_opponent_details_inout/index.vue'),
  1261. meta: {
  1262. requireAuth: true,
  1263. },
  1264. },
  1265. {
  1266. path: '/query_of_opponent_details/query_of_opponent_details_futurestrading',
  1267. name: 'query_of_opponent_details_futurestrading',
  1268. component: () => import('@/views/ping_an/query_of_opponent_details/query_of_opponent_details_futurestrading/index.vue'),
  1269. meta: {
  1270. requireAuth: true,
  1271. },
  1272. },
  1273. ]
  1274. },
  1275. {
  1276. path: '/platinum_salesman_performance_report',
  1277. name: 'platinum_salesman_performance_report',
  1278. component: Main,
  1279. meta: {
  1280. requireAuth: true,
  1281. },
  1282. redirect: { name: 'platinum_salesman_performance_report_tab' },
  1283. children: [
  1284. {
  1285. path: '/platinum_salesman_performance_report/platinum_salesman_performance_report_tab',
  1286. name: 'platinum_salesman_performance_report_tab',
  1287. component: () => import('@/views/report/platinum_salesman_performance_report/platinum_salesman_performance_report_tab/index.vue'),
  1288. meta: {
  1289. requireAuth: true,
  1290. },
  1291. },
  1292. ]
  1293. },
  1294. {
  1295. path: '/platinum_customer_service_report',
  1296. name: 'platinum_customer_service_report',
  1297. component: Main,
  1298. meta: {
  1299. requireAuth: true,
  1300. },
  1301. redirect: { name: 'platinum_customer_service_report_reach_rate_report_tab' },
  1302. children: [
  1303. {
  1304. path: '/platinum_customer_service_report/platinum_customer_service_report_reach_rate_report_tab',
  1305. name: 'platinum_customer_service_report_reach_rate_report_tab',
  1306. component: () => import('@/views/report/platinum_customer_service_report/platinum_customer_service_report_reach_rate_report_tab/index.vue'),
  1307. meta: {
  1308. requireAuth: true,
  1309. },
  1310. },
  1311. {
  1312. path: '/platinum_customer_service_report/platinum_customer_service_report_team_annualized_performance_ranking_report_tab',
  1313. name: 'platinum_customer_service_report_team_annualized_performance_ranking_report_tab',
  1314. component: () => import('@/views/report/platinum_customer_service_report/platinum_customer_service_report_team_annualized_performance_ranking_report_tab/index.vue'),
  1315. meta: {
  1316. requireAuth: true,
  1317. },
  1318. },
  1319. {
  1320. path: '/platinum_customer_service_report/platinum_customer_service_report_personal_annualized_performance_ranking_report_tab',
  1321. name: 'platinum_customer_service_report_personal_annualized_performance_ranking_report_tab',
  1322. component: () => import('@/views/report/platinum_customer_service_report/platinum_customer_service_report_personal_annualized_performance_ranking_report_tab/index.vue'),
  1323. meta: {
  1324. requireAuth: true,
  1325. },
  1326. },
  1327. {
  1328. path: '/platinum_customer_service_report/platinum_customer_service_report_team_manager_annual_performance_ranking_report_tab',
  1329. name: 'platinum_customer_service_report_team_manager_annual_performance_ranking_report_tab',
  1330. component: () => import('@/views/report/platinum_customer_service_report/platinum_customer_service_report_team_manager_annual_performance_ranking_report_tab/index.vue'),
  1331. meta: {
  1332. requireAuth: true,
  1333. },
  1334. },
  1335. ]
  1336. },
  1337. {
  1338. path: '/platinum_asset_management_sale_report',
  1339. name: 'platinum_asset_management_sale_report',
  1340. component: Main,
  1341. meta: {
  1342. requireAuth: true,
  1343. },
  1344. redirect: { name: 'platinum_asset_management_sale_report_company_day_tab' },
  1345. children: [
  1346. {
  1347. path: '/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_day_tab',
  1348. name: 'platinum_asset_management_sale_report_company_day_tab',
  1349. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_day_tab/index.vue'),
  1350. meta: {
  1351. requireAuth: true,
  1352. },
  1353. },
  1354. {
  1355. path: '/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_week_tab',
  1356. name: 'platinum_asset_management_sale_report_company_week_tab',
  1357. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_week_tab/index.vue'),
  1358. meta: {
  1359. requireAuth: true,
  1360. },
  1361. },
  1362. {
  1363. path: '/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_month_tab',
  1364. name: 'platinum_asset_management_sale_report_company_month_tab',
  1365. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_asset_management_sale_report_company_month_tab/index.vue'),
  1366. meta: {
  1367. requireAuth: true,
  1368. },
  1369. },
  1370. {
  1371. path: '/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_departmental_week_tab',
  1372. name: 'platinum_precious_metal_sales_report_departmental_week_tab',
  1373. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_departmental_week_tab/index.vue'),
  1374. meta: {
  1375. requireAuth: true,
  1376. },
  1377. },
  1378. {
  1379. path: '/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_departmental_month_tab',
  1380. name: 'platinum_precious_metal_sales_report_departmental_month_tab',
  1381. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_departmental_month_tab/index.vue'),
  1382. meta: {
  1383. requireAuth: true,
  1384. },
  1385. },
  1386. {
  1387. path: '/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_product_month_tab',
  1388. name: 'platinum_precious_metal_sales_report_product_month_tab',
  1389. component: () => import('@/views/report/platinum_asset_management_sale_report/platinum_precious_metal_sales_report_product_month_tab/index.vue'),
  1390. meta: {
  1391. requireAuth: true,
  1392. },
  1393. },
  1394. ]
  1395. },
  1396. {
  1397. path: '/platinum_precious_metal_sales_report',
  1398. name: 'platinum_precious_metal_sales_report',
  1399. component: Main,
  1400. meta: {
  1401. requireAuth: true,
  1402. },
  1403. redirect: { name: 'platinum_precious_metal_sales_report_company_tab' },
  1404. children: [
  1405. {
  1406. path: '/platinum_precious_metal_sales_report/platinum_precious_metal_sales_report_company_tab',
  1407. name: 'platinum_precious_metal_sales_report_company_tab',
  1408. component: () => import('@/views/report/platinum_precious_metal_sales_report/platinum_precious_metal_sales_report_company_tab/index.vue'),
  1409. meta: {
  1410. requireAuth: true,
  1411. },
  1412. },
  1413. {
  1414. path: '/platinum_precious_metal_sales_report/platinum_precious_metal_sales_report_departmental_tab',
  1415. name: 'platinum_precious_metal_sales_report_departmental_tab',
  1416. component: () => import('@/views/report/platinum_precious_metal_sales_report/platinum_precious_metal_sales_report_departmental_tab/index.vue'),
  1417. meta: {
  1418. requireAuth: true,
  1419. },
  1420. },
  1421. ]
  1422. },
  1423. {
  1424. path: '/platinum_financial_payment',
  1425. name: 'platinum_financial_payment',
  1426. component: Main,
  1427. meta: {
  1428. requireAuth: true,
  1429. },
  1430. redirect: { name: 'platinum_financial_payment_waiting_payment_tab' },
  1431. children: [
  1432. {
  1433. path: '/platinum_financial_payment/platinum_financial_payment_waiting_payment_tab',
  1434. name: 'platinum_financial_payment_waiting_payment_tab',
  1435. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_waiting_payment_tab/index.vue'),
  1436. meta: {
  1437. requireAuth: true,
  1438. },
  1439. },
  1440. {
  1441. path: '/platinum_financial_payment/platinum_financial_payment_in_waiting_payment_tab',
  1442. name: 'platinum_financial_payment_in_waiting_payment_tab',
  1443. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_in_waiting_payment_tab/index.vue'),
  1444. meta: {
  1445. requireAuth: true,
  1446. },
  1447. },
  1448. {
  1449. path: '/platinum_financial_payment/platinum_financial_payment_waiting_payment_cash_tab',
  1450. name: 'platinum_financial_payment_waiting_payment_cash_tab',
  1451. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_waiting_payment_cash_tab/index.vue'),
  1452. meta: {
  1453. requireAuth: true,
  1454. },
  1455. },
  1456. {
  1457. path: '/platinum_financial_payment/platinum_financial_payment_payment_tab',
  1458. name: 'platinum_financial_payment_payment_tab',
  1459. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_payment_tab/index.vue'),
  1460. meta: {
  1461. requireAuth: true,
  1462. },
  1463. },
  1464. {
  1465. path: '/platinum_financial_payment/platinum_financial_payment_all_tab',
  1466. name: 'platinum_financial_payment_all_tab',
  1467. component: () => import('@/views/platinum/platinum_financial_payment/platinum_financial_payment_all_tab/index.vue'),
  1468. meta: {
  1469. requireAuth: true,
  1470. },
  1471. },
  1472. ]
  1473. },
  1474. {
  1475. path: '/platinum_precious_metal_signing',
  1476. name: 'platinum_precious_metal_signing',
  1477. component: Main,
  1478. meta: {
  1479. requireAuth: true,
  1480. },
  1481. redirect: { name: 'platinum_precious_metal_signing_unsubmitted' },
  1482. children: [
  1483. {
  1484. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_unsubmitted',
  1485. name: 'platinum_precious_metal_signing_unsubmitted',
  1486. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_unsubmitted/index.vue'),
  1487. meta: {
  1488. requireAuth: true,
  1489. },
  1490. },
  1491. {
  1492. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_pending_review',
  1493. name: 'platinum_precious_metal_signing_pending_review',
  1494. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_pending_review/index.vue'),
  1495. meta: {
  1496. requireAuth: true,
  1497. },
  1498. },
  1499. {
  1500. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_repurchase_pending_review',
  1501. name: 'platinum_precious_metal_signing_repurchase_pending_review',
  1502. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_repurchase_pending_review/index.vue'),
  1503. meta: {
  1504. requireAuth: true,
  1505. },
  1506. },
  1507. {
  1508. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_normal',
  1509. name: 'platinum_precious_metal_signing_normal',
  1510. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_normal/index.vue'),
  1511. meta: {
  1512. requireAuth: true,
  1513. },
  1514. },
  1515. {
  1516. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_success',
  1517. name: 'platinum_precious_metal_signing_success',
  1518. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_success/index.vue'),
  1519. meta: {
  1520. requireAuth: true,
  1521. },
  1522. },
  1523. {
  1524. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_refunded',
  1525. name: 'platinum_precious_metal_signing_refunded',
  1526. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_refunded/index.vue'),
  1527. meta: {
  1528. requireAuth: true,
  1529. },
  1530. },
  1531. {
  1532. path: '/platinum_precious_metal_signing/platinum_precious_metal_signing_all',
  1533. name: 'platinum_precious_metal_signing_all',
  1534. component: () => import('@/views/platinum/platinum_precious_metal_signing/platinum_precious_metal_signing_all/index.vue'),
  1535. meta: {
  1536. requireAuth: true,
  1537. },
  1538. },
  1539. ]
  1540. },
  1541. {
  1542. path: '/platinum_asset_management_signing',
  1543. name: 'platinum_asset_management_signing',
  1544. component: Main,
  1545. meta: {
  1546. requireAuth: true,
  1547. },
  1548. redirect: { name: 'platinum_asset_management_signing_unsubmitted' },
  1549. children: [
  1550. {
  1551. path: '/platinum_asset_management_signing/platinum_asset_management_signing_unsubmitted',
  1552. name: 'platinum_asset_management_signing_unsubmitted',
  1553. component: () => import('@/views/platinum/platinum_asset_management_signing/platinum_asset_management_signing_unsubmitted/index.vue'),
  1554. meta: {
  1555. requireAuth: true,
  1556. },
  1557. },
  1558. {
  1559. path: '/platinum_asset_management_signing/platinum_asset_management_signing_pending_review',
  1560. name: 'platinum_asset_management_signing_pending_review',
  1561. component: () => import('@/views/platinum/platinum_asset_management_signing/platinum_asset_management_signing_pending_review/index.vue'),
  1562. meta: {
  1563. requireAuth: true,
  1564. },
  1565. },
  1566. {
  1567. path: '/platinum_asset_management_signing/platinum_asset_management_signing_finish',
  1568. name: 'platinum_asset_management_signing_finish',
  1569. component: () => import('@/views/platinum/platinum_asset_management_signing/platinum_asset_management_signing_finish/index.vue'),
  1570. meta: {
  1571. requireAuth: true,
  1572. },
  1573. },
  1574. {
  1575. path: '/platinum_asset_management_signing/platinum_asset_management_signing_normal',
  1576. name: 'platinum_asset_management_signing_normal',
  1577. component: () => import('@/views/platinum/platinum_asset_management_signing/platinum_asset_management_signing_normal/index.vue'),
  1578. meta: {
  1579. requireAuth: true,
  1580. },
  1581. },
  1582. ]
  1583. },
  1584. {
  1585. path: '/platinum_broker_management',
  1586. name: 'platinum_broker_management',
  1587. component: Main,
  1588. meta: {
  1589. requireAuth: true,
  1590. },
  1591. redirect: { name: 'platinum_broker_management_normal_tab' },
  1592. children: [
  1593. {
  1594. path: '/platinum_broker_management/platinum_broker_management_normal_tab',
  1595. name: 'platinum_broker_management_normal_tab',
  1596. component: () => import('@/views/platinum/platinum_broker_management/normal/index.vue'),
  1597. meta: {
  1598. requireAuth: true,
  1599. },
  1600. },
  1601. {
  1602. path: '/platinum_broker_management/platinum_broker_management_waiting_tab',
  1603. name: 'platinum_broker_management_waiting_tab',
  1604. component: () => import('@/views/platinum/platinum_broker_management/waiting/index.vue'),
  1605. meta: {
  1606. requireAuth: true,
  1607. },
  1608. },
  1609. {
  1610. path: '/platinum_broker_management/platinum_broker_management_refuse_tab',
  1611. name: 'platinum_broker_management_refuse_tab',
  1612. component: () => import('@/views/platinum/platinum_broker_management/refuse/index.vue'),
  1613. meta: {
  1614. requireAuth: true,
  1615. },
  1616. },
  1617. ]
  1618. },
  1619. {
  1620. path: '/spot_trade',
  1621. name: EnumRouterName.spot_trade,
  1622. component: Main,
  1623. meta: {
  1624. requireAuth: true,
  1625. },
  1626. redirect: { name: EnumRouterName.warehouse_receipt_trade, },
  1627. children: [
  1628. {
  1629. path: '/spot_trade/warehouse_receipt_trade',
  1630. name: EnumRouterName.warehouse_receipt_trade,
  1631. component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/index.vue'),
  1632. meta: {
  1633. requireAuth: true,
  1634. },
  1635. children: [
  1636. {
  1637. path: '/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_floating_price',
  1638. name: EnumRouterName.warehouse_receipt_trade_floating_price,
  1639. component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_floating_price/index.vue'),
  1640. meta: {
  1641. requireAuth: true,
  1642. },
  1643. },
  1644. {
  1645. path: '/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_price',
  1646. name: EnumRouterName.warehouse_receipt_trade_price,
  1647. component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_price/index.vue'),
  1648. meta: {
  1649. requireAuth: true,
  1650. },
  1651. },
  1652. {
  1653. path: '/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_blocs',
  1654. name: 'warehouse_receipt_trade_blocs',
  1655. component: () => import('@/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_blocs/index.vue'),
  1656. meta: {
  1657. requireAuth: true,
  1658. },
  1659. },
  1660. ]
  1661. },
  1662. {
  1663. path: '/spot_trade/warehouse_pre_sale',
  1664. name: EnumRouterName.warehouse_pre_sale,
  1665. component: () => import('@/views/market/spot_trade/warehouse_pre_sale/index.vue'),
  1666. meta: {
  1667. requireAuth: true,
  1668. },
  1669. children: [
  1670. {
  1671. path: '/spot_trade/warehouse_pre_sale/warehouse_pre_sale_floating_price',
  1672. name: EnumRouterName.warehouse_pre_sale_floating_price,
  1673. component: () => import('@/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_floating_price/index.vue'),
  1674. meta: {
  1675. requireAuth: true,
  1676. },
  1677. },
  1678. {
  1679. path: '/spot_trade/warehouse_pre_sale/warehouse_pre_sale_price',
  1680. name: EnumRouterName.warehouse_pre_sale_price,
  1681. component: () => import('@/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_price/index.vue'),
  1682. meta: {
  1683. requireAuth: true,
  1684. },
  1685. },
  1686. {
  1687. path: '/spot_trade/warehouse_pre_sale/warehouse_pre_sale_blocs',
  1688. name: EnumRouterName.warehouse_pre_sale_blocs,
  1689. component: () => import('@/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_blocs/index.vue'),
  1690. meta: {
  1691. requireAuth: true,
  1692. },
  1693. },
  1694. ]
  1695. },
  1696. {
  1697. path: '/spot_trade/spot_trade_order_transaction',
  1698. name: EnumRouterName.spot_trade_order_transaction,
  1699. component: () => import('@/views/market/spot_trade/spot_trade_order_transaction/index.vue'),
  1700. meta: {
  1701. requireAuth: true,
  1702. },
  1703. children: [
  1704. {
  1705. path: '/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_basis_difference',
  1706. name: EnumRouterName.spot_trade_order_transaction_basis_difference,
  1707. component: () => import('@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_basis_difference/index.vue'),
  1708. meta: {
  1709. requireAuth: true,
  1710. },
  1711. },
  1712. {
  1713. path: '/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_listing_transfer',
  1714. name: EnumRouterName.spot_trade_order_transaction_listing_transfer,
  1715. component: () => import('@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_listing_transfer/index.vue'),
  1716. meta: {
  1717. requireAuth: true,
  1718. },
  1719. },
  1720. ]
  1721. },
  1722. {
  1723. path: '/spot_trade/spot_trade_reference_market',
  1724. name: EnumRouterName.spot_trade_reference_market,
  1725. component: () => import('@/views/market/spot_trade/spot_trade_reference_market/index.vue'),
  1726. meta: {
  1727. requireAuth: true,
  1728. },
  1729. }
  1730. ]
  1731. },
  1732. {
  1733. path: '/search_document_records',
  1734. name: EnumRouterName.search_document_records,
  1735. component: Main,
  1736. meta: {
  1737. requireAuth: true,
  1738. },
  1739. // redirect: { name: EnumRouterName.search_document_records, },
  1740. children: [
  1741. {
  1742. path: '/search_document_records/search_commodity_contract',
  1743. name: EnumRouterName.search_commodity_contract,
  1744. component: () => import('@/views/search/search_document_records/search_commodity_contract/index.vue'),
  1745. meta: {
  1746. requireAuth: true,
  1747. },
  1748. children: [
  1749. {
  1750. path: '/search_document_records/search_commodity_contract/search_document_records_contract_summary',
  1751. name: EnumRouterName.search_document_records_contract_summary,
  1752. component: () => import('@/views/search/search_document_records/search_commodity_contract/search_document_records_contract_summary/index.vue'),
  1753. meta: {
  1754. requireAuth: true,
  1755. },
  1756. },
  1757. {
  1758. path: '/search_document_records/search_commodity_contract/search_document_records_commission_record',
  1759. name: EnumRouterName.search_document_records_commission_record,
  1760. component: () => import('@/views/search/search_document_records/search_commodity_contract/search_document_records_commission_record/index.vue'),
  1761. meta: {
  1762. requireAuth: true,
  1763. },
  1764. },
  1765. {
  1766. path: '/search_document_records/search_commodity_contract/search_document_records_delivery_record',
  1767. name: EnumRouterName.search_document_records_delivery_record,
  1768. component: () => import('@/views/search/search_document_records/search_commodity_contract/search_document_records_delivery_record/index.vue'),
  1769. meta: {
  1770. requireAuth: true,
  1771. },
  1772. },
  1773. {
  1774. path: '/search_document_records/search_document_records/search_document_records_transaction_record',
  1775. name: EnumRouterName.search_document_records_transaction_record,
  1776. component: () => import('@/views/search/search_document_records/search_commodity_contract/search_document_records_transaction_record/index.vue'),
  1777. meta: {
  1778. requireAuth: true,
  1779. },
  1780. },
  1781. ]
  1782. },
  1783. {
  1784. path: '/search_document_records/search_pre_sale_warehouse_receipt',
  1785. name: EnumRouterName.search_pre_sale_warehouse_receipt,
  1786. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/index.vue'),
  1787. meta: {
  1788. requireAuth: true,
  1789. },
  1790. children: [
  1791. {
  1792. path: '/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_commission_record',
  1793. name: EnumRouterName.search_pre_sale_warehouse_receipt_commission_record,
  1794. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_commission_record/index.vue'),
  1795. meta: {
  1796. requireAuth: true,
  1797. },
  1798. },
  1799. {
  1800. path: '/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_order_summary',
  1801. name: EnumRouterName.search_pre_sale_warehouse_receipt_order_summary,
  1802. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_order_summary/index.vue'),
  1803. meta: {
  1804. requireAuth: true,
  1805. },
  1806. },
  1807. {
  1808. path: '/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_protocol_specified_record',
  1809. name: EnumRouterName.search_pre_sale_warehouse_receipt_protocol_specified_record,
  1810. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_protocol_specified_record/index.vue'),
  1811. meta: {
  1812. requireAuth: true,
  1813. },
  1814. },
  1815. {
  1816. path: '/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_transaction_record',
  1817. name: EnumRouterName.search_pre_sale_warehouse_receipt_transaction_record,
  1818. component: () => import('@/views/search/search_document_records/search_pre_sale_warehouse_receipt/search_pre_sale_warehouse_receipt_transaction_record/index.vue'),
  1819. meta: {
  1820. requireAuth: true,
  1821. },
  1822. },
  1823. ]
  1824. },
  1825. {
  1826. path: '/search_document_records/search_spot_warrant',
  1827. name: EnumRouterName.search_spot_warrant,
  1828. component: () => import('@/views/search/search_document_records/search_spot_warrant/index.vue'),
  1829. meta: {
  1830. requireAuth: true,
  1831. },
  1832. children: [
  1833. {
  1834. path: '/search_document_records/search_spot_warrant/search_spot_warrant_transaction_record',
  1835. name: EnumRouterName.search_spot_warrant_transaction_record,
  1836. component: () => import('@/views/search/search_document_records/search_spot_warrant/search_spot_warrant_transaction_record/index.vue'),
  1837. meta: {
  1838. requireAuth: true,
  1839. },
  1840. },
  1841. {
  1842. path: '/search_document_records/search_spot_warrant/search_spot_warrant_protocol_specified_record',
  1843. name: EnumRouterName.search_spot_warrant_protocol_specified_record,
  1844. component: () => import('@/views/search/search_document_records/search_spot_warrant/search_spot_warrant_protocol_specified_record/index.vue'),
  1845. meta: {
  1846. requireAuth: true,
  1847. },
  1848. },
  1849. {
  1850. path: '/search_document_records/search_spot_warrant/search_spot_warrant_listing_record',
  1851. name: EnumRouterName.search_spot_warrant_listing_record,
  1852. component: () => import('@/views/search/search_document_records/search_spot_warrant/search_spot_warrant_listing_record/index.vue'),
  1853. meta: {
  1854. requireAuth: true,
  1855. },
  1856. },
  1857. {
  1858. path: '/search_document_records/search_spot_warrant/search_spot_warrant_warehouse_receipt_details',
  1859. name: EnumRouterName.search_spot_warrant_warehouse_receipt_details,
  1860. component: () => import('@/views/search/search_document_records/search_spot_warrant/search_spot_warrant_warehouse_receipt_details/index.vue'),
  1861. meta: {
  1862. requireAuth: true,
  1863. },
  1864. },
  1865. ]
  1866. },
  1867. ]
  1868. },
  1869. {
  1870. path: '/search_capital_flow',
  1871. name: EnumRouterName.search_capital_flow,
  1872. component: Main,
  1873. meta: {
  1874. requireAuth: true,
  1875. },
  1876. children: [
  1877. {
  1878. path: '/search_capital_flow/search_capital_flow_tab',
  1879. name: EnumRouterName.search_capital_flow_tab,
  1880. component: () => import('@/views/search/search_capital_flow/search_capital_flow_tab/index.vue'),
  1881. meta: {
  1882. requireAuth: true,
  1883. },
  1884. }
  1885. ]
  1886. },
  1887. {
  1888. path: '/search_financing_inquiry',
  1889. name: EnumRouterName.search_financing_inquiry,
  1890. component: Main,
  1891. meta: {
  1892. requireAuth: true,
  1893. },
  1894. children: [
  1895. {
  1896. path: '/search_financing_inquiry/search_financing_inquiry_apply_order',
  1897. name: EnumRouterName.search_financing_inquiry_apply_order,
  1898. component: () => import('@/views/search/search_financing_inquiry/search_financing_inquiry_apply_order/index.vue'),
  1899. meta: {
  1900. requireAuth: true,
  1901. },
  1902. },
  1903. {
  1904. path: '/search_financing_inquiry/search_financing_inquiry_contract',
  1905. name: EnumRouterName.search_financing_inquiry_contract,
  1906. component: () => import('@/views/search/search_financing_inquiry/search_financing_inquiry_contract/index.vue'),
  1907. meta: {
  1908. requireAuth: true,
  1909. },
  1910. }
  1911. ]
  1912. },
  1913. {
  1914. path: '/search_performance_query',
  1915. name: EnumRouterName.search_performance_query,
  1916. component: Main,
  1917. meta: {
  1918. requireAuth: true,
  1919. },
  1920. children: [
  1921. {
  1922. path: '/search_performance_query/search_performance_query_buy_performance',
  1923. name: EnumRouterName.search_performance_query_buy_performance,
  1924. component: () => import('@/views/search/search_performance_query/search_performance_query_buy_performance/index.vue'),
  1925. meta: {
  1926. requireAuth: true,
  1927. },
  1928. },
  1929. {
  1930. path: '/search_performance_query/search_performance_query_sell_performance',
  1931. name: EnumRouterName.search_performance_query_sell_performance,
  1932. component: () => import('@/views/search/search_performance_query/search_performance_query_sell_performance/index.vue'),
  1933. meta: {
  1934. requireAuth: true,
  1935. },
  1936. }
  1937. ]
  1938. },
  1939. {
  1940. path: '/search_pickup_query',
  1941. name: EnumRouterName.search_pickup_query,
  1942. component: Main,
  1943. meta: {
  1944. requireAuth: true,
  1945. },
  1946. children: [
  1947. {
  1948. path: '/search_pickup_query/search_pickup_query_tab',
  1949. name: EnumRouterName.search_pickup_query_tab,
  1950. component: () => import('@/views/search/search_pickup_query/search_pickup_query_tab/index.vue'),
  1951. meta: {
  1952. requireAuth: true,
  1953. },
  1954. }
  1955. ]
  1956. },
  1957. {
  1958. path: '/entry_of_spot_information_sub',
  1959. name: 'entry_of_spot_information_sub',
  1960. component: Main,
  1961. meta: {
  1962. requireAuth: true,
  1963. },
  1964. children: [
  1965. {
  1966. path: '/entry_of_spot_information_sub/entry_of_spot_information',
  1967. name: 'entry_of_spot_information',
  1968. component: () => import('@/views/hedging/entry_of_spot_information/index.vue'),
  1969. meta: {
  1970. requireAuth: true,
  1971. },
  1972. },
  1973. ]
  1974. },
  1975. {
  1976. path: '/spot_price_management',
  1977. name: EnumRouterName.spot_price_management,
  1978. component: Main,
  1979. meta: {
  1980. requireAuth: true,
  1981. },
  1982. children: [
  1983. {
  1984. path: '/spot_price_management/spot_price_management_disable',
  1985. name: EnumRouterName.spot_price_management_disable,
  1986. component: () => import('@/views/hedging/spot_price_management/spot_price_management_disable/index.vue'),
  1987. meta: {
  1988. requireAuth: true,
  1989. },
  1990. },
  1991. {
  1992. path: '/spot_price_management/spot_price_management_normal',
  1993. name: EnumRouterName.spot_price_management_normal,
  1994. component: () => import('@/views/hedging/spot_price_management/spot_price_management_normal/index.vue'),
  1995. meta: {
  1996. requireAuth: true,
  1997. },
  1998. },
  1999. ]
  2000. },
  2001. ],
  2002. },
  2003. {
  2004. path: '/test',
  2005. name: 'test',
  2006. component: () => import('@/views/test/index.vue'),
  2007. },
  2008. {
  2009. // VueRouter 匹配规则是从上往下 建议把*放最后
  2010. path: '/:pathMatch(.*)*',
  2011. name: '404',
  2012. component: () => import('@/views/error-page/404.vue'),
  2013. },
  2014. ];
  2015. const router = createRouter({
  2016. history: createWebHashHistory(),
  2017. routes,
  2018. });
  2019. // 路由拦截
  2020. router.beforeEach((to, from, next) => {
  2021. // 前往登录页时 直接走登出流程
  2022. if (to.fullPath === '/login') {
  2023. eventBus.$emit('logout');
  2024. next();
  2025. } else {
  2026. // 前往其他页 判断是否是登录状态
  2027. if (isLogin()) {
  2028. return next();
  2029. } else {
  2030. if (!getLoadIsComplete()) { // 没有加载对应的资料,表示第一次启动项目
  2031. console.log('to', to);
  2032. const { ACCOUNT, PASSWORD } = to.query
  2033. const name = to.name ? to.name : 'home'
  2034. if (ACCOUNT && PASSWORD) {
  2035. setLoadComplete(false)
  2036. globalDataRefresh().then(() => {
  2037. const { ACCOUNT, PASSWORD } = to.query
  2038. login(ACCOUNT as string, PASSWORD as string, [], true).then(res => {
  2039. setLoadComplete(true)
  2040. localStorageUtil.setItem('loginAccount', ACCOUNT); // 缓存登录账号
  2041. eventBus.$emit('loginSuccess', true);
  2042. next({ name })
  2043. }).catch(err => {
  2044. // 异常需要跳转到错误页面,让用户手动重试
  2045. console.log('err', err);
  2046. })
  2047. })
  2048. } else { // 跳转到登录页面
  2049. next()
  2050. }
  2051. } else { //
  2052. next()
  2053. }
  2054. }
  2055. }
  2056. });
  2057. export default router;