shuishen
2022-04-29 443c649303cc275f4ff07b3d2f5e589047f8054d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
/*
 * @Author: Morpheus
 * @Date: 2021-04-30 14:12:09
 * @Last Modified by: Morpheus
 * @Last Modified time: 2022-04-28 11:55:30
 */
 
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
 
const large = () => import('../../pcviews/large/index.vue')
 
const pcLayout = () => import('../../pcLayout/index.vue')
const pcHome = () => import('../../pcviews/home/index.vue')
const pcMapnav = () => import('../../pcviews/mapnav/index.vue')
const pcOrgnav = () => import('../../pcviews/orgnav/index.vue')
const pcOrgnavMasses = () => import('../../pcviews/orgnav/masses.vue')
const pcOrgnavOfc = () => import('../../pcviews/orgnav/ofc.vue')
const pcOrgnavDirectly = () => import('../../pcviews/orgnav/directly.vue')
const pcOrgnavTeaching = () => import('../../pcviews/orgnav/teaching.vue')
const pcOrgnavRest = () => import('../../pcviews/orgnav/rest.vue')
const pcArc = () => import('../../pcviews/arc/index.vue')
const pcArcEdifact = () => import('../../pcviews/arc/edifact.vue')
const pcArcTeaching = () => import('../../pcviews/arc/teaching.vue')
const pcArcVenue = () => import('../../pcviews/arc/venue.vue')
const pcArcDorm = () => import('../../pcviews/arc/dorm.vue')
const pcArcCulture = () => import('../../pcviews/arc/culture.vue')
const pcArcFamily = () => import('../../pcviews/arc/family.vue')
const pcArcRest = () => import('../../pcviews/arc/rest.vue')
const pcService = () => import('../../pcviews/service/index.vue')
const pcServiceCanteen = () => import('../../pcviews/service/canteen.vue')
const pcServiceSupermarket = () => import('../../pcviews/service/supermarket.vue')
const pcServiceMedical = () => import('../../pcviews/service/medical.vue')
const pcServiceExpress = () => import('../../pcviews/service/express.vue')
const pcServiceShowers = () => import('../../pcviews/service/showers.vue')
const pcServiceTransfer = () => import('../../pcviews/service/transfer.vue')
const pcServiceCopy = () => import('../../pcviews/service/copy.vue')
const pcServiceBank = () => import('../../pcviews/service/bank.vue')
const pcServiceAed = () => import('../../pcviews/service/aed.vue')
const pcServiceService = () => import('../../pcviews/service/service.vue')
const pcServicePark = () => import('../../pcviews/service/park.vue')
const pcServiceAlleyway = () => import('../../pcviews/service/alleyway.vue')
const pcAllquery = () => import('../../pcviews/allquery/index.vue')
const pcCampusnav = () => import('../../pcviews/campusnav/index.vue')
const pcCampusnavi = () => import('../../pcviews/campusnavi/index.vue')
 
const pcSpecialmap = () => import('../../pcviews/specialmap/index.vue')
const pcSpecialmapCelebrate = () => import('../../pcviews/specialmap/celebrate.vue')
const pcSpecialmapWelcome = () => import('../../pcviews/specialmap/welcome.vue')
 
const pcTool = () => import('../../pcviews/tool/index.vue')
const pcToolDownload = () => import('../../pcviews/tool/download.vue')
const pcToolSign = () => import('../../pcviews/tool/sign.vue')
const pcToolRanging = () => import('../../pcviews/tool/ranging.vue')
const pcToolArea = () => import('../../pcviews/tool/area.vue')
const pcToolLayerManage = () => import('../../pcviews/tool/layer-manage.vue')
 
const pcTechnique = () => import('../../pcviews/technique/index.vue')
const pcTechniqueMapData = () => import('../../pcviews/technique/map.vue')
const pcTechniqueVideo = () => import('../../pcviews/technique/video.vue')
const pcTechniqueData = () => import('../../pcviews/technique/data.vue')
const pcTechniqueTurf = () => import('../../pcviews/technique/turf.vue')
const pcTechniqueSpace = () => import('../../pcviews/technique/space.vue')
const pcTechniqueGraph = () => import('../../pcviews/technique/graph.vue')
const pcTechniquePath = () => import('../../pcviews/technique/path.vue')
 
const routes = [
    // 大屏页面
    {
        path: '/large',
        meta: {
            title: '大屏页面'
        },
        component: large
    },
    {
        path: '/',
        redirect: '/pcLayout'
    },
    // pc端
    {
        path: '/pcLayout',
        redirect: '/pcLayout/default',
        meta: {
            title: '导航菜单'
        },
        component: pcLayout,
        children: [{
            path: 'default',
            component: pcHome,
            meta: {
                title: '系统首页'
            },
            children: [{
                path: 'mapnav',
                component: pcMapnav,
                meta: {
                    title: '地图导览'
                }
            },
            {
                path: 'orgnav',
                component: pcOrgnav,
                meta: {
                    title: '校区内机构导览'
                },
                children: [{
                    path: 'masses',
                    component: pcOrgnavMasses,
                    meta: {
                        title: '党群机构'
                    }
                },
                {
                    path: 'ofc',
                    component: pcOrgnavOfc,
                    meta: {
                        title: '职能部处'
                    }
                }, {
                    path: 'directly',
                    component: pcOrgnavDirectly,
                    meta: {
                        title: '直属及附属单位'
                    }
                },
                {
                    path: 'teaching',
                    component: pcOrgnavTeaching,
                    meta: {
                        title: '教学与科研机构'
                    }
                }, {
                    path: 'rest',
                    component: pcOrgnavRest,
                    meta: {
                        title: '其他机构'
                    }
                }
                ]
            },
            {
                path: 'arc',
                component: pcArc,
                meta: {
                    title: '校区内建筑'
                },
                children: [{
                    path: 'edifact',
                    component: pcArcEdifact,
                    meta: {
                        title: '行政办公'
                    }
                },
                {
                    path: 'teaching',
                    component: pcArcTeaching,
                    meta: {
                        title: '教学科研'
                    }
                }, {
                    path: 'venue',
                    component: pcArcVenue,
                    meta: {
                        title: '校区场馆'
                    }
                },
                {
                    path: 'dorm',
                    component: pcArcDorm,
                    meta: {
                        title: '校区宿舍'
                    }
                }, {
                    path: 'culture',
                    component: pcArcCulture,
                    meta: {
                        title: '文化风景'
                    }
                },
                {
                    path: 'family',
                    component: pcArcFamily,
                    meta: {
                        title: '家属住宅'
                    }
                }, {
                    path: 'rest',
                    component: pcArcRest,
                    meta: {
                        title: '主要楼宇'
                    }
                }
                ]
            },
            {
                path: 'service',
                component: pcService,
                meta: {
                    title: '生活服务设施'
                },
                children: [{
                    path: 'canteen',
                    component: pcServiceCanteen,
                    meta: {
                        title: '食堂餐厅'
                    }
                },
                {
                    path: 'supermarket',
                    component: pcServiceSupermarket,
                    meta: {
                        title: '购物超市'
                    }
                }, {
                    path: 'medical',
                    component: pcServiceMedical,
                    meta: {
                        title: '校区内医疗'
                    }
                },
                {
                    path: 'express',
                    component: pcServiceExpress,
                    meta: {
                        title: '邮寄快递'
                    }
                }, {
                    path: 'showers',
                    component: pcServiceShowers,
                    meta: {
                        title: '校区浴室'
                    }
                },
                {
                    path: 'transfer',
                    component: pcServiceTransfer,
                    meta: {
                        title: '圈存机'
                    }
                },
                {
                    path: 'copy',
                    component: pcServiceCopy,
                    meta: {
                        title: '打字复印'
                    }
                },
                {
                    path: 'bank',
                    component: pcServiceBank,
                    meta: {
                        title: '银行网点'
                    }
                }, {
                    path: 'aed',
                    component: pcServiceAed,
                    meta: {
                        title: 'AED'
                    }
                },
                {
                    path: 'service',
                    component: pcServiceService,
                    meta: {
                        title: '通信营业厅'
                    }
                }, {
                    path: 'park',
                    component: pcServicePark,
                    meta: {
                        title: '停车场'
                    }
                },
                {
                    path: 'alleyway',
                    component: pcServiceAlleyway,
                    meta: {
                        title: '出入口'
                    }
                }
                ]
            },
            {
                path: 'allquery',
                component: pcAllquery,
                meta: {
                    title: '综合查询'
                }
            },
            {
                path: 'campusnav',
                component: pcCampusnav,
                meta: {
                    title: '校区导览'
                }
            },
            {
                path: 'campusnavi',
                component: pcCampusnavi,
                meta: {
                    title: '校区导航'
                }
            },
            {
                path: 'specialmap',
                component: pcSpecialmap,
                meta: {
                    title: '专题地图'
                },
                children: [{
                    path: 'celebrate',
                    component: pcSpecialmapCelebrate,
                    meta: {
                        title: '校区庆'
                    }
                },
                {
                    path: 'welcome',
                    component: pcSpecialmapWelcome,
                    meta: {
                        title: '校区迎新'
                    }
                }
                ]
            },
            {
                path: 'tool',
                component: pcTool,
                meta: {
                    title: '工具'
                },
                children: [{
                    path: 'download',
                    component: pcToolDownload,
                    meta: {
                        title: '地图下载'
                    }
                }, {
                    path: 'sign',
                    component: pcToolSign,
                    meta: {
                        title: '地图标记'
                    }
                },
                {
                    path: 'ranging',
                    component: pcToolRanging,
                    meta: {
                        title: '地图测距'
                    }
                },
                {
                    path: 'area',
                    component: pcToolArea,
                    meta: {
                        title: '地图测面'
                    }
                },
                {
                    path: 'layer-manage',
                    component: pcToolLayerManage,
                    meta: {
                        title: '图层管理'
                    }
                }
                ]
            },
            {
                path: 'technique',
                component: pcTechnique,
                meta: {
                    title: '创新'
                },
                children: [{
                    path: 'map',
                    component: pcTechniqueMapData,
                    meta: {
                        title: '地图数据加载'
                    }
                }, {
                    path: 'video',
                    component: pcTechniqueVideo,
                    meta: {
                        title: '视频融合'
                    }
                },
                {
                    path: 'data',
                    component: pcTechniqueData,
                    meta: {
                        title: '数据动画和特效'
                    }
                },
                {
                    path: 'turf',
                    component: pcTechniqueTurf,
                    meta: {
                        title: 'turf计算'
                    }
                },
                {
                    path: 'space',
                    component: pcTechniqueSpace,
                    meta: {
                        title: '三维空间分析'
                    }
                },
                {
                    path: 'graph',
                    component: pcTechniqueGraph,
                    meta: {
                        title: '第三方图形库的集成'
                    }
                },
                {
                    path: 'path',
                    component: pcTechniquePath,
                    meta: {
                        title: '路径漫游和定点巡航'
                    }
                }
                ]
            }
 
            ]
        }]
    },
    // 手机端
    {
        path: '/mobileLayout',
        redirect: '/mobileLayout/default',
        meta: {
            title: '导航菜单'
        },
        component: resolve => require(['../../mobileLayout/index.vue'], resolve),
        children: [{
            path: 'default',
            component: resolve => require(['../../mobileviews/home/index.vue'], resolve),
            meta: {
                title: '系统首页'
            }
        }]
    },
    {
        path: '/403',
        component: () =>
            import(/* webpackChunkName: "page" */ '@/components/error-page/403'),
        name: '403',
        meta: {
            title: '403页面'
        }
    },
    {
        path: '/404',
        component: () =>
            import(/* webpackChunkName: "page" */ '@/components/error-page/404'),
        name: '404',
        meta: {
            title: '404页面'
        }
 
    },
    {
        path: '/500',
        component: () =>
            import(/* webpackChunkName: "page" */ '@/components/error-page/500'),
        name: '500',
        meta: {
            title: '500页面'
        }
    },
    {
        path: '*',
        redirect: '/404'
    }
 
]
 
const router = new VueRouter({
    base: process.env.BASE_URL,
    routes
})
 
export default router