How to use resolve method in Playwright Internal

Best JavaScript code snippet using playwright-internal

router.js

Source:router.js Github

copy

Full Screen

1import Vue from 'vue'2import Router from 'vue-router'3import store from '@/store/store'4import mainIndex from '@/pages/index'5const pop = () => import('@/components/pop/countMore.vue')6Vue.use(Router)7const router = new Router({8 routes: [9 {10 path: '/login',11 name: 'login',12 component: resolve => require(['@/pages/login.vue'], resolve)13 },14 //首页15 {16 path: '/index',17 name: 'mainIndex',18 meta: {19 requireAuth: true,20 },21 component: resolve => require(['@/pages/index.vue'], resolve),22 },23 //org router24 {25 path: '/orgManage/:ids',26 name: 'orgManage',27 meta: {28 requireAuth: true,29 },30 component: resolve => require(['@/pages/orgManage/org.vue'], resolve),31 children: [32 {33 path: 'group/:id',34 name: 'group',35 component: resolve => require(['@/components/infoDetail/group.vue'], resolve),36 },37 {38 path: 'info/:id/:switchs',39 name: 'info',40 component: resolve => require(['@/components/infoDetail/info.vue'], resolve),41 children:[42 {43 path: 'TeamMember',44 name: 'TeamMember',45 component: resolve => require(['@/components/pop/TeamMember.vue'], resolve),46 },47 //新增奖惩48 {49 path: 'RewardPunishment',50 name: 'RewardPunishment',51 meta: {52 requireAuth: true,53 },54 component: resolve => require(['@/components/pop/RewardPunishment.vue'], resolve),55 },56 //党组织管理/新增单位信息57 {path: 'UnitAdd',58 name: 'UnitAdd',59 meta: {60 requireAuth: true,61 },62 component: resolve => require(['@/components/pop/UnitAdd.vue'], resolve),63 },64 //新增支部评议65 {66 path: 'DemocraticReview',67 name: 'DemocraticReview',68 meta: {69 requireAuth: true,70 },71 component: resolve => require(['@/components/pop/DemocraticReview.vue'], resolve),72 },73 //联系方式党组联系人74 {75 path: 'Contacts',76 name: 'Contacts',77 meta: {78 requireAuth: true,79 },80 component: resolve => require(['@/components/pop/adminConfig/addadmin.vue'], resolve),81 },82 ]83 },84 {//党组织整建制转移85 path: 'InsideTransfer/:id',86 name: 'InsideTransfer',87 meta: {88 requireAuth: true,89 },90 component: resolve => require(['@/components/pop/InsideTransfer.vue'], resolve),91 },92 {//党组织增加93 path: 'AddOrganization',94 name: 'AddOrganization',95 meta: {96 requireAuth: true,97 },98 component: resolve => require(['@/components/pop/AddOrganization.vue'], resolve),99 },100 {//党支部合并101 path: 'PartyMerge/:id',102 name: 'PartyMerge',103 meta: {104 requireAuth: true,105 },106 component: resolve => require(['@/components/pop/PartyMerge.vue'], resolve),107 },108 {//党支部拆分109 path: 'PartySplit/:id',110 name: 'PartySplit',111 meta: {112 requireAuth: true,113 },114 component: resolve => require(['@/components/pop/PartySplit.vue'], resolve),115 },116 {//党支部撤销弹窗路由117 path: 'PartyRevoke',118 name: 'PartyRevoke',119 meta: {120 requireAuth: true,121 },122 component: resolve => require(['@/components/pop/PartyRevoke.vue'], resolve),123 },124 {//设置党小组弹窗路由125 path: 'PartyTeam/:id',126 name: 'PartyTeam',127 meta: {128 requireAuth: true,129 },130 component: resolve => require(['@/components/pop/PartyTeam.vue'], resolve),131 },132 {//党组织管理/批量修改弹窗路由133 path: 'BatchUpdate',134 name: 'BatchUpdate',135 meta: {136 requireAuth: true,137 },138 component: resolve => require(['@/components/pop/BatchUpdate.vue'], resolve),139 },140 {//组合查询弹窗路由141 path: 'CombinationQuery',142 name: 'CombinationQuery',143 meta: {144 requireAuth: true,145 },146 component: resolve => require(['@/components/pop/CombinationQuery.vue'], resolve),147 },148 ],149 },150 //baseSituation router151 {152 path: '/baseSituation',153 name: 'baseSituation',154 meta: {155 requireAuth: true,156 },157 component: resolve => require(['@/pages/baseSituation/baseSituation.vue'], resolve),158 },159 {160 path: '/custom/:id',161 name: 'custom',162 meta: {163 requireAuth: true,164 },165 components: {166 default: () => import('@/pages/custom/custom.vue'),167 },168 children:[169 {170 path:'addCustom',171 name:'addCustom',172 component:resolve=>require(['@/components/custom/addCustom.vue'],resolve)173 }174 ]175 },176 // count from router177 {178 path: '/countForm',179 name: 'countForm',180 meta: {181 requireAuth: true,182 },183 components: {184 default: () => import('@/pages/countForm/countForm.vue'),185 },186 //component: resolve => require(['@/pages/countForm/countForm.vue'], resolve),187 children: [188 {189 path: 'covers/form-custom',190 name: 'form-custom',191 component: resolve => require(['@/components/customtable/tables'], resolve),192 children: [193 {194 path: 'countMore/:id',195 name: 'countMore',196 component: pop197 }198 ]199 },200 {201 path: 'covers/form-10',202 name: 'form-10',203 component: resolve => require(['@/components/tables/tables10.vue'], resolve),204 children: [205 {206 path: 'countMore/:id',207 name: 'countMore',208 component: pop209 }210 ]211 },212 {213 path: 'covers/form-11',214 name: 'form-11',215 component: resolve => require(['@/components/tables/tables11.vue'], resolve),216 children: [217 {218 path: 'countMore/:id',219 name: 'countMore',220 component: pop221 }222 ]223 },224 {225 path: 'covers/form-13',226 name: 'form-13',227 component: resolve => require(['@/components/tables/tables13.vue'], resolve),228 children: [229 {230 path: 'countMore/:id',231 name: 'countMore',232 component: pop233 }234 ]235 },236 {237 path: 'covers/form-5',238 name: 'form-5',239 component: resolve => require(['@/components/tables/tables5.vue'], resolve),240 children: [241 {242 path: 'countMore/:id',243 name: 'countMore',244 component: pop245 }246 ]247 },248 {249 path: 'covers/form-6',250 name: 'form-6',251 component: resolve => require(['@/components/tables/tables6.vue'], resolve),252 children: [253 {254 path: 'countMore/:id',255 name: 'countMore',256 component: pop257 }258 ]259 },260 {261 path: 'covers/form-9',262 name: 'form-9',263 component: resolve => require(['@/components/tables/tables9.vue'], resolve),264 children: [265 {266 path: 'countMore/:id',267 name: 'countMore',268 component: pop269 }270 ]271 },272 {273 path: 'covers/form-15',274 name: 'form-15',275 component: resolve => require(['@/components/tables/tables15.vue'], resolve),276 children: [277 {278 path: 'countMore/:id',279 name: 'countMore',280 component: pop281 }282 ]283 },284 {285 path: 'covers/form-16',286 name: 'form-16',287 component: resolve => require(['@/components/tables/tables16.vue'], resolve),288 children: [289 {290 path: 'countMore/:id',291 name: 'countMore',292 component: pop293 }294 ]295 },296 {297 path: 'covers/form-30',298 name: 'form-30',299 component: resolve => require(['@/components/tables/tables30.vue'], resolve),300 children: [301 {302 path: 'countMore/:id',303 name: 'countMore',304 component: pop305 }306 ]307 },308 {309 path: 'covers/form-31',310 name: 'form-31',311 component: resolve => require(['@/components/tables/tables31.vue'], resolve),312 children: [313 {314 path: 'countMore/:id',315 name: 'countMore',316 component: pop317 }318 ]319 },320 {321 path: 'covers/form-32',322 name: 'form-32',323 component: resolve => require(['@/components/tables/tables32.vue'], resolve),324 children: [325 {326 path: 'countMore/:id',327 name: 'countMore',328 component: pop329 }330 ]331 },332 {333 path: 'covers/form-17',334 name: 'form-17',335 component: resolve => require(['@/components/tables/tables17.vue'], resolve),336 children: [337 {338 path: 'countMore/:id',339 name: 'countMore',340 component: pop341 }342 ]343 },344 {345 path: 'covers/form-18',346 name: 'form-18',347 component: resolve => require(['@/components/tables/tables18.vue'], resolve),348 children: [349 {350 path: 'countMore/:id',351 name: 'countMore',352 component: pop353 }354 ]355 },356 {357 path: 'covers/form-19',358 name: 'form-19',359 component: resolve => require(['@/components/tables/tables19.vue'], resolve),360 children: [361 {362 path: 'countMore/:id',363 name: 'countMore',364 component: pop365 }366 ]367 },368 {369 path: 'covers/form-20',370 name: 'form-20',371 component: resolve => require(['@/components/tables/tables20.vue'], resolve),372 children: [373 {374 path: 'countMore/:id',375 name: 'countMore',376 component: pop377 }378 ]379 },380 {381 path: 'covers/form-21',382 name: 'form-21',383 component: resolve => require(['@/components/tables/tables21.vue'], resolve),384 children: [385 {386 path: 'countMore/:id',387 name: 'countMore',388 component: pop389 }390 ]391 },392 {393 path: 'covers/form-25',394 name: 'form-25',395 component: resolve => require(['@/components/tables/tables25.vue'], resolve),396 children: [397 {398 path: 'countMore/:id',399 name: 'countMore',400 component: pop401 }402 ]403 },404 {405 path: 'covers/form-26',406 name: 'form-26',407 component: resolve => require(['@/components/tables/tables26.vue'], resolve),408 children: [409 {410 path: 'countMore/:id',411 name: 'countMore',412 component: pop413 }414 ]415 },416 {417 path: 'covers/form-27',418 name: 'form-27',419 component: resolve => require(['@/components/tables/tables27.vue'], resolve),420 children: [421 {422 path: 'countMore/:id',423 name: 'countMore',424 component: pop425 }426 ]427 },428 {429 path: 'covers/form-33',430 name: 'form-33',431 component: resolve => require(['@/components/tables/tables33.vue'], resolve),432 children: [433 {434 path: 'countMore/:id',435 name: 'countMore',436 component: pop437 }438 ]439 },440 {441 path: 'covers/form-35',442 name: 'form-35',443 component: resolve => require(['@/components/tables/tables35.vue'], resolve),444 children: [445 {446 path: 'countMore/:id',447 name: 'countMore',448 component: pop449 }450 ]451 },452 {453 path: 'covers/form-14',454 name: 'form-14',455 component: resolve => require(['@/components/tables/tables14.vue'], resolve),456 children: [457 {458 path: 'countMore/:id',459 name: 'countMore',460 component: pop461 }462 ]463 },464 {465 path: 'covers/form-12',466 name: 'form-12',467 component: resolve => require(['@/components/tables/tables12.vue'], resolve),468 children: [469 {470 path: 'countMore/:id',471 name: 'countMore',472 component: pop473 }474 ]475 },476 {477 path: 'covers/form-34',478 name: 'form-34',479 component: resolve => require(['@/components/tables/tables34.vue'], resolve),480 children: [481 {482 path: 'countMore/:id',483 name: 'countMore',484 component: pop485 }486 ]487 },488 {489 path: 'covers/form-37',490 name: 'form-37',491 component: resolve => require(['@/components/tables/tables37.vue'], resolve),492 children: [493 {494 path: 'countMore/:id',495 name: 'countMore',496 component: pop497 }498 ]499 },500 {501 path: 'covers/form-2',502 name: 'form-2',503 component: resolve => require(['@/components/tables/tables2.vue'], resolve),504 children: [505 {506 path: 'countMore/:id',507 name: 'countMore',508 component: pop509 }510 ]511 },512 {513 path: 'covers/form-22',514 name: 'form-22',515 component: resolve => require(['@/components/tables/tables22.vue'], resolve),516 children: [517 {518 path: 'countMore/:id',519 name: 'countMore',520 component: pop521 }522 ]523 },524 {525 path: 'covers/form-45',526 name: 'form-45',527 component: resolve => require(['@/components/tables/tables45.vue'], resolve),528 children: [529 {530 path: 'countMore/:id',531 name: 'countMore',532 component: pop533 }534 ]535 },536 {537 path: 'covers/form-47',538 name: 'form-47',539 component: resolve => require(['@/components/tables/tables47.vue'], resolve),540 children: [541 {542 path: 'countMore/:id',543 name: 'countMore',544 component: pop545 }546 ]547 },548 {549 path: 'covers/form-49',550 name: 'form-49',551 component: resolve => require(['@/components/tables/tables49.vue'], resolve),552 children: [553 {554 path: 'countMore/:id',555 name: 'countMore',556 component: pop557 }558 ]559 },560 {561 path: 'covers/form-28',562 name: 'form-28',563 component: resolve => require(['@/components/tables/tables28.vue'], resolve),564 children: [565 {566 path: 'countMore/:id',567 name: 'countMore',568 component: pop569 }570 ]571 },572 {573 path: 'covers/form-36',574 name: 'form-36',575 component: resolve => require(['@/components/tables/tables36.vue'], resolve),576 children: [577 {578 path: 'countMore/:id',579 name: 'countMore',580 component: pop581 }582 ]583 },584 {585 path: 'covers/form-38',586 name: 'form-38',587 component: resolve => require(['@/components/tables/tables38.vue'], resolve),588 children: [589 {590 path: 'countMore/:id',591 name: 'countMore',592 component: pop593 }594 ]595 },596 {597 path: 'covers/form-39',598 name: 'form-39',599 component: resolve => require(['@/components/tables/tables39.vue'], resolve),600 children: [601 {602 path: 'countMore/:id',603 name: 'countMore',604 component: pop605 }606 ]607 },608 {609 path: 'covers/form-40',610 name: 'form-40',611 component: resolve => require(['@/components/tables/tables40.vue'], resolve),612 children: [613 {614 path: 'countMore/:id',615 name: 'countMore',616 component: pop617 }618 ]619 },620 {621 path: 'covers/form-41',622 name: 'form-41',623 component: resolve => require(['@/components/tables/tables41.vue'], resolve),624 children: [625 {626 path: 'countMore/:id',627 name: 'countMore',628 component: pop629 }630 ]631 },632 {633 path: 'covers/form-42',634 name: 'form-42',635 component: resolve => require(['@/components/tables/tables42.vue'], resolve),636 children: [637 {638 path: 'countMore/:id',639 name: 'countMore',640 component: pop641 }642 ]643 },644 {645 path: 'covers/form-43',646 name: 'form-43',647 component: resolve => require(['@/components/tables/tables43.vue'], resolve),648 children: [649 {650 path: 'countMore/:id',651 name: 'countMore',652 component: pop653 }654 ]655 },656 {657 path: 'covers/form-44',658 name: 'form-44',659 component: resolve => require(['@/components/tables/tables44.vue'], resolve),660 children: [661 {662 path: 'countMore/:id',663 name: 'countMore',664 component: pop665 }666 ]667 },668 {669 path: 'covers/form-46',670 name: 'form-46',671 component: resolve => require(['@/components/tables/tables46.vue'], resolve),672 children: [673 {674 path: 'countMore/:id',675 name: 'countMore',676 component: pop677 }678 ]679 },680 {681 path: 'covers/form-48',682 name: 'form-48',683 component: resolve => require(['@/components/tables/tables48.vue'], resolve),684 children: [685 {686 path: 'countMore/:id',687 name: 'countMore',688 component: pop689 }690 ]691 },692 {693 path: 'covers/form-50',694 name: 'form-50',695 component: resolve => require(['@/components/tables/tables50.vue'], resolve),696 children: [697 {698 path: 'countMore/:id',699 name: 'countMore',700 component: pop701 }702 ]703 },704 {705 path: 'covers/form-51',706 name: 'form-51',707 component: resolve => require(['@/components/tables/tables51.vue'], resolve),708 children: [709 {710 path: 'countMore/:id',711 name: 'countMore',712 component: pop713 }714 ]715 },716 //{717 // path: 'covers/form-3',718 // name: 'form-3',719 // component: resolve => require(['@/components/tables/tables3.vue'], resolve),720 // children: [721 // {722 // path: 'countMore/:id',723 // name: 'countMore',724 // component: pop725 // }726 // ]727 //},728 // {729 // path: 'covers/form-26',730 // name: 'form-26',731 // component: resolve => require(['@/components/tables/tables26.vue'], resolve),732 // children: [733 // {734 // path: 'countMore/:id',735 // name: 'countMore',736 // component: pop737 // }738 // ]739 // },740 ]741 },742 {743 path: '/sysManage',744 name: 'sysManage',745 meta: {746 requireAuth: true,747 },748 component: resolve => require(['@/pages/sysytemManage/sysManage.vue'], resolve),749 children:[750 {751 path: 'addManage',752 name: 'addManage',753 component: resolve => require(['@/components/pop/system/addManage.vue'], resolve),754 },755 ]756 },757 //unit manage router758 {759 path: '/unitManage',760 name: 'unitManage',761 meta: {762 requireAuth: true,763 },764 component: resolve => require(['@/pages/unitManage/unitManage.vue'], resolve),765 children: [766 {767 path: 'unit/:id',768 name: 'unit',769 component: resolve => require(['@/components/infoDetail/unit.vue'], resolve),770 },771 {772 path: 'unitAdd',773 name: 'unitAdd',774 component: resolve => require(['@/components/infoDetail/unit.vue'], resolve),775 },776 {777 path: 'UnitTransfer',778 name: 'UnitTransfer',779 component: resolve => require(['@/components/pop/unit/UnitTransfer.vue'], resolve),780 },781 {782 path: 'UnitSort',783 name: 'UnitSort',784 component: resolve => require(['@/components/pop/unit/UnitSort.vue'], resolve),785 },786 {787 path: 'UnitTeacher',788 name: 'UnitTeacher',789 component: resolve => require(['@/components/pop/unit/UnitTeacher.vue'], resolve),790 },791 {//单位组合查询弹窗路由792 path: 'UnitQuery',793 name: 'UnitQuery',794 meta: {795 requireAuth: true,796 },797 component: resolve => require(['@/components/pop/unit/CombinationQuery.vue'], resolve),798 },799 ]800 },801 {802 path: '/interview',803 name: 'interview',804 meta: {805 requireAuth: true,806 },807 component: resolve => require(['@/components/interview/interview.vue'], resolve),808 children: [809 {810 path: 'interviewpop/:id',811 name: 'interviewpop',812 component: resolve => require(['@/components/pop/reviewpop.vue'], resolve),813 },814 {815 path: 'interviewnext',816 name: 'interviewnext',817 component: resolve => require(['@/components/pop/org/partyLetter.vue'], resolve),818 },819 ]820 },821 {822 path: '/checkForm/:id/:type',823 name: 'checkForm',824 meta: {825 requireAuth: true,826 },827 component: resolve => require(['@/pages/countForm/checkForm.vue'], resolve),828 children:[829 // {830 // path: 'info/:uid',831 // name: 'membercheckinfo',832 // children: [833 // {834 // path: ':tab'835 // }836 // ]837 // },838 {839 path: 'TeamMember',840 name: 'checkTeamMember',841 component: resolve => require(['@/components/pop/TeamMember.vue'], resolve),842 },843 //新增奖惩844 {845 path: 'RewardPunishment',846 name: 'checkRewardPunishment',847 meta: {848 requireAuth: true,849 },850 component: resolve => require(['@/components/pop/RewardPunishment.vue'], resolve),851 },852 //党组织管理/新增单位信息853 {path: 'UnitAdd',854 name: 'checkUnitAdd',855 meta: {856 requireAuth: true,857 },858 component: resolve => require(['@/components/pop/UnitAdd.vue'], resolve),859 },860 //新增支部评议861 {862 path: 'DemocraticReview',863 name: 'checkDemocraticReview',864 meta: {865 requireAuth: true,866 },867 component: resolve => require(['@/components/pop/DemocraticReview.vue'], resolve),868 },869 {870 path: 'unit/:id',871 name: 'unit',872 component: resolve => require(['@/components/infoDetail/unit.vue'], resolve),873 },874 {875 path: 'unitAdd',876 name: 'unitAdd',877 component: resolve => require(['@/components/infoDetail/unit.vue'], resolve),878 },879 {880 path: 'UnitTransfer',881 name: 'UnitTransfer',882 component: resolve => require(['@/components/pop/unit/UnitTransfer.vue'], resolve),883 },884 {885 path: 'UnitSort',886 name: 'UnitSort',887 component: resolve => require(['@/components/pop/unit/UnitSort.vue'], resolve),888 },889 {890 path: 'UnitTeacher',891 name: 'UnitTeacher',892 component: resolve => require(['@/components/pop/unit/UnitTeacher.vue'], resolve),893 },894 {//单位组合查询弹窗路由895 path: 'UnitQuery',896 name: 'UnitQuery',897 meta: {898 requireAuth: true,899 },900 component: resolve => require(['@/components/pop/CombinationQuery.vue'], resolve),901 },902 ]903 },904 //infocheck router905 {906 path: '/infoCheck/:ids',907 name: 'infoCheck',908 meta: {909 requireAuth: true,910 },911 component: resolve => require(['@/components/infoCheck.vue'], resolve),912 children: [913 {914 path: 'group/:id',915 name: 'group',916 component: resolve => require(['@/components/infoDetail/group.vue'], resolve),917 },918 {919 path: 'info/:id/:switchs',920 name: 'checkinfo',921 component: resolve => require(['@/components/infoDetail/info.vue'], resolve),922 children:[923 {924 path: 'TeamMember',925 name: 'checkTeamMember',926 component: resolve => require(['@/components/pop/TeamMember.vue'], resolve),927 },928 //新增奖惩929 {930 path: 'RewardPunishment',931 name: 'checkRewardPunishment',932 meta: {933 requireAuth: true,934 },935 component: resolve => require(['@/components/pop/RewardPunishment.vue'], resolve),936 },937 //党组织管理/新增单位信息938 {path: 'UnitAdd',939 name: 'checkUnitAdd',940 meta: {941 requireAuth: true,942 },943 component: resolve => require(['@/components/pop/UnitAdd.vue'], resolve),944 },945 //新增支部评议946 {947 path: 'DemocraticReview',948 name: 'checkDemocraticReview',949 meta: {950 requireAuth: true,951 },952 component: resolve => require(['@/components/pop/DemocraticReview.vue'], resolve),953 },954 ]955 },956 {//党组织整建制转移957 path: 'InsideTransfer',958 name: 'checkInsideTransfer',959 meta: {960 requireAuth: true,961 },962 component: resolve => require(['@/components/pop/InsideTransfer.vue'], resolve),963 },964 {//党组织增加965 path: 'AddOrganization',966 name: 'checkAddOrganization',967 meta: {968 requireAuth: true,969 },970 component: resolve => require(['@/components/pop/AddOrganization.vue'], resolve),971 },972 {//党支部合并973 path: 'PartyMerge',974 name: 'checkPartyMerge',975 meta: {976 requireAuth: true,977 },978 component: resolve => require(['@/components/pop/PartyMerge.vue'], resolve),979 },980 {//党支部拆分981 path: 'PartySplit',982 name: 'checkPartySplit',983 meta: {984 requireAuth: true,985 },986 component: resolve => require(['@/components/pop/PartySplit.vue'], resolve),987 },988 {//党支部撤销弹窗路由989 path: 'PartyRevoke',990 name: 'checkPartyRevoke',991 meta: {992 requireAuth: true,993 },994 component: resolve => require(['@/components/pop/PartyRevoke.vue'], resolve),995 },996 {//设置党小组弹窗路由997 path: 'PartyTeam',998 name: 'checkPartyTeam',999 meta: {1000 requireAuth: true,1001 },1002 component: resolve => require(['@/components/pop/PartyTeam.vue'], resolve),1003 },1004 {//党组织管理/批量修改弹窗路由1005 path: 'BatchUpdate',1006 name: 'checkBatchUpdate',1007 meta: {1008 requireAuth: true,1009 },1010 component: resolve => require(['@/components/pop/BatchUpdate.vue'], resolve),1011 },1012 ],1013 },1014 // 党员信息校核1015 {1016 path: '/membercheck/:dept',1017 name: 'membercheck',1018 meta: {1019 requireAuth: true,1020 },1021 component: resolve => require(['@/components/membercheck.vue'], resolve),1022 children:[1023 {1024 path: 'info/:uid',1025 name: 'membercheckinfo',1026 children: [1027 {1028 path: ':tab'1029 }1030 ]1031 }1032 ]1033 },1034 // 申请人信息校核1035 {1036 path: '/applicantcheck/:dept',1037 name: 'applicantcheck',1038 meta: {1039 requireAuth: true,1040 },1041 component: resolve => require(['@/components/applicantcheck.vue'], resolve),1042 children:[1043 {1044 path: 'info/:uid',1045 name: 'applicantcheckinfo',1046 children: [1047 {1048 path: ':tab'1049 }1050 ]1051 }1052 ]1053 },1054 //组织关系转接1055 {1056 path: '/organizationManage',1057 name: 'organizationManage',1058 component: resolve => require(['@/pages/organizationManage/organizationManage.vue'], resolve),1059 children:[1060 {1061 path: 'partyOut',1062 name: 'partyOut',1063 component: resolve => require(['@/components/pop/org/partyOut.vue'], resolve),1064 },1065 {1066 path:'partyOutStep2',1067 name:'partyOutStep2',1068 component: resolve => require(['@/components/pop/org/partyOutStep2.vue'], resolve),1069 },1070 {1071 path:'partyTree',1072 name:'partyTree',1073 component: resolve => require(['@/components/pop/org/partyTree.vue'], resolve),1074 },1075 {1076 path:'partyLetter',1077 // name:'partyLetter',1078 component: resolve => require(['@/components/pop/org/partyLetter.vue'], resolve),1079 },1080 ],1081 },1082 {1083 path: '/organizationManage/:dept',1084 name: 'organizationManageList',1085 meta: {1086 requireAuth: true,1087 },1088 component: resolve => require(['@/pages/organizationManage/organizationManage.vue'], resolve),1089 children: [1090 {1091 path: 'organization/:id',1092 name: 'organization',1093 component: resolve => require(['@/components/infoDetail/organization.vue'], resolve),1094 children:[1095 {1096 path:'partyReject',1097 name:'partyReject',1098 component: resolve => require(['@/components/pop/org/partyReject.vue'], resolve),1099 }1100 ]1101 },1102 {1103 path: 'partyOut',1104 name: 'partyOut',1105 component: resolve => require(['@/components/pop/org/partyOut.vue'], resolve),1106 },1107 {1108 path:'partyOutStep2',1109 name:'partyOutStep2',1110 component: resolve => require(['@/components/pop/org/partyOutStep2.vue'], resolve),1111 },1112 {1113 path:'partyTree',1114 name:'partyTree',1115 component: resolve => require(['@/components/pop/org/partyTree.vue'], resolve),1116 },1117 {1118 path:'partyLetter/:id',1119 name:'partyLetter',1120 component: resolve => require(['@/components/pop/org/partyLetter.vue'], resolve),1121 },1122 ]1123 },1124 //历史党员管理 router1125 {1126 path: '/historyManage',1127 name: 'historyManage',1128 meta: {1129 requireAuth: true,1130 },1131 component: resolve => require(['@/pages/historyManage/history.vue'], resolve),1132 children:[1133 {1134 path: ':dept',1135 name: 'historylist',1136 children: [{1137 name: 'historyinfo',1138 path: 'info/:uid',1139 name: 'historyinfo',1140 }]1141 },1142 // ,{1143 // path: 'modal',1144 // components: {1145 // modal: resolve => require(['@/pages/historyManage/modal.vue'], resolve)1146 // }1147 // }1148 ]1149 },1150 //dangyuan router1151 {1152 path: '/dangyuan',1153 name: 'dangyuan',1154 meta: {1155 requireAuth: true,1156 },1157 component: resolve => require(['@/pages/dangyuanManage/dangyuan.vue'], resolve),1158 children: [1159 {1160 path: 'modal/add',1161 name:'dangyuanadd',1162 components: {1163 modal: resolve => require(['@/components/pop/partymember/AddPartyMember.vue'], resolve)1164 }1165 },1166 {1167 path: 'modal/dead',1168 components: {1169 modal: resolve => require(['@/components/pop/partymember/PartyMemberDeath.vue'], resolve)1170 }1171 },1172 {1173 path: 'modal/stop',1174 components: {1175 modal: resolve => require(['@/components/pop/partymember/PartyMemberStop.vue'], resolve)1176 }1177 },1178 {1179 path: 'modal/out',1180 name:'dangyuanout',1181 components: {1182 modal: resolve => require(['@/components/pop/partymember/PartyMemberOuter.vue'], resolve)1183 }1184 },1185 {1186 path: 'modal/transfer',1187 components: {1188 modal: resolve => require(['@/components/pop/partymember/PartyMemberZhuanchu.vue'], resolve)1189 }1190 },1191 {1192 path: 'modal/sort',1193 components: {1194 modal: resolve => require(['@/components/pop/partymember/PartyMemberSort.vue'], resolve)1195 }1196 },1197 {1198 path: 'modal/distribution',1199 components: {1200 modal: resolve => require(['@/components/pop/partymember/PartyGroupManage.vue'], resolve)1201 }1202 },1203 {1204 path: 'modal/batch',1205 components: {1206 modal: resolve => require(['@/components/pop/partymember/BatchEdit.vue'], resolve)1207 }1208 },1209 {1210 path: 'modal/combos',1211 components: {1212 modal: resolve => require(['@/components/pop/partymember/CombosQuery.vue'], resolve)1213 }1214 },1215 {1216 path: 'modal/batchedit',1217 components: {1218 modal: resolve => require(['@/components/pop/partymember/BatchEdit.vue'], resolve)1219 }1220 },1221 {1222 path: 'modal/batchadd',1223 components: {1224 modal: resolve => require(['@/components/pop/partymember/BatchAdd.vue'], resolve)1225 }1226 },1227 {//党员组合查询弹窗路由1228 path: 'PartyQuery',1229 name: 'PartyQuery',1230 meta: {1231 requireAuth: true,1232 },1233 component: resolve => require(['@/components/pop/CombinationQuery.vue'], resolve),1234 },1235 //新增学历 弹窗1236 // {1237 // path: 'modal/memberinfo-add',1238 // components: {1239 // modal: resolve => require(['@/components/pop/partymember/memberinfo-education-add.vue'], resolve)1240 // }1241 // },1242 // {1243 // path: 'modal/post-add',1244 // components: {1245 // modal: resolve => require(['@/components/pop/partymember/memberinfo-post-add.vue'], resolve)1246 // }1247 // },1248 // {1249 // path: 'modal/admin-add',1250 // components: {1251 // modal: resolve => require(['@/components/pop/partymember/memberinfo-adminjob-add.vue'], resolve)1252 // }1253 // },1254 // {1255 // path: 'modal/reward-add',1256 // components: {1257 // modal: resolve => require(['@/components/pop/partymember/memberinfo-reward-add.vue'], resolve)1258 // }1259 // },1260 // {1261 // path: 'modal/representative-add',1262 // components: {1263 // modal: resolve => require(['@/components/pop/partymember/memberinfo-representative-add.vue'], resolve)1264 // }1265 // },1266 ]1267 },1268 {1269 path: '/dangyuan/:dept',1270 name: 'dangyuanlist',1271 component: resolve => require(['@/pages/dangyuanManage/dangyuan.vue'], resolve),1272 children:[1273 {1274 path: 'info/:uid',1275 name: 'dangyuaninfo',1276 children: [1277 {1278 path: ':tab'1279 }1280 ]1281 }1282 ]1283 },1284 // 申请人管理1285 {1286 path: '/applicantManage',1287 name: 'applicant',1288 component: resolve => require(['@/pages/applicantManage/applicantManage.vue'], resolve),1289 children:[1290 {1291 path: 'modal/combos',1292 components: {1293 modal: resolve => require(['@/components/pop/applicant/CombosQuery.vue'], resolve)1294 }1295 },1296 {1297 path: 'modal/add',1298 components: {1299 modal: resolve => require(['@/components/pop/applicant/AddPartyMember.vue'], resolve)1300 }1301 },1302 {1303 path: 'modal/batchedit',1304 components: {1305 modal: resolve => require(['@/components/pop/applicant/BatchEdit.vue'], resolve)1306 }1307 },1308 {1309 path: 'modal/batchadd',1310 components: {1311 modal: resolve => require(['@/components/pop/applicant/BatchAdd.vue'], resolve)1312 }1313 },1314 {1315 path: 'modal/memberinfo-add',1316 components: {1317 modal: resolve => require(['@/components/pop/applicant/memberinfo-education-add.vue'], resolve)1318 }1319 },1320 {1321 path: 'modal/post-add',1322 components: {1323 modal: resolve => require(['@/components/pop/applicant/memberinfo-post-add.vue'], resolve)1324 }1325 },1326 {1327 path: 'modal/admin-add',1328 components: {1329 modal: resolve => require(['@/components/pop/applicant/memberinfo-adminjob-add.vue'], resolve)1330 }1331 },1332 {1333 path: 'modal/reward-add',1334 components: {1335 modal: resolve => require(['@/components/pop/applicant/memberinfo-reward-add.vue'], resolve)1336 }1337 },1338 ]1339 },1340 {1341 path: '/applicantManage/:dept',1342 name: 'applicantlist',1343 component: resolve => require(['@/pages/applicantManage/applicantManage.vue'], resolve),1344 children:[1345 {1346 path: 'info/:uid',1347 name: 'applicantinfo',1348 children: [1349 {1350 path: ':tab'1351 }1352 ]1353 }1354 ]1355 },1356 // 重复人员查询1357 {1358 path: '/repeatmembers',1359 name: 'repeatmembers',1360 component: resolve => require(['@/pages/repeatMembers/repeatMembers.vue'], resolve),1361 },1362 {1363 path: '/repeatmembers/:dept',1364 name: 'repeatmemberlist',1365 component: resolve => require(['@/pages/repeatMembers/repeatMembers.vue'], resolve),1366 children:[{1367 path: 'list/:idcard',1368 name : 'repeatmembersdetail',1369 components: {1370 modal: resolve => require(['@/components/pop/repeatmembers/modallist.vue'], resolve)1371 }1372 }]1373 },1374 //发展党员审核1375 {1376 path:'/recruitExamine',1377 name:'recruitExamine',1378 component:resolve=>require(['@/pages/recruitExamine/recruitMembers.vue'],resolve),1379 children:[1380 {1381 path: 'returnReason',1382 name: 'returnReason',1383 components: {1384 modal: resolve => require(['@/pages/recruitExamine/returnReason.vue'], resolve)1385 }1386 }1387 ]1388 },1389 //发展党员1390 {1391 path:'/recruitMembers',1392 name:'recruitMembers',1393 component:resolve=>require(['@/pages/recruitMembers/recruitMembers.vue'],resolve),1394 children:[1395 {1396 path: 'allFile',1397 name : 'allFile',1398 components: {1399 modal: resolve => require(['@/components/recruitMembers/affiliatedFile/allFile.vue'], resolve)1400 }1401 },1402 {1403 path: 'table2/:id',1404 name : 'recruitTable2',1405 components: {1406 modal: resolve => require(['@/components/recruitMembers/onlinetable/2.vue'], resolve)1407 }1408 },1409 {1410 path: 'table3/:id',1411 name : 'recruitTable3',1412 components: {1413 modal: resolve => require(['@/components/recruitMembers/onlinetable/3.vue'], resolve)1414 }1415 },1416 {1417 path: 'table4/:id',1418 name : 'recruitTable4',1419 components: {1420 modal: resolve => require(['@/components/recruitMembers/onlinetable/4.vue'], resolve)1421 }1422 },1423 {1424 path: 'table6/:id',1425 name : 'recruitTable6',1426 components: {1427 modal: resolve => require(['@/components/recruitMembers/onlinetable/6.vue'], resolve)1428 }1429 },1430 {1431 path: 'table6/:id',1432 name : 'recruitTable7',1433 components: {1434 modal: resolve => require(['@/components/recruitMembers/onlinetable/7.vue'], resolve)1435 }1436 },1437 {1438 path: 'table8/:id',1439 name : 'recruitTable8',1440 components: {1441 modal: resolve => require(['@/components/recruitMembers/onlinetable/8.vue'], resolve)1442 }1443 },1444 {1445 path: 'table9/:id',1446 name : 'recruitTable9',1447 components: {1448 modal: resolve => require(['@/components/recruitMembers/onlinetable/9.vue'], resolve)1449 }1450 },1451 {1452 path: 'table11/:id',1453 name : 'recruitTable11',1454 components: {1455 modal: resolve => require(['@/components/recruitMembers/onlinetable/11.vue'], resolve)1456 }1457 },1458 {1459 path: 'table12/:id',1460 name : 'recruitTable12',1461 components: {1462 modal: resolve => require(['@/components/recruitMembers/onlinetable/12.vue'], resolve)1463 }1464 },1465 {1466 path: 'table13/:id',1467 name : 'recruitTable13',1468 components: {1469 modal: resolve => require(['@/components/recruitMembers/onlinetable/13.vue'], resolve)1470 }1471 },1472 {1473 path: 'table14/:id',1474 name : 'recruitTable14',1475 components: {1476 modal: resolve => require(['@/components/recruitMembers/onlinetable/14.vue'], resolve)1477 }1478 },1479 {1480 path: 'table15/:id',1481 name : 'recruitTable15',1482 components: {1483 modal: resolve => require(['@/components/recruitMembers/onlinetable/15.vue'], resolve)1484 }1485 },1486 {1487 path: 'table16/:id',1488 name : 'recruitTable16',1489 components: {1490 modal: resolve => require(['@/components/recruitMembers/onlinetable/16.vue'], resolve)1491 }1492 },1493 {1494 path: 'table19/:id',1495 name : 'recruitTable19',1496 components: {1497 modal: resolve => require(['@/components/recruitMembers/onlinetable/19.vue'], resolve)1498 }1499 },1500 {1501 path: 'table21/:id',1502 name : 'recruitTable21',1503 components: {1504 modal: resolve => require(['@/components/recruitMembers/onlinetable/21.vue'], resolve)1505 }1506 },1507 {1508 path: 'table23/:id',1509 name : 'recruitTable23',1510 components: {1511 modal: resolve => require(['@/components/recruitMembers/onlinetable/23.vue'], resolve)1512 }1513 },1514 {1515 path: 'table25/:id',1516 name : 'recruitTable25',1517 components: {1518 modal: resolve => require(['@/components/recruitMembers/onlinetable/25.vue'], resolve)1519 }1520 },1521 {1522 path: 'table27/:id',1523 name : 'recruitTable27',1524 components: {1525 modal: resolve => require(['@/components/recruitMembers/onlinetable/27.vue'], resolve)1526 }1527 },1528 {1529 path: 'table29/:id',1530 name : 'recruitTable29',1531 components: {1532 modal: resolve => require(['@/components/recruitMembers/onlinetable/29.vue'], resolve)1533 }1534 },1535 {1536 path: 'table30/:id',1537 name : 'recruitTable30',1538 components: {1539 modal: resolve => require(['@/components/recruitMembers/onlinetable/30.vue'], resolve)1540 }1541 },1542 {1543 path: 'table31/:id',1544 name : 'recruitTable31',1545 components: {1546 modal: resolve => require(['@/components/recruitMembers/onlinetable/31.vue'], resolve)1547 }1548 },1549 {1550 path: 'table32/:id',1551 name : 'recruitTable32',1552 components: {1553 modal: resolve => require(['@/components/recruitMembers/onlinetable/32.vue'], resolve)1554 }1555 },1556 {1557 path: 'table33/:id',1558 name : 'recruitTable33',1559 components: {1560 modal: resolve => require(['@/components/recruitMembers/onlinetable/33.vue'], resolve)1561 }1562 },1563 {1564 path: 'table35/:id',1565 name : 'recruitTable35',1566 components: {1567 modal: resolve => require(['@/components/recruitMembers/onlinetable/35.vue'], resolve)1568 }1569 },1570 {1571 path: 'table36/:id',1572 name : 'recruitTable36',1573 components: {1574 modal: resolve => require(['@/components/recruitMembers/onlinetable/36.vue'], resolve)1575 }1576 },1577 {1578 path: 'table37/:id',1579 name : 'recruitTable37',1580 components: {1581 modal: resolve => require(['@/components/recruitMembers/onlinetable/37.vue'], resolve)1582 }1583 },1584 {1585 path: 'table39/:id',1586 name : 'recruitTable39',1587 components: {1588 modal: resolve => require(['@/components/recruitMembers/onlinetable/39.vue'], resolve)1589 }1590 },1591 {1592 path: 'table40/:id',1593 name : 'recruitTable40',1594 components: {1595 modal: resolve => require(['@/components/recruitMembers/onlinetable/40.vue'], resolve)1596 }1597 },1598 {1599 path: 'table43/:id',1600 name : 'recruitTable43',1601 components: {1602 modal: resolve => require(['@/components/recruitMembers/onlinetable/43.vue'], resolve)1603 }1604 },1605 {1606 path: 'table44/:id',1607 name : 'recruitTable44',1608 components: {1609 modal: resolve => require(['@/components/recruitMembers/onlinetable/44.vue'], resolve)1610 }1611 },1612 {1613 path: 'table46/:id',1614 name : 'recruitTable46',1615 components: {1616 modal: resolve => require(['@/components/recruitMembers/onlinetable/46.vue'], resolve)1617 }1618 }1619 ]1620 },1621 // 管理员设置1622 {1623 path: '/adminconfig',1624 name: 'adminconfig',1625 component: resolve => require(['@/pages/adminConfig/adminconfig.vue'], resolve),1626 },1627 {1628 path: '/adminconfig/:dept',1629 name: 'adminconfiglist',1630 component: resolve => require(['@/pages/adminConfig/adminconfig.vue'], resolve),1631 children:[{1632 path: 'add',1633 name: 'adminconfigadd',1634 components:{1635 modal: resolve=>require(['@/components/pop/adminConfig/addadmin.vue'],resolve),1636 }1637 }]1638 },1639 // 党员发展在线填表相关组件 开发用 组件对接后可删除1640 {1641 path: '/recruitMembers/onlinetable/2',1642 component: resolve => require(['@/components/recruitMembers/onlinetable/2.vue'], resolve),1643 },1644 {1645 path: '/recruitMembers/onlinetable/3',1646 component: resolve => require(['@/components/recruitMembers/onlinetable/3.vue'], resolve),1647 },1648 {1649 path: '/recruitMembers/onlinetable/4',1650 component: resolve => require(['@/components/recruitMembers/onlinetable/4.vue'], resolve),1651 },1652 {1653 path: '/recruitMembers/onlinetable/6',1654 component: resolve => require(['@/components/recruitMembers/onlinetable/6.vue'], resolve),1655 },1656 {1657 path: '/recruitMembers/onlinetable/8',1658 component: resolve => require(['@/components/recruitMembers/onlinetable/8.vue'], resolve),1659 },1660 {1661 path: '/recruitMembers/onlinetable/9',1662 component: resolve => require(['@/components/recruitMembers/onlinetable/9.vue'], resolve),1663 },1664 {1665 path: '/recruitMembers/onlinetable/11',1666 component: resolve => require(['@/components/recruitMembers/onlinetable/11.vue'], resolve),1667 },1668 {1669 path: '/recruitMembers/onlinetable/12',1670 component: resolve => require(['@/components/recruitMembers/onlinetable/12.vue'], resolve),1671 },1672 {1673 path: '/recruitMembers/onlinetable/13',1674 component: resolve => require(['@/components/recruitMembers/onlinetable/13.vue'], resolve),1675 },1676 {1677 path: '/recruitMembers/onlinetable/14',1678 component: resolve => require(['@/components/recruitMembers/onlinetable/14.vue'], resolve),1679 },1680 {1681 path: '/recruitMembers/onlinetable/15',1682 component: resolve => require(['@/components/recruitMembers/onlinetable/15.vue'], resolve),1683 },1684 {1685 path: '/recruitMembers/onlinetable/16',1686 component: resolve => require(['@/components/recruitMembers/onlinetable/16.vue'], resolve),1687 },1688 // {1689 // path: '/recruitMembers/onlinetable/发展对象亲属函调表',1690 // component: resolve => require(['@/components/recruitMembers/onlinetable/发展对象亲属函调表.vue'], resolve),1691 // },1692 {1693 path: '/recruitMembers/onlinetable/19',1694 component: resolve => require(['@/components/recruitMembers/onlinetable/19.vue'], resolve),1695 },1696 {1697 path: '/recruitMembers/onlinetable/21',1698 component: resolve => require(['@/components/recruitMembers/onlinetable/21.vue'], resolve),1699 },1700 {1701 path: '/recruitMembers/onlinetable/23',1702 component: resolve => require(['@/components/recruitMembers/onlinetable/23.vue'], resolve),1703 },1704 {1705 path: '/recruitMembers/onlinetable/29',1706 component: resolve => require(['@/components/recruitMembers/onlinetable/29.vue'], resolve),1707 },1708 {1709 path: '/recruitMembers/onlinetable/31',1710 component: resolve => require(['@/components/recruitMembers/onlinetable/31.vue'], resolve),1711 },1712 {1713 path: '/recruitMembers/onlinetable/32',1714 component: resolve => require(['@/components/recruitMembers/onlinetable/32.vue'], resolve),1715 },1716 {1717 path: '/recruitMembers/onlinetable/33',1718 component: resolve => require(['@/components/recruitMembers/onlinetable/33.vue'], resolve),1719 },1720 {1721 path: '/recruitMembers/onlinetable/35',1722 component: resolve => require(['@/components/recruitMembers/onlinetable/35.vue'], resolve),1723 },1724 {1725 path: '/recruitMembers/onlinetable/36',1726 component: resolve => require(['@/components/recruitMembers/onlinetable/36.vue'], resolve),1727 },1728 {1729 path: '/recruitMembers/onlinetable/37',1730 component: resolve => require(['@/components/recruitMembers/onlinetable/37.vue'], resolve),1731 },1732 {1733 path: '/recruitMembers/onlinetable/39',1734 component: resolve => require(['@/components/recruitMembers/onlinetable/39.vue'], resolve),1735 },1736 {1737 path: '/recruitMembers/onlinetable/40',1738 component: resolve => require(['@/components/recruitMembers/onlinetable/40.vue'], resolve),1739 },1740 {1741 path: '/recruitMembers/onlinetable/43',1742 component: resolve => require(['@/components/recruitMembers/onlinetable/43.vue'], resolve),1743 },1744 {1745 path: '/recruitMembers/onlinetable/44',1746 component: resolve => require(['@/components/recruitMembers/onlinetable/44.vue'], resolve),1747 },1748 {1749 path: '/recruitMembers/onlinetable/46',1750 component: resolve => require(['@/components/recruitMembers/onlinetable/46.vue'], resolve),1751 },1752 { //默认首页1753 path: '/',1754 redirect: '/login'1755 },1756 { //默认错误页1757 path: '*',1758 component: resolve => require(['@/pages/404.vue'], resolve),1759 },1760 ]1761})...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1import Vue from 'vue'2import Router from 'vue-router'3let version = 70; //改变菜单权限后,请手动改变此版本号,页面会自动退出账号。4Vue.use(Router)5let router = new Router({6 routes: [{7 path: '/',8 redirect: '/login'9 }, {10 path: '/oldLogin',11 component: resolve => require(['../components/page/login/index.vue'], resolve)12 },13 // 登录页面14 {15 path: '/login',16 component: resolve => require(['../components/page/login/newLogin.vue'], resolve)17 },18 {19 path: '/addParentInfomation',20 component: resolve => require(['../components/page/addParentInfomation/addParentInfomation.vue'], resolve)21 },22 {23 path: '/addParentInfo',24 component: resolve => require(['../components/page/addParentInfomation/addParentInfo.vue'], resolve)25 },26 {27 path: '/home',28 component: resolve => require(['../components/common/home.vue'], resolve),29 children: [30 //家长管理31 {32 path: '/parentMange',33 component: resolve => require(['../components/page/parentMange/parentList.vue'], resolve),34 },35 {36 path: '/addParent',37 component: resolve => require(['../components/page/parentMange/addParent.vue'], resolve)38 },39 {40 path: '/editParent',41 component: resolve => require(['../components/page/parentMange/editParent.vue'], resolve)42 },43 {44 path:'/parentMange/Detail',45 component: resolve => require(['../components/page/parentMange/parentDetail.vue'], resolve)46 },47 {48 //家长调查问卷提交数据查询列表49 path:"/parentFeedbacks",50 component: resolve => require(['../components/page/parentMange/parentFeedbacks.vue'],resolve)51 },52 //学生管理53 {54 path: '/studentMange',55 component: resolve => require(['../components/page/studentMange/studentList.vue'], resolve)56 },57 //增加学生58 {59 path: '/addStudent',60 component: resolve => require(['../components/page/studentMange/addStudent.vue'], resolve)61 },62 //学生查看详情模块路由(一会写)63 {64 path:'/studentDetail',65 component: resolve => require(['../components/page/studentMange/studentDetail.vue'], resolve),66 keepAlive:true,67 children: [68 {69 path: '/addParHabit',70 component: resolve => require(['../components/page/studentMange/addParHabit.vue'], resolve)71 },72 {73 path: '/habit/add',74 component: resolve => require(['../components/page/studentMange/addStuHabit.vue'], resolve)75 },76 {77 path: '/habit',78 component: resolve => require(['../components/page/studentMange/stuHabit.vue'], resolve)79 },80 {81 path: '/habit/show',82 component: resolve => require(['../components/page/studentMange/showHabit.vue'], resolve)83 },84 {85 path: '/schoolAdmin/teacherList',86 component: resolve => require(['../components/page/schoolAdmin/teacherList.vue'], resolve),87 meta: { title: '校管理员教师列表' }88 },89 {90 path: '/abilityTestSubscribe',91 component: resolve => require(['../components/page/studentMange/abilityTestSubscribe.vue'], resolve),92 meta: { title: '学习能力平测预约表' }93 },94 {95 path: '/abilityTestSubscribe/make',96 component: resolve => require(['../components/page/studentMange/abilityTestSubscribeAdd.vue'], resolve),97 meta: { title: '学习能力平测预约表' } //新增、编辑98 },99 {100 path: '/abilityTestSubscribe/view',101 component: resolve => require(['../components/page/studentMange/abilityTestSubscribeView.vue'], resolve),102 meta: { title: '学习能力平测预约表' } //查看103 },104 {105 path: '/abilityImprovIntervExp',106 component: resolve => require(['../components/page/studentMange/abilityImprovIntervExp.vue'], resolve),107 meta: { title: '学习能力提升干预体验登记表' }108 },109 {110 path: '/abilityImprovIntervExp/make',111 component: resolve => require(['../components/page/studentMange/abilityImprovIntervExpAdd.vue'], resolve),112 meta: { title: '学习能力提升干预体验登记表' } //新增、编辑113 },114 {115 path: '/abilityImprovIntervExp/view',116 component: resolve => require(['../components/page/studentMange/abilityImprovIntervExpView.vue'], resolve),117 meta: { title: '学习能力提升干预体验登记表' } //查看118 },//auditionRecord119 {120 path: '/editAudition/add',121 component: resolve => require(['../components/page/studentMange/auditionRecord.vue'], resolve),122 meta: { title: '试听记录表' } //查看123 },//editAudition.vue124 {125 path: '/editAuditionT/add',126 component: resolve => require(['../components/page/studentMange/auditionRecord2.vue'], resolve),127 meta: { title: '二次试听记录表' } //查看128 },129 {130 path: '/editAuditionB/add',131 component: resolve => require(['../components/page/studentMange/auditionRecord3.vue'], resolve),132 meta: { title: '二次试听记录表' } //查看133 },134 {135 path: '/editAudition',136 component: resolve => require(['../components/page/studentMange/editAudition.vue'], resolve),137 meta: { title: '查看试听记录表' } //查看138 },139 {140 path: '/editAuditionT',141 component: resolve => require(['../components/page/studentMange/editAudition2.vue'], resolve),142 meta: { title: '查看试听记录表' } //查看143 },144 {145 path: '/editAuditionB',146 component: resolve => require(['../components/page/studentMange/editAudition3.vue'], resolve),147 meta: { title: '查看试听记录表' } //查看148 },149 {150 path: '/startSchool',151 component: resolve => require(['../components/page/studentMange/startSchool.vue'], resolve),152 meta: { title: '入学登记表' } //查看153 },154 {155 path: '/startSchool/add',156 component: resolve => require(['../components/page/studentMange/startSchoolAdd.vue'], resolve),157 meta: { title: '入学登记表添加' } //查看158 },159 {160 path: '/archiveRecords',161 component: resolve => require(['../components/page/studentMange/archiveRecords.vue'], resolve),162 meta: { title: '考试成绩记录表' }163 },164 {165 path: '/archiveRecords/make',166 component: resolve => require(['../components/page/studentMange/archiveRecordsAdd.vue'], resolve),167 meta: { title: '考试成绩记录表' } //新增、编辑168 },169 {170 path: '/archiveRecords/detail',171 component: resolve => require(['../components/page/studentMange/archiveRecordsDetail.vue'], resolve),172 meta: { title: '考试成绩记录表' } //新增、编辑173 },174 {175 path: '/schoolAdmin/eduMangeList',176 component: resolve => require(['../components/page/schoolAdmin/eduMangeList.vue'], resolve),177 meta: { title: '校管理员教务列表' }178 },179 {180 path: '/schoolAdmin/teaResearchList',181 component: resolve => require(['../components/page/schoolAdmin/teaResearchList.vue'], resolve),182 meta: { title: '校管理员教研列表' }183 },184 /*学习能力干预训练准备表列表*/185 {186 path: '/abilityReady',187 component: resolve => require(['../components/page/studentMange/abilityReady.vue'], resolve)188 },189 /*学习能力干预训练准备表(新增/编辑)*/190 {191 path: '/abilityReady/add',192 component: resolve => require(['../components/page/studentMange/addAbilityReady.vue'], resolve)193 },194 /*学习能力干预训练准备表(查看)*/195 {196 path: '/abilityReady/show',197 component: resolve => require(['../components/page/studentMange/showAbilityReady.vue'], resolve)198 },199 /*学习能力干预训练反馈表列表*/200 {201 path: '/abilityResult',202 component: resolve => require(['../components/page/studentMange/abilityResult.vue'], resolve)203 },204 /*学习能力干预训练反馈表(新增/编辑)*/205 {206 path: '/abilityResult/add',207 component: resolve => require(['../components/page/studentMange/addAbilityResult.vue'], resolve)208 },209 /*学学习能力干预训练反馈表查看)*/210 {211 path: '/abilityResult/show',212 component: resolve => require(['../components/page/studentMange/showAbilityResult.vue'], resolve)213 },214 /*干预导师课后反思表列表*/215 {216 path: '/afterClass',217 component: resolve => require(['../components/page/studentMange/afterClass.vue'], resolve)218 },219 /*干预导师课后反思表新增/编辑)*/220 {221 path: '/afterClass/add',222 component: resolve => require(['../components/page/studentMange/addAfterClass.vue'], resolve)223 },224 /*干预导师课后反思表列表查看*/225 {226 path: '/afterClass/show',227 component: resolve => require(['../components/page/studentMange/showAfterClass.vue'], resolve)228 },229 ]230 },231 // 优惠券列表232 {233 path:"/coupon",234 component:resolve=>require(['../components/page/coupon/list.vue'],resolve),235 meta:{236 title:"优惠券列表"237 }238 },239 {240 path:"/couponCode",241 component:resolve=>require(['../components/page/coupon/couponCode.vue'],resolve),242 meta:{243 title:"优惠码列表"244 }245 },246 // 账号管理247 {248 path: '/newAccount',249 component: resolve => require(['../components/page/accountInfo/newAccount.vue'], resolve)250 },251 // 账号管理252 {253 path: '/newAccount',254 component: resolve => require(['../components/page/accountInfo/newAccount.vue'], resolve)255 },256 // 新增账号257 {258 path: '/addAccount',259 component: resolve => require(['../components/page/accountInfo/addAccount.vue'], resolve)260 },261 // 新增账号262 {263 path: '/editAccount',264 component: resolve => require(['../components/page/accountInfo/editAccount.vue'], resolve)265 },266 // 角色管理267 {268 path: '/userAccount',269 component: resolve => require(['../components/page/accountInfo/userAccount.vue'], resolve)270 },271 ]272 }]273});274router.beforeEach((to, from, next) => {275 next()276})277// router.beforeEach((to, from, next) => {278// console.log(to)279// //判断登录280// if (window.localStorage.getItem('userInfo') == null || window.localStorage.getItem('authList') == null) {281// if (to.path == '/login') {282// next()283// } else {284// next('/login')285// }286// } else {287// console.log(to.path);288//289// if(window.localStorage.getItem('version')&&window.localStorage.getItem('version')!=version){290// localStorage.clear();291// next('/login')292// }else if (JSON.parse(localStorage.getItem('authList')).some(function(path) {293// return to.path == path;294// })) {295// next()296// }else if (to.path == '/login') {297// var firstUrl = JSON.parse(window.localStorage.getItem('firstUrl'));298// next(firstUrl);299// }else if (to.path == '/errorR') {300// next()301// } else {302// next('/errorR')303// }304// window.localStorage.setItem('version',version);305// }306// })...

Full Screen

Full Screen

menuConfig.js

Source:menuConfig.js Github

copy

Full Screen

1let obj2if (IS_DEV) {3 obj = {4 101: {5 name: 'five-min-view',6 component: resolve =>7 require([8 'src/views/modules/operationMonitoring/five-minutes-view'9 ], resolve)10 },11 102: {12 name: 'online-data',13 component: resolve =>14 require(['src/views/modules/operationMonitoring/online-data'], resolve)15 },16 103: {17 name: 'virtual-currency',18 component: resolve =>19 require([20 'src/views/modules/operationMonitoring/virtual-currency'21 ], resolve)22 },23 104: {24 name: 'new-server-monitor',25 component: resolve =>26 require([27 'src/views/modules/operationMonitoring/new-server-monitor'28 ], resolve)29 },30 201: {31 name: 'five-force',32 component: resolve =>33 require(['src/views/modules/indexAnalysis/fiveForce/'], resolve)34 },35 202: {36 name: 'index-trend',37 component: resolve =>38 require(['src/views/modules/indexAnalysis/indexTrendPlant'], resolve)39 },40 203: {41 name: 'active-user',42 component: resolve =>43 require(['src/views/modules/indexAnalysis/activeUser'], resolve)44 },45 204: {46 name: 'dish-plate',47 component: resolve =>48 require(['src/views/modules/indexAnalysis/dishPlate'], resolve)49 },50 205: {51 name: 'dish-plate-by-game',52 component: resolve =>53 require(['src/views/modules/indexAnalysis/dishPlateByGame'], resolve)54 },55 206: {56 name: 'new-user-reg-income-rate',57 component: resolve =>58 require(['src/views/modules/indexAnalysis/newUserRegIncomeRate'], resolve)59 },60 207: {61 name: 'login-rate',62 component: resolve =>63 require(['src/views/modules/indexAnalysis/loginRate'], resolve)64 },65 208: {66 name: 'new-user-step-retain',67 component: resolve =>68 require([69 'src/views/modules/userBehaviorAnalysis/newUserStepRetain'70 ], resolve)71 },72 210: {73 name: 'retain-user',74 component: resolve =>75 require(['src/views/modules/indexAnalysis/retainUser'], resolve)76 },77 211: {78 name: 'lose-user',79 component: resolve =>80 require(['src/views/modules/indexAnalysis/loseUser'], resolve)81 },82 212: {83 name: 'back-user',84 component: resolve =>85 require(['src/views/modules/indexAnalysis/backUser'], resolve)86 },87 213: {88 name: 'online-user',89 component: resolve =>90 require(['src/views/modules/indexAnalysis/onlineUser'], resolve)91 },92 214: {93 name: 'added-user',94 component: resolve =>95 require(['src/views/modules/indexAnalysis/addedUser'], resolve)96 },97 215: {98 name: 'new-user-retain',99 component: resolve =>100 require(['src/views/modules/indexAnalysis/newUserRetainRate'], resolve)101 },102 216: {103 name: 'tourist-conversion',104 component: resolve =>105 require([106 'src/views/modules/userBehaviorAnalysis/touristConversion'107 ], resolve)108 },109 217: {110 name: 'R-Account',111 component: resolve =>112 require(['src/views/modules/userBehaviorAnalysis/R-account'], resolve)113 },114 218: {115 name: 'data-overview',116 component: resolve =>117 require(['src/views/modules/overview/data-overview'], resolve)118 },119 219: {120 name: 'game-overview',121 component: resolve =>122 require(['src/views/modules/overview/game-overview'], resolve)123 },124 301: {125 name: 'area-analysis',126 component: resolve =>127 require(['src/views/modules/userBehaviorAnalysis/areaAnalysis'], resolve)128 },129 302: {130 name: 'recharge-mode',131 component: resolve =>132 require(['src/views/modules/userBehaviorAnalysis/rechargeMode'], resolve)133 },134 303: {135 name: 'firstPay',136 component: resolve =>137 require(['src/views/modules/userBehaviorAnalysis/firstPay'], resolve)138 },139 304: {140 name: 'warTypeAnalysis',141 component: resolve =>142 require([143 'src/views/modules/userBehaviorAnalysis/warTypeAnalysis'144 ], resolve)145 },146 305: {147 name: 'copyAnalysis',148 component: resolve =>149 require(['src/views/modules/userBehaviorAnalysis/copyAnalysis'], resolve)150 },151 306: {152 name: 'sysParticipation',153 component: resolve =>154 require([155 'src/views/modules/userBehaviorAnalysis/sysParticipation'156 ], resolve)157 },158 307: {159 name: 'sysSaturation',160 component: resolve =>161 require(['src/views/modules/userBehaviorAnalysis/sysSaturation'], resolve)162 },163 401: {164 name: 'recharge-hot-plant',165 component: resolve =>166 require(['src/views/modules/marketingAnalysis/rechargeHotPlant'], resolve)167 },168 402: {169 name: 'big-customer-trend',170 component: resolve =>171 require(['src/views/modules/marketingAnalysis/bigCustomerTrend'], resolve)172 },173 403: {174 name: 'fashionConsum',175 component: resolve =>176 require(['src/views/modules/marketingAnalysis/fashionConsum'], resolve)177 },178 404: {179 name: 'hotConsum',180 component: resolve =>181 require(['src/views/modules/marketingAnalysis/hotConsum'], resolve)182 },183 405: {184 name: 'timeLimitConsum',185 component: resolve =>186 require(['src/views/modules/marketingAnalysis/timeLimitConsum'], resolve)187 },188 406: {189 name: 'payHotPlant',190 component: resolve =>191 require(['src/views/modules/marketingAnalysis/payHotPlant'], resolve)192 },193 501: {194 name: 'recharge-order',195 component: resolve =>196 require(['src/views/modules/formData/rechargeOrder'], resolve)197 },198 502: {199 name: 'first-pay-detail',200 component: resolve =>201 require(['src/views/modules/formData/firstPayDetail'], resolve)202 },203 503: {204 name: 'reg-detail',205 component: resolve =>206 require(['src/views/modules/formData/regDetail'], resolve)207 },208 601: {209 name: "market",210 component: resolve =>211 require(['src/views/modules/reports/markets'], resolve)212 },213 1001: {214 name: "market",215 component: resolve =>216 require(['src/views/modules/reports/markets'], resolve)217 },218 1002: {219 name: "real-time",220 component: resolve =>221 require(['src/views/modules/reports/real-time'], resolve)222 },223 1003: {224 name: "sub-channel-reports",225 component: resolve =>226 require(['src/views/modules/subChannel/reports'], resolve)227 },228 1101: {229 name: "complement",230 component: resolve =>231 require(['src/views/modules/data/complement'], resolve)232 },233 1102: {234 name: "pkg_manager",235 component: resolve =>236 require(['src/views/modules/data/pkg_manager'], resolve)237 },238 1201: {239 name: "pkg_manager",240 component: resolve => require(['src/views/modules/subChannel/reports'], resolve)241 },242 1204: {243 name: "budget-complement",244 component: resolve => require(['src/views/modules/data/budget'], resolve)245 }246 }247 248} else {249 obj = {250 101: {251 name: 'five-min-view',252 component: resolve =>253 require([254 'src/views/modules/operationMonitoring/five-minutes-view'255 ], resolve)256 },257 102: {258 name: 'online-data',259 component: resolve =>260 require(['src/views/modules/operationMonitoring/online-data'], resolve)261 },262 103: {263 name: 'virtual-currency',264 component: resolve =>265 require([266 'src/views/modules/operationMonitoring/virtual-currency'267 ], resolve)268 },269 104: {270 name: 'new-server-monitor',271 component: resolve =>272 require([273 'src/views/modules/operationMonitoring/new-server-monitor'274 ], resolve)275 },276 201: {277 name: 'five-force',278 component: resolve =>279 require(['src/views/modules/indexAnalysis/fiveForce/'], resolve)280 },281 202: {282 name: 'index-trend',283 component: resolve =>284 require(['src/views/modules/indexAnalysis/indexTrendPlant'], resolve)285 },286 203: {287 name: 'active-user',288 component: resolve =>289 require(['src/views/modules/indexAnalysis/activeUser'], resolve)290 },291 204: {292 name: 'dish-plate',293 component: resolve =>294 require(['src/views/modules/indexAnalysis/dishPlate'], resolve)295 },296 205: {297 name: 'dish-plate-by-game',298 component: resolve =>299 require(['src/views/modules/indexAnalysis/dishPlateByGame'], resolve)300 },301 206: {302 name: 'new-user-reg-income-rate',303 component: resolve =>304 require(['src/views/modules/indexAnalysis/newUserRegIncomeRate'], resolve)305 },306 207: {307 name: 'login-rate',308 component: resolve =>309 require(['src/views/modules/indexAnalysis/loginRate'], resolve)310 },311 208: {312 name: 'new-user-step-retain',313 component: resolve =>314 require([315 'src/views/modules/userBehaviorAnalysis/newUserStepRetain'316 ], resolve)317 },318 210: {319 name: 'retain-user',320 component: resolve =>321 require(['src/views/modules/indexAnalysis/retainUser'], resolve)322 },323 211: {324 name: 'lose-user',325 component: resolve =>326 require(['src/views/modules/indexAnalysis/loseUser'], resolve)327 },328 212: {329 name: 'back-user',330 component: resolve =>331 require(['src/views/modules/indexAnalysis/backUser'], resolve)332 },333 213: {334 name: 'online-user',335 component: resolve =>336 require(['src/views/modules/indexAnalysis/onlineUser'], resolve)337 },338 214: {339 name: 'added-user',340 component: resolve =>341 require(['src/views/modules/indexAnalysis/addedUser'], resolve)342 },343 215: {344 name: 'new-user-retain',345 component: resolve =>346 require(['src/views/modules/indexAnalysis/newUserRetainRate'], resolve)347 },348 216: {349 name: 'tourist-conversion',350 component: resolve =>351 require([352 'src/views/modules/userBehaviorAnalysis/touristConversion'353 ], resolve)354 },355 217: {356 name: 'R-Account',357 component: resolve =>358 require(['src/views/modules/userBehaviorAnalysis/R-account'], resolve)359 },360 218: {361 name: 'data-overview',362 component: resolve =>363 require(['src/views/modules/overview/data-overview'], resolve)364 },365 219: {366 name: 'game-overview',367 component: resolve =>368 require(['src/views/modules/overview/game-overview'], resolve)369 },370 301: {371 name: 'area-analysis',372 component: resolve =>373 require(['src/views/modules/userBehaviorAnalysis/areaAnalysis'], resolve)374 },375 302: {376 name: 'recharge-mode',377 component: resolve =>378 require(['src/views/modules/userBehaviorAnalysis/rechargeMode'], resolve)379 },380 303: {381 name: 'firstPay',382 component: resolve =>383 require(['src/views/modules/userBehaviorAnalysis/firstPay'], resolve)384 },385 304: {386 name: 'warTypeAnalysis',387 component: resolve =>388 require([389 'src/views/modules/userBehaviorAnalysis/warTypeAnalysis'390 ], resolve)391 },392 305: {393 name: 'copyAnalysis',394 component: resolve =>395 require(['src/views/modules/userBehaviorAnalysis/copyAnalysis'], resolve)396 },397 306: {398 name: 'sysParticipation',399 component: resolve =>400 require([401 'src/views/modules/userBehaviorAnalysis/sysParticipation'402 ], resolve)403 },404 307: {405 name: 'sysSaturation',406 component: resolve =>407 require(['src/views/modules/userBehaviorAnalysis/sysSaturation'], resolve)408 },409 401: {410 name: 'recharge-hot-plant',411 component: resolve =>412 require(['src/views/modules/marketingAnalysis/rechargeHotPlant'], resolve)413 },414 402: {415 name: 'big-customer-trend',416 component: resolve =>417 require(['src/views/modules/marketingAnalysis/bigCustomerTrend'], resolve)418 },419 403: {420 name: 'fashionConsum',421 component: resolve =>422 require(['src/views/modules/marketingAnalysis/fashionConsum'], resolve)423 },424 404: {425 name: 'hotConsum',426 component: resolve =>427 require(['src/views/modules/marketingAnalysis/hotConsum'], resolve)428 },429 405: {430 name: 'timeLimitConsum',431 component: resolve =>432 require(['src/views/modules/marketingAnalysis/timeLimitConsum'], resolve)433 },434 406: {435 name: 'payHotPlant',436 component: resolve =>437 require(['src/views/modules/marketingAnalysis/payHotPlant'], resolve)438 },439 501: {440 name: 'recharge-order',441 component: resolve =>442 require(['src/views/modules/formData/rechargeOrder'], resolve)443 },444 502: {445 name: 'first-pay-detail',446 component: resolve =>447 require(['src/views/modules/formData/firstPayDetail'], resolve)448 },449 503: {450 name: 'reg-detail',451 component: resolve =>452 require(['src/views/modules/formData/regDetail'], resolve)453 },454 901: {455 name: "market",456 component: resolve =>457 require(['src/views/modules/reports/markets'], resolve)458 },459 902: {460 name: "real-time",461 component: resolve =>462 require(['src/views/modules/reports/real-time'], resolve)463 }464 }465}...

Full Screen

Full Screen

route-opt.js

Source:route-opt.js Github

copy

Full Screen

1/**2 * 路由配置表3 * */4import cardRoutes from './route-card'5import contentRoutes from './route-content'6import listRoutes from './route-list'7import pickerRoutes from './route-picker'8import scrollRoutes from './route-scroll'9import segmentRoutes from './route-segment'10import tabsRoutes from './route-tabs'11import inputRoutes from './route-input'12import textareaRoutes from './route-textarea'13let routes = [14 {15 path: '/',16 name: 'index',17 meta: {18 root: true19 },20 component: require('@/pages/index.vue')21 },22 {23 path: '/components',24 name: 'components',25 component: require('@/pages/components.vue')26 },27 {28 path: '/grid',29 name: 'grid',30 component (resolve) {31 require(['@/pages/grid.vue'], resolve)32 }33 },34 // ---- menu ----35 {36 path: '/introduce',37 name: 'introduce',38 component (resolve) {39 require(['@/pages/introduce.vue'], resolve)40 }41 },42 {43 path: '/howToStart',44 name: 'howToStart',45 component (resolve) {46 require(['@/pages/how-to-start.vue'], resolve)47 }48 },49 {50 path: '/config',51 name: 'config',52 component (resolve) {53 require(['@/pages/config.vue'], resolve)54 }55 },56 {57 path: '/history',58 name: 'history',59 component (resolve) {60 require(['@/pages/history.vue'], resolve)61 }62 },63 // ---- component ----64 // ---- component/base ----65 {66 path: '/app',67 // name: 'app',68 component (resolve) {69 require(['@/pages/app.vue'], resolve)70 }71 },72 {73 path: '/nav',74 name: 'nav',75 component (resolve) {76 require(['@/pages/nav.vue'], resolve)77 }78 },79 {80 path: '/platform',81 name: 'platform',82 component (resolve) {83 require(['@/pages/platform.vue'], resolve)84 }85 },86 {87 path: '/cross-platform',88 name: 'crossPlatform',89 component (resolve) {90 require(['@/pages/cross-platform.vue'], resolve)91 }92 },93 {94 path: '/toolbar',95 name: 'toolbar',96 component (resolve) {97 require(['@/pages/toolbar.vue'], resolve)98 }99 },100 // ---- component/弹出层组件 ----101 {102 path: '/action-sheet',103 name: 'actionSheet',104 component (resolve) {105 require(['@/pages/action-sheet.vue'], resolve)106 }107 },108 {109 path: '/alert',110 name: 'alert',111 component (resolve) {112 require(['@/pages/alert.vue'], resolve)113 }114 },115 {116 path: '/popover',117 name: 'popover',118 component: require('@/pages/popover/popover.vue')119 },120 {121 path: '/backdrop',122 name: 'backdrop',123 component (resolve) {124 require(['@/pages/backdrop.vue'], resolve)125 }126 },127 {128 path: '/loading',129 name: 'loading',130 component (resolve) {131 require(['@/pages/loading.vue'], resolve)132 }133 },134 {135 path: '/indicator',136 name: 'indicator',137 component (resolve) {138 require(['@/pages/indicator.vue'], resolve)139 }140 },141 {142 path: '/modal',143 name: 'modal',144 component (resolve) {145 require(['@/pages/modal/modal.vue'], resolve)146 }147 },148 {149 path: '/toast',150 name: 'toast',151 component (resolve) {152 require(['@/pages/toast.vue'], resolve)153 }154 },155 {156 path: '/toast-state',157 name: 'toastState',158 component (resolve) {159 require(['@/pages/toast-state.vue'], resolve)160 }161 },162 // ---- component/通用组件 ----163 {164 path: '/button',165 name: 'button',166 component (resolve) {167 require(['@/pages/button.vue'], resolve)168 }169 },170 {171 path: '/icon',172 name: 'icon',173 component (resolve) {174 require(['@/pages/icon.vue'], resolve)175 }176 },177 {178 path: '/spinner',179 name: 'spinner',180 component (resolve) {181 require(['@/pages/spinner.vue'], resolve)182 }183 },184 {185 path: '/badge',186 name: 'badge',187 component (resolve) {188 require(['@/pages/badge.vue'], resolve)189 }190 },191 {192 path: '/fab',193 name: 'fab',194 component (resolve) {195 require(['@/pages/fab.vue'], resolve)196 }197 },198 {199 path: '/img',200 name: 'img',201 component (resolve) {202 require(['@/pages/img.vue'], resolve)203 }204 },205 {206 path: '/slides',207 name: 'slides',208 component (resolve) {209 require(['@/pages/slides.vue'], resolve)210 }211 },212 {213 path: '/slides-lite',214 name: 'slidesLite',215 component (resolve) {216 require(['@/pages/slides-lite.vue'], resolve)217 }218 },219 {220 path: '/feedback',221 name: 'feedback',222 component (resolve) {223 require(['@/pages/feedback.vue'], resolve)224 }225 },226 {227 path: '/scroll-segment',228 name: 'scrollSegment',229 component (resolve) {230 require(['@/pages/scroll-segment.vue'], resolve)231 }232 },233 {234 path: '/notice-bar',235 name: 'noticeBar',236 component (resolve) {237 require(['@/pages/notice-bar.vue'], resolve)238 }239 },240 {241 path: '/separation',242 name: 'separation',243 component (resolve) {244 require(['@/pages/separation.vue'], resolve)245 }246 },247 {248 path: '/slide-box',249 name: 'slideBox',250 component (resolve) {251 require(['@/pages/slide-box.vue'], resolve)252 }253 },254 {255 path: '/deeplink',256 name: 'deeplink',257 component (resolve) {258 require(['@/pages/deeplink/deeplink.vue'], resolve)259 }260 },261 {262 path: '/oia-page',263 name: 'oiaPage',264 component (resolve) {265 require(['@/pages/deeplink/oia-page.vue'], resolve)266 }267 },268 {269 path: '/preview-image',270 name: 'previewImage',271 component (resolve) {272 require(['@/pages/preview-image.vue'], resolve)273 }274 },275 {276 path: '/choose-city',277 name: 'chooseCity',278 component (resolve) {279 require(['@/pages/choose-city.vue'], resolve)280 }281 },282 {283 path: '/sheet',284 name: 'sheet',285 component (resolve) {286 require(['@/pages/sheet.vue'], resolve)287 }288 },289 {290 path: '/pop-sheet',291 name: 'popSheet',292 component (resolve) {293 require(['@/pages/pop-sheet.vue'], resolve)294 }295 },296 {297 path: '/menu',298 name: 'menu',299 component (resolve) {300 require(['@/pages/menu.vue'], resolve)301 }302 },303 // ---- component/Form组件 ----304 {305 path: '/toggle',306 name: 'toggle',307 component (resolve) {308 require(['@/pages/toggle.vue'], resolve)309 }310 },311 {312 path: '/checkbox',313 name: 'checkbox',314 component (resolve) {315 require(['@/pages/checkbox.vue'], resolve)316 }317 },318 {319 path: '/radio',320 name: 'radio',321 component (resolve) {322 require(['@/pages/radio.vue'], resolve)323 }324 },325 {326 path: '/select',327 name: 'select',328 component (resolve) {329 require(['@/pages/select.vue'], resolve)330 }331 },332 {333 path: '/searchbar',334 name: 'searchbar',335 component (resolve) {336 require(['@/pages/searchbar.vue'], resolve)337 }338 },339 {340 path: '/range',341 name: 'range',342 component (resolve) {343 require(['@/pages/range.vue'], resolve)344 }345 },346 // ---- 数据加载 ----347 {348 path: '/infinite-scroll',349 name: 'infinite-scroll',350 component (resolve) {351 require(['@/pages/infinite-scroll.vue'], resolve)352 }353 },354 {355 path: '/refresher',356 name: 'refresher',357 component (resolve) {358 require(['@/pages/refresher.vue'], resolve)359 }360 },361 // 模块362 {363 path: '/storage',364 name: 'storage',365 component (resolve) {366 require(['@/pages/storage.vue'], resolve)367 }368 },369 {370 path: '/geo',371 name: 'geo',372 component (resolve) {373 require(['@/pages/geo.vue'], resolve)374 }375 },376 {377 path: '/log',378 name: 'log',379 component (resolve) {380 require(['@/pages/log.vue'], resolve)381 }382 },383 {384 path: '*',385 name: 'notFound',386 component (resolve) {387 require(['@/pages/not-found.vue'], resolve)388 }389 }390 // demo391 // {392 // path: '/snake-box',393 // name: 'snakeBox',394 // component (resolve) {395 // require(['@/pages/snake-box.vue'], resolve)396 // }397 // },398 // {399 // path: '/ghost',400 // name: 'ghostvue',401 // component (resolve) {402 // require(['@/pages/ghost.vue'], resolve)403 // }404 // },405 // {406 // path: '/floattop',407 // name: 'floattop',408 // component (resolve) {409 // require(['@/pages/floattop.vue'], resolve)410 // }411 // }412]413routes = routes.concat(contentRoutes)414routes = routes.concat(segmentRoutes)415routes = routes.concat(tabsRoutes)416routes = routes.concat(listRoutes)417routes = routes.concat(cardRoutes)418routes = routes.concat(scrollRoutes)419routes = routes.concat(pickerRoutes)420routes = routes.concat(inputRoutes)421routes = routes.concat(textareaRoutes)422export default {423 mode: 'hash',424 routes: routes // (缩写)相当于 routes: routes...

Full Screen

Full Screen

profile.js

Source:profile.js Github

copy

Full Screen

1const router = {2 path: '/profile',3 name: 'profileIndex',4 component: resolve => require(['../views/profile/index'], resolve),5 children: [6 {7 path: 'orderAfterSaleList',8 name: 'orderAfterSaleList',9 component: resolve => require(['../views/profile/order/orderAfterSaleList'], resolve),10 },11 {12 path: 'afterSaleInfo',13 name: 'afterSaleInfo',14 component: resolve => require(['../views/profile/order/afterSale/afterSaleInfo'], resolve),15 },16 {17 path: 'afterSaleList',18 name: 'afterSaleList',19 component: resolve => require(['../views/profile/order/afterSale/afterSaleList'], resolve),20 },21 {22 path: 'refund',23 name: 'refund',24 component: resolve => require(['../views/profile/order/afterSale/refund/refund'], resolve),25 },26 {27 path: 'updatePhone',28 name: 'updatePhone',29 component: resolve => require(['../views/profile/user/updatePhone'], resolve),30 },31 {32 path: 'userSet',33 name: 'userSet',34 component: resolve => require(['../views/profile/user/userSet'], resolve),35 },36 {37 path: 'option',38 name: 'option',39 component: resolve => require(['../views/profile/accountSecurity/option'], resolve),40 },41 {42 path: 'qrcode',43 name: 'qrcode',44 component: resolve => require(['../views/profile/accountSecurity/qrcode'], resolve),45 },46 {47 path: 'dataList',48 name: 'dataList',49 component: resolve => require(['../views/profile/order/dataList'], resolve),50 },51 {52 path: 'myGrowth',53 name: 'myGrowth',54 component: resolve => require(['../views/profile/myGrowth'], resolve),55 },{56 path:'myGrowup',57 name:'myGrowup',58 component: resolve => require(['../views/profile/myGrowup'], resolve),59 },60 {61 path: 'profit',62 name: 'profit',63 component: resolve => require(['../views/profile/profit'], resolve),64 },65 {66 path: 'balance',67 name: 'balance',68 component: resolve => require(['../views/profile/balance/balance'], resolve),69 },70 {71 path: 'ucurrency',72 name: 'ucurrency',73 component: resolve => require(['../views/profile/balance/ucurrency'], resolve),74 },75 {76 path: 'vault',77 name: 'vault',78 component: resolve => require(['../views/profile/balance/vault'], resolve),79 },80 {81 path: 'recharge',82 name: 'recharge',83 component: resolve => require(['../views/profile/balance/recharge'], resolve),84 },85 {86 path: 'withdrawal',87 name: 'withdrawal',88 component: resolve => require(['../views/profile/balance/withdrawal'], resolve),89 },90 {91 path: 'cashDepositList',92 name: 'cashDepositList',93 component: resolve => require(['../views/profile/balance/frozen/cashDepositList'], resolve),94 },95 {96 path: 'worldBonus',97 name: 'worldBonus',98 component: resolve => require(['../views/profile/balance/frozen/worldBonus'], resolve),99 },100 {101 path: 'frozenList',102 name: 'frozenList',103 component: resolve => require(['../views/profile/balance/frozen/frozenList'], resolve),104 },105 {106 path: 'rechargeOffline',107 name: 'rechargeOffline',108 component: resolve => require(['../views/profile/balance/recharge-offline'], resolve),109 },110 {111 path: 'integral',112 name: 'integral',113 component: resolve => require(['../views/profile/balance/integral'], resolve),114 },115 {116 path: 'bankInfo',117 name: 'bankInfo',118 component: resolve => require(['../views/profile/balance/bankCardManage/bankCardList'], resolve),119 },120 {121 path: 'bandCard',122 name: 'bandCard',123 component: resolve => require(['../views/profile/balance/bankCardManage/bandCard'], resolve),124 },125 {126 path: 'sales',127 name: 'sales',128 component: resolve => require(['../views/profile/sales'], resolve),129 },130 {131 path: 'mineItem',132 name: 'mineItem',133 component: resolve => require(['../views/profile/mineItem'], resolve),134 },135 {136 path: 'orderList',137 name: 'orderList',138 component: resolve => require(['../views/profile/order/orderList'], resolve),139 },140 {141 path: 'logistics',142 name: 'logistics',143 component: resolve => require(['../views/profile/order/logistics'], resolve),144 },145 {146 path: 'collection',147 name: 'collection',148 component: resolve => require(['../views/profile/collection'], resolve),149 },150 {151 path: 'personalOrder',152 name: 'personalOrder',153 component: resolve => require(['../views/profile/order/personalOrder'], resolve),154 },155 {156 path: 'personalOrderDetail/:id',157 name: 'personalOrderDetail',158 component: resolve => require(['../views/profile/order/personalOrderDetail'], resolve),159 },160 {161 path: 'personalInfo',162 name: 'personalInfo',163 component: resolve => require(['../views/profile/personalInfo'], resolve),164 },165 {166 path: 'addressList',167 name: 'addressList',168 component: resolve => require(['../views/profile/addressManage/addressList'], resolve),169 },170 {171 path: 'addressEdit',172 name: 'addressEdit',173 component: resolve => require(['../views/profile/addressManage/addressEdit'], resolve),174 },175 {176 path: 'certification',177 name: 'certification',178 component: resolve => require(['../views/profile/certification'], resolve),179 },180 {181 path: 'accountInfo',182 name: 'accountInfo',183 component: resolve => require(['../views/profile/accountSecurity/accountInfo'], resolve),184 },185 {186 path: 'updatePsw',187 name: 'updatePsw',188 component: resolve => require(['../views/profile/accountSecurity/updatePsw'], resolve),189 },190 {191 path: 'forgetPsw',192 name: 'forgetPsw',193 component: resolve => require(['../views/profile/accountSecurity/forgetPsw'], resolve),194 },195 {196 path: 'forgetPsw2',197 name: 'forgetPsw2',198 component: resolve => require(['../views/profile/accountSecurity/forgetPsw2'], resolve),199 },200 {201 path: 'eka',202 name: 'eka',203 component: resolve => require(['../views/profile/balance/eka'], resolve),204 },205 {206 path: 'performance',207 name: 'performance',208 component: resolve => require(['../views/profile/balance/performance'], resolve),209 },210 {211 path: 'integralDetail',212 name: 'integralDetail',213 component: resolve => require(['../views/profile/balance/integralDetail'], resolve),214 },215 {216 path: 'usableIntegral',217 name: 'usableIntegral',218 component: resolve => require(['../views/profile/balance/usableIntegral'], resolve),219 },220 {221 path: 'withdrawIntegral',222 name: 'withdrawIntegral',223 component: resolve => require(['../views/profile/balance/withdrawIntegral'], resolve),224 },225 ]226}...

Full Screen

Full Screen

main.js

Source:main.js Github

copy

Full Screen

1/**2 * Created by aresn on 16/6/20.3 */4import 'babel-polyfill';5import Vue from 'vue';6import VueRouter from 'vue-router';7import App from './app.vue';8import iView from '../src/index';9// import locale from '../src/locale/lang/en-US';10import locale from '../src/locale/lang/zh-CN';11Vue.use(VueRouter);12Vue.use(iView, {13 locale14});15// 开启debug模式16Vue.config.debug = true;17// 路由配置18const router = new VueRouter({19 esModule: false,20 mode: 'history',21 routes: [22 {23 path: '/split',24 component: (resolve) => require(['./routers/split.vue'], resolve)25 },26 {27 path: '/layout',28 component: (resolve) => require(['./routers/layout.vue'], resolve)29 },30 {31 path: '/affix',32 component: (resolve) => require(['./routers/affix.vue'], resolve)33 },34 {35 path: '/anchor',36 component: (resolve) => require(['./routers/anchor.vue'], resolve)37 },38 {39 path: '/grid',40 component: (resolve) => require(['./routers/grid.vue'], resolve)41 },42 {43 path: '/button',44 component: (resolve) => require(['./routers/button.vue'], resolve)45 },46 {47 path: '/input',48 component: (resolve) => require(['./routers/input.vue'], resolve)49 },50 {51 path: '/radio',52 component: (resolve) => require(['./routers/radio.vue'], resolve)53 },54 {55 path: '/checkbox',56 component: (resolve) => require(['./routers/checkbox.vue'], resolve)57 },58 {59 path: '/steps',60 component: (resolve) => require(['./routers/steps.vue'], resolve)61 },62 {63 path: '/timeline',64 component: (resolve) => require(['./routers/timeline.vue'], resolve)65 },66 {67 path: '/switch',68 component: (resolve) => require(['./routers/switch.vue'], resolve)69 },70 {71 path: '/alert',72 component: (resolve) => require(['./routers/alert.vue'], resolve)73 },74 {75 path: '/badge',76 component: (resolve) => require(['./routers/badge.vue'], resolve)77 },78 {79 path: '/tag',80 component: (resolve) => require(['./routers/tag.vue'], resolve)81 },82 {83 path: '/input-number',84 component: (resolve) => require(['./routers/input-number.vue'], resolve)85 },86 {87 path: '/upload',88 component: (resolve) => require(['./routers/upload.vue'], resolve)89 },90 {91 path: '/progress',92 component: (resolve) => require(['./routers/progress.vue'], resolve)93 },94 {95 path: '/collapse',96 component: (resolve) => require(['./routers/collapse.vue'], resolve)97 },98 {99 path: '/carousel',100 component: (resolve) => require(['./routers/carousel.vue'], resolve)101 },102 {103 path: '/card',104 component: (resolve) => require(['./routers/card.vue'], resolve)105 },106 {107 path: '/tree',108 component: (resolve) => require(['./routers/tree.vue'], resolve)109 },110 {111 path: '/rate',112 component: (resolve) => require(['./routers/rate.vue'], resolve)113 },114 {115 path: '/circle',116 component: (resolve) => require(['./routers/circle.vue'], resolve)117 },118 {119 path: '/tabs',120 component: (resolve) => require(['./routers/tabs.vue'], resolve)121 },122 {123 path: '/tooltip',124 component: (resolve) => require(['./routers/tooltip.vue'], resolve)125 },126 {127 path: '/poptip',128 component: (resolve) => require(['./routers/poptip.vue'], resolve)129 },130 {131 path: '/slider',132 component: (resolve) => require(['./routers/slider.vue'], resolve)133 },134 {135 path: '/dropdown',136 component: (resolve) => require(['./routers/dropdown.vue'], resolve)137 },138 {139 path: '/breadcrumb',140 component: (resolve) => require(['./routers/breadcrumb.vue'], resolve)141 },142 {143 path: '/menu',144 component: (resolve) => require(['./routers/menu.vue'], resolve)145 },146 {147 path: '/spin',148 component: (resolve) => require(['./routers/spin.vue'], resolve)149 },150 {151 path: '/cascader',152 component: (resolve) => require(['./routers/cascader.vue'], resolve)153 },154 {155 path: '/select',156 component: (resolve) => require(['./routers/select.vue'], resolve)157 },158 {159 path: '/backtop',160 component: (resolve) => require(['./routers/back-top.vue'], resolve)161 },162 {163 path: '/page',164 component: (resolve) => require(['./routers/page.vue'], resolve)165 },166 {167 path: '/transfer',168 component: (resolve) => require(['./routers/transfer.vue'], resolve)169 },170 {171 path: '/date',172 component: (resolve) => require(['./routers/date.vue'], resolve)173 },174 {175 path: '/calendar',176 component: (resolve) => require(['./routers/calendar.vue'], resolve)177 },178 {179 path: '/form',180 component: (resolve) => require(['./routers/form.vue'], resolve)181 },182 {183 path: '/table',184 component: (resolve) => require(['./routers/table.vue'], resolve)185 },186 {187 path: '/loading-bar',188 component: (resolve) => require(['./routers/loading-bar.vue'], resolve)189 },190 {191 path: '/modal',192 component: (resolve) => require(['./routers/modal.vue'], resolve)193 },194 {195 path: '/message',196 component: (resolve) => require(['./routers/message.vue'], resolve)197 },198 {199 path: '/notice',200 component: (resolve) => require(['./routers/notice.vue'], resolve)201 },202 {203 path: '/avatar',204 component: (resolve) => require(['./routers/avatar.vue'], resolve)205 },206 {207 path: '/color-picker',208 component: (resolve) => require(['./routers/color-picker.vue'], resolve)209 },210 {211 path: '/auto-complete',212 component: (resolve) => require(['./routers/auto-complete.vue'], resolve)213 },214 {215 path: '/scroll',216 component: (resolve) => require(['./routers/scroll.vue'], resolve)217 },218 {219 path: '/divider',220 component: (resolve) => require(['./routers/divider.vue'], resolve)221 },222 {223 path: '/time',224 component: (resolve) => require(['./routers/time.vue'], resolve)225 },226 {227 path: '/cell',228 component: (resolve) => require(['./routers/cell.vue'], resolve)229 },230 {231 path: '/drawer',232 component: (resolve) => require(['./routers/drawer.vue'], resolve)233 },234 {235 path: '/icon',236 component: (resolve) => require(['./routers/icon.vue'], resolve)237 },238 {239 path: '/list',240 component: (resolve) => require(['./routers/list.vue'], resolve)241 }242 ]243});244const app = new Vue({245 router: router,246 render: h => h(App)...

Full Screen

Full Screen

resolve.test.js

Source:resolve.test.js Github

copy

Full Screen

...35 });36 describe('.resolve', function() {37 describe('should throw on invalid input', function() {38 it('name', function() {39 expect(() => resolve.resolve()).to.throw(Error);40 expect(() => resolve.resolve('')).to.throw(Error);41 expect(() => resolve.resolve(999)).to.throw(Error);42 });43 it('qtype', function() {44 expect(() => resolve.resolve('name')).to.throw(Error);45 expect(() => resolve.resolve('name', '')).to.throw(Error);46 expect(() => resolve.resolve('name', 'WHAT')).to.throw(Error);47 expect(() => resolve.resolve('name', 0)).to.throw(Error);48 });49 it('options', function() {50 const options = {interface: 'non-existant'};51 expect(() => resolve.resolve('name', 1, 'wrong')).to.throw(Error);52 expect(() => resolve.resolve('name', 1, options)).to.throw(Error);53 });54 });55 it('should resolve answer and any related records', function(done) {56 resolve.resolve('record.name.', 'A').then((result) => {57 expect(result.answer).to.equal(A);58 expect(result.related).to.have.members([AAAA]);59 expect(intf.stop).to.have.been.called;60 done();61 });62 // need to let the interface stub's bind method resolve first63 setTimeout(() => query.emit('answer', A, [AAAA]), 10);64 });65 it('should reject with an error on timeout', function(done) {66 resolve.resolve('record.name', 'A').catch(() => done());67 setTimeout(() => query.emit('timeout'), 10);68 });69 });70 describe('.resolve4', function() {71 it('should resolve with an address', function(done) {72 resolve.resolve4('record.name.').then((result) => {73 expect(result).to.equal(A.address);74 done();75 });76 // need to let the stubs bind resolve first77 setTimeout(() => query.emit('answer', A, [AAAA]), 10);78 });79 it('should reject with an error on timeout', function(done) {80 resolve.resolve4('record.name.').catch(() => done());...

Full Screen

Full Screen

route-tabs.js

Source:route-tabs.js Github

copy

Full Screen

1/**2 * Created by Hsiang on 2017/4/28.3 * segment相关的路由4 */5export default [6 // ---- component/Tabs组件 ----7 {8 path: '/tabs',9 name: 'tabs',10 component (resolve) {11 require(['@/pages/tabs/tabs.vue'], resolve)12 }13 },14 {15 path: '/tabsBottom',16 name: 'tabs.tabsBottom',17 component (resolve) {18 require(['@/pages/tabs/tabsBottom.vue'], resolve)19 },20 redirect: {name: 'tabsBottom.demoTab1'},21 children: [22 {23 path: 'demoTab1',24 name: 'tabsBottom.demoTab1',25 component (resolve) {26 require(['@/pages/tabs/demoTab1-navbar.vue'], resolve)27 }28 },29 {30 path: 'demoTab2',31 name: 'tabsBottom.demoTab2',32 component (resolve) {33 require(['@/pages/tabs/demoTab2-navbar.vue'], resolve)34 }35 },36 {37 path: 'demoTab3',38 name: 'tabsBottom.demoTab3',39 component (resolve) {40 require(['@/pages/tabs/demoTab3-navbar.vue'], resolve)41 }42 }43 ]44 },45 {46 path: '/tabsTop',47 name: 'tabs.tabsTop',48 component (resolve) {49 require(['@/pages/tabs/tabsTop.vue'], resolve)50 },51 redirect: {name: 'tabsTop.demoTab1'},52 children: [53 {54 path: 'demoTab1',55 name: 'tabsTop.demoTab1',56 component (resolve) {57 require(['@/pages/tabs/demoTab1.vue'], resolve)58 }59 },60 {61 path: 'demoTab2',62 name: 'tabsTop.demoTab2',63 component (resolve) {64 require(['@/pages/tabs/demoTab2.vue'], resolve)65 }66 },67 {68 path: 'demoTab3',69 name: 'tabsTop.demoTab3',70 component (resolve) {71 require(['@/pages/tabs/demoTab3.vue'], resolve)72 }73 }74 ]75 },76 {77 path: '/iconOnly',78 name: 'tabs.iconOnly',79 component (resolve) {80 require(['@/pages/tabs/iconOnly.vue'], resolve)81 },82 redirect: {name: 'iconOnly.demoTab1'},83 children: [84 {85 path: 'demoTab1',86 name: 'iconOnly.demoTab1',87 component (resolve) {88 require(['@/pages/tabs/demoTab1.vue'], resolve)89 }90 },91 {92 path: 'demoTab2',93 name: 'iconOnly.demoTab2',94 component (resolve) {95 require(['@/pages/tabs/demoTab2.vue'], resolve)96 }97 },98 {99 path: 'demoTab3',100 name: 'iconOnly.demoTab3',101 component (resolve) {102 require(['@/pages/tabs/demoTab3.vue'], resolve)103 }104 }105 ]106 },107 {108 path: '/iconLeft',109 name: 'tabs.iconLeft',110 component (resolve) {111 require(['@/pages/tabs/iconLeft.vue'], resolve)112 },113 redirect: {name: 'iconLeft.demoTab1'},114 children: [115 {116 path: 'demoTab1',117 name: 'iconLeft.demoTab1',118 component (resolve) {119 require(['@/pages/tabs/demoTab1.vue'], resolve)120 }121 },122 {123 path: 'demoTab2',124 name: 'iconLeft.demoTab2',125 component (resolve) {126 require(['@/pages/tabs/demoTab2.vue'], resolve)127 }128 },129 {130 path: 'demoTab3',131 name: 'iconLeft.demoTab3',132 component (resolve) {133 require(['@/pages/tabs/demoTab3.vue'], resolve)134 }135 }136 ]137 },138 {139 path: '/titleOnly',140 name: 'tabs.titleOnly',141 component (resolve) {142 require(['@/pages/tabs/titleOnly.vue'], resolve)143 },144 redirect: {name: 'titleOnly.demoTab1'},145 children: [146 {147 path: 'demoTab1',148 name: 'titleOnly.demoTab1',149 component (resolve) {150 require(['@/pages/tabs/demoTab1.vue'], resolve)151 }152 },153 {154 path: 'demoTab2',155 name: 'titleOnly.demoTab2',156 component (resolve) {157 require(['@/pages/tabs/demoTab2.vue'], resolve)158 }159 },160 {161 path: 'demoTab3',162 name: 'titleOnly.demoTab3',163 component (resolve) {164 require(['@/pages/tabs/demoTab3.vue'], resolve)165 }166 }167 ]168 },169 {170 path: '/iconBottom',171 name: 'tabs.iconBottom',172 component (resolve) {173 require(['@/pages/tabs/iconBottom.vue'], resolve)174 },175 redirect: {name: 'iconBottom.demoTab1'},176 children: [177 {178 path: 'demoTab1',179 name: 'iconBottom.demoTab1',180 component (resolve) {181 require(['@/pages/tabs/demoTab1.vue'], resolve)182 }183 },184 {185 path: 'demoTab2',186 name: 'iconBottom.demoTab2',187 component (resolve) {188 require(['@/pages/tabs/demoTab2.vue'], resolve)189 }190 },191 {192 path: 'demoTab3',193 name: 'iconBottom.demoTab3',194 component (resolve) {195 require(['@/pages/tabs/demoTab3.vue'], resolve)196 }197 }198 ]199 },200 {201 path: '/tabHighLight',202 name: 'tabs.tabHighLight',203 component (resolve) {204 require(['@/pages/tabs/tabHighLight.vue'], resolve)205 },206 redirect: {name: 'tabHighLight.demoTab1'},207 children: [208 {209 path: 'demoTab1',210 name: 'tabHighLight.demoTab1',211 component (resolve) {212 require(['@/pages/tabs/demoTab1.vue'], resolve)213 }214 },215 {216 path: 'demoTab2',217 name: 'tabHighLight.demoTab2',218 component (resolve) {219 require(['@/pages/tabs/demoTab2.vue'], resolve)220 }221 },222 {223 path: 'demoTab3',224 name: 'tabHighLight.demoTab3',225 component (resolve) {226 require(['@/pages/tabs/demoTab3.vue'], resolve)227 }228 }229 ]230 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const path = require('path');2const { chromium } = require('playwright');3(async () => {4 const browser = await chromium.launch();5 const context = await browser.newContext();6 const page = await context.newPage();7 await page.screenshot({ path: path.resolve(__dirname, 'google.png') });8 await browser.close();9})();10const path = require('path');11const { chromium } = require('playwright');12(async () => {13 const browser = await chromium.launch();14 const context = await browser.newContext();15 const page = await context.newPage();16 await page.screenshot({ path: path.resolve(__dirname, 'google.png') });17 await browser.close();18})();19const path = require('path');20const { chromium } = require('playwright');21(async () => {22 const browser = await chromium.launch();23 const context = await browser.newContext();24 const page = await context.newPage();25 await page.screenshot({ path: path.join(__dirname, 'google.png') });26 await browser.close();27})();28const path = require('path');29const { chromium } = require('playwright');30(async () => {31 const browser = await chromium.launch();32 const context = await browser.newContext();33 const page = await context.newPage();34 await page.screenshot({ path: path.join(__dirname, 'google.png') });35 await browser.close();36})();37const path = require('path');38const { chromium } = require('playwright');39(async () => {40 const browser = await chromium.launch();

Full Screen

Using AI Code Generation

copy

Full Screen

1const path = require('path');2const { chromium } = require('playwright');3(async () => {4 const browser = await chromium.launch();5 const context = await browser.newContext();6 const page = await context.newPage();7 await page.click('input[name="q"]');8 await page.fill('input[name="q"]', 'docs');9 await page.click('text=Docs');

Full Screen

Using AI Code Generation

copy

Full Screen

1const {chromium} = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 await page.screenshot({path: 'example.png'});7 await browser.close();8})();9const playwright = require('playwright');10(async () => {11 for (const browserType of ['chromium', 'firefox', 'webkit']) {12 const browser = await playwright[browserType].launch();13 const context = await browser.newContext();14 const page = await context.newPage();15 await page.screenshot({path: `example-${browserType}.png`});16 await browser.close();17 }18})();19const playwright = require('playwright');20(async () => {21 for (const browserType of ['chromium', 'firefox', 'webkit']) {22 const browser = await playwright[browserType].launch();23 const context = await browser.newContext();24 const page = await context.newPage();25 await page.screenshot({path: `example-${browserType}.png`});26 await browser.close();27 }28})();29const playwright = require('playwright');30(async () => {31 for (const browserType of ['chromium', 'firefox', 'webkit']) {32 const browser = await playwright[browserType].launch();33 const context = await browser.newContext();34 const page = await context.newPage();35 await page.screenshot({path: `example-${browserType}.png`});36 await browser.close();37 }38})();39const playwright = require('playwright');40(async () => {41 for (const browserType of ['chromium', 'firefox', 'webkit']) {42 const browser = await playwright[browserType].launch();43 const context = await browser.newContext();44 const page = await context.newPage();45 await page.screenshot({path: `example

Full Screen

Using AI Code Generation

copy

Full Screen

1const path = require('path');2const {chromium} = require('playwright');3const {PlaywrightController} = require('playwright-controller');4(async () => {5 const browser = await chromium.launch();6 const controller = new PlaywrightController(browser);7 const filePath = path.resolve(__dirname, 'test.html');8 await controller.navigateTo(filePath);9 await controller.close();10})();11const {chromium} = require('playwright');12const {PlaywrightController} = require('playwright-controller');13(async () => {14 const browser = await chromium.launch();15 const controller = new PlaywrightController(browser);16 await controller.close();17})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const path = require('path');2const {chromium} = require('playwright');3const { PlaywrightInternal } = require('playwright/lib/server/playwright');4const { BrowserType } = require('playwright/lib/server/chromium/crBrowser');5const internal = new PlaywrightInternal();6const browserType = BrowserType.from(internal, 'chromium');7const browser = await browserType.launch({headless: false});8const context = await browser.newContext();9const page = await context.newPage();10const filePath = path.resolve(__dirname, 'test.txt');11const fileInput = await page.$('input[type="file"]');12await fileInput.setInputFiles(filePath);13await browser.close();14{15 "dependencies": {16 },17 "devDependencies": {18 }19}20{21 "packages": {22 "": {23 "dependencies": {24 },25 "devDependencies": {26 }27 },28 "node_modules/playwright": {

Full Screen

Using AI Code Generation

copy

Full Screen

1const { resolve } = require('playwright/lib/utils/utils');2const path = require('path');3const fs = require('fs');4const { chromium } = require('playwright');5const browser = await chromium.launch();6const context = await browser.newContext();7const page = await context.newPage();8const url = resolve(path.join(__dirname, 'index.html'));9await page.goto(url);10await page.screenshot({ path: 'example.png' });11await browser.close();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { resolve } = require('playwright/lib/utils/utils');2const path = require('path');3const fs = require('fs');4const { BrowserType } = require('playwright');5const { chromium } = require('playwright');6const { firefox } = require('playwright');7const { webkit } = require('playwright');8const { devices } = require('playwright');9const { resolve } = require('playwright/lib/utils/utils');10const path = require('path');11const fs = require('fs');12const { BrowserType } = require('playwright');13const { chromium } = require('playwright');14const { firefox } = require('playwright');15const { webkit } = require('playwright');16const { devices } = require('playwright');17const { resolve } = require('playwright/lib/utils/utils');18const path = require('path');19const fs = require('fs');20const { BrowserType } = require('playwright');21const { chromium } = require('playwright');22const { firefox } = require('playwright');23const { webkit } = require('playwright');24const { devices } = require('playwright');25const { resolve } = require('playwright/lib/utils/utils');26const path = require('path');27const fs = require('fs');28const { BrowserType } = require('playwright');29const { chromium } = require('playwright');30const { firefox } = require('playwright');31const { webkit } = require('playwright');32const { devices } = require('playwright');33const { resolve } = require('playwright/lib/utils/utils');34const path = require('path');35const fs = require('fs');36const { BrowserType } = require('playwright');37const { chromium } = require('playwright');38const { firefox } = require('playwright');39const { webkit } = require('playwright');40const { devices } = require('playwright');41const { resolve } = require('playwright/lib/utils/utils');42const path = require('path');43const fs = require('fs');44const { BrowserType } = require('playwright');45const { chromium } = require('playwright');

Full Screen

Using AI Code Generation

copy

Full Screen

1const { resolve } = require('playwright-internal');2const path = require('path');3const fs = require('fs');4const browserPath = resolve('chromium');5console.log(browserPath);6const browserExecutablePath = path.join(browserPath, 'chrome.exe');7console.log(browserExecutablePath);8const browserExecutablePathExists = fs.existsSync(browserExecutablePath);9console.log(browserExecutablePathExists);10const { resolve } = require('playwright');11const path = require('path');12const fs = require('fs');13const browserPath = resolve('chromium');14console.log(browserPath);15const browserExecutablePath = path.join(browserPath, 'chrome.exe');16console.log(browserExecutablePath);17const browserExecutablePathExists = fs.existsSync(browserExecutablePath);18console.log(browserExecutablePathExists);19const { resolve } = require('playwright');20const path = require('path');21const fs = require('fs');22const browserPath = resolve('chromium');23console.log(browserPath);24const browserExecutablePath = path.join(browserPath, 'chrome.exe');25console.log(browserExecutablePath);26const browserExecutablePathExists = fs.existsSync(browserExecutablePath);27console.log(browserExecutablePathExists);28const { resolve } = require('playwright');29const path = require('path');30const fs = require('fs');31const browserPath = resolve('chromium');32console.log(browserPath);33const browserExecutablePath = path.join(browserPath, 'chrome.exe');34console.log(browserExecutablePath);35const browserExecutablePathExists = fs.existsSync(browserExecutablePath);36console.log(browserExecutablePathExists);37const { resolve } = require('playwright');38const path = require('path');39const fs = require('fs');40const browserPath = resolve('chromium');41console.log(browserPath);42const browserExecutablePath = path.join(browserPath, 'chrome.exe');43console.log(browserExecutablePath);44const browserExecutablePathExists = fs.existsSync(browserExecutablePath);45console.log(browserExecutablePathExists);46const { resolve } = require('playwright');47const path = require('path');48const fs = require('fs');49const browserPath = resolve('chrom

Full Screen

Using AI Code Generation

copy

Full Screen

1const playwight = require('playwight');2const page = playwight.page;3const playwight = require('playwight');4const page = playwight.page;5const playwight = require('playwight');6const page = playwight.page;7const playwight = require('playwight');8const page = playwight.page;9const playwight = require('playwight');10const page = playwight.page;11const playwight = require('playwight');12const page = playwight.page;13const playwight = require('playwight');14const page = playwight.page;15const playwight = require('playwight');16const page = playwight.page;17const playwight = require('playwight');18const page = playwight.page;19const playwight = require('playwight');20const page = playwight.page;21const playwight = require('playwight');22const page = playwight.page;23const playwight = require('playwight');24const page = playwight.page;

Full Screen

Playwright tutorial

LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.

Chapters:

  1. What is Playwright : Playwright is comparatively new but has gained good popularity. Get to know some history of the Playwright with some interesting facts connected with it.
  2. How To Install Playwright : Learn in detail about what basic configuration and dependencies are required for installing Playwright and run a test. Get a step-by-step direction for installing the Playwright automation framework.
  3. Playwright Futuristic Features: Launched in 2020, Playwright gained huge popularity quickly because of some obliging features such as Playwright Test Generator and Inspector, Playwright Reporter, Playwright auto-waiting mechanism and etc. Read up on those features to master Playwright testing.
  4. What is Component Testing: Component testing in Playwright is a unique feature that allows a tester to test a single component of a web application without integrating them with other elements. Learn how to perform Component testing on the Playwright automation framework.
  5. Inputs And Buttons In Playwright: Every website has Input boxes and buttons; learn about testing inputs and buttons with different scenarios and examples.
  6. Functions and Selectors in Playwright: Learn how to launch the Chromium browser with Playwright. Also, gain a better understanding of some important functions like “BrowserContext,” which allows you to run multiple browser sessions, and “newPage” which interacts with a page.
  7. Handling Alerts and Dropdowns in Playwright : Playwright interact with different types of alerts and pop-ups, such as simple, confirmation, and prompt, and different types of dropdowns, such as single selector and multi-selector get your hands-on with handling alerts and dropdown in Playright testing.
  8. Playwright vs Puppeteer: Get to know about the difference between two testing frameworks and how they are different than one another, which browsers they support, and what features they provide.
  9. Run Playwright Tests on LambdaTest: Playwright testing with LambdaTest leverages test performance to the utmost. You can run multiple Playwright tests in Parallel with the LammbdaTest test cloud. Get a step-by-step guide to run your Playwright test on the LambdaTest platform.
  10. Playwright Python Tutorial: Playwright automation framework support all major languages such as Python, JavaScript, TypeScript, .NET and etc. However, there are various advantages to Python end-to-end testing with Playwright because of its versatile utility. Get the hang of Playwright python testing with this chapter.
  11. Playwright End To End Testing Tutorial: Get your hands on with Playwright end-to-end testing and learn to use some exciting features such as TraceViewer, Debugging, Networking, Component testing, Visual testing, and many more.
  12. Playwright Video Tutorial: Watch the video tutorials on Playwright testing from experts and get a consecutive in-depth explanation of Playwright automation testing.

Run Playwright Internal automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful