zhanghua
2022-10-31 feebf68645a0c91e07c7eadeb04ae970001f1fc1
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
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: "/",
    name: 'index',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/layout'),
    meta: {
      needLogin: true,
    },
    children: [
      {
        path: 'system',
        name: 'system',
        component: () => import('@/views/systemSetting'),
        children: [
          {
            path: 'userSetting',
            name: 'userSetting',
            component: () => import('@/views/systemSetting/baseSetting'),
            children: [
              {
                path: "user",
                name: "user",
                component: () => import('@/views/systemSetting/baseSetting/user')
              },
              {
                path: 'role',
                name: 'role',
                component: () => import('@/views/systemSetting/baseSetting/role')
              },
              {
                path: 'department',
                name: 'department',
                component: () => import('@/views/systemSetting/baseSetting/department')
              },
 
            ]
          },
          {
            path: 'platform',
            name: 'platform',
            component: () => import('@/views/systemSetting/platform'),
            children: [
              {
                path: 'portalSetting',
                name: 'portalSetting',
                component: () => import('@/views/systemSetting/platform/portalSetting')
              },
              {
                path: 'otherInterface',
                name: 'otherInterface',
                component: () => import('@/views/systemSetting/platform/otherInterface')
              },
              {
                path: 'mySetting',
                name: 'mySetting',
                component: () => import('@/views/systemSetting/platform/mySetting')
              }
            ]
          },
          {
            path: 'device',
            name: 'device',
            component: () => import('@/views/systemSetting/device'),
            children: [
              {
                path: 'bayonet',
                name: 'bayonet',
                component: () => import('@/views/systemSetting/device/bayonet')
              },
              {
                path: 'grid',
                name: 'grid',
                component: () => import('@/views/systemSetting/device/grid'),
              },
              {
                path: 'point',
                name: 'point',
                component: () => import('@/views/systemSetting/device/point'),
              },
              {
                path: 'handheldTerminal',
                name: 'handheldTerminal',
                component: () => import('@/views/systemSetting/device/handheldTerminal'),
              }
              ,
              {
                path: 'loudspeaker',
                name: 'loudspeaker',
                component: () => import('@/views/systemSetting/device/loudspeaker'),
              }
            ]
          }
        ]
      },
      {
        path: "operate",
        name: 'operate',
        component: () => import('@/views/operate'),
        children: [
          {
            path: 'baseSetting',
            name: 'baseSetting',
            component: () => import('@/views/operate/baseSetting'),
            children: [
              {
                path: "violation",
                name: 'violation',
                component: () => import('@/views/operate/baseSetting/violation'),
              },
              {
                path: "illegalBuild",
                name: 'illegalBuild',
                component: () => import('@/views/operate/baseSetting/illegalBuild'),
              },
            ]
          },
          {
            path: 'casepool',
            name: 'casepool',
            component: () => import('@/views/operate/disposal'),
            children: [
              {
                path: 'pool',
                name: 'pool',
                component: () => import('@/views/operate/disposal/casepool/pool'),
              },
              {
                path: 'escalation',
                name: 'escalation',
                component: () => import('@/views/operate/disposal/casepool/escalation'),
              },
              {
                path: 'dispatch',
                name: 'dispatch',
                component: () => import('@/views/operate/disposal/casepool/dispatch'),
              },
              {
                path: 'notDeal',
                name: 'notDeal',
                component: () => import('@/views/operate/disposal/casepool/notDeal'),
              },
              {
                path: 'learn',
                name: 'learn',
                component: () => import('@/views/operate/disposal/casepool/learn'),
              },
            ]
          },
          {
            path: "fivepack",
            name: 'fivepack',
            component: () => import('@/views/operate/fivepack'),
            children: [
              {
                path: "shop",
                name: 'shop',
                component: () => import('@/views/operate/fivepack/shop'),
              },
              {
                path: "threepackage",
                name: 'threepackage',
                component: () => import('@/views/operate/fivepack/threepack'),
              }
            ]
          },
          {
            path: 'myWait',
            name: 'myWait',
            component: () => import('@/views/operate/myWait'),
          },
          {
            path: 'rectification',
            name: 'rectification',
            component: () => import('@/views/operate/rectification'),
            children: [
              {
                path: "taskList",
                name: 'taskList',
                component: () => import('@/views/operate/rectification/taskList'),
              },
              {
                path: "surveyList",
                name: 'surveyList',
                component: () => import('@/views/operate/rectification/surveyList'),
              },
              {
                path: "renovationList",
                name: 'renovationList',
                component: () => import('@/views/operate/rectification/renovationList'),
              }
            ]
          },
          {
            path: 'lawEnforcement',
            name: 'lawEnforcement',
            component: () => import('@/views/operate/lawEnforcement')
          },
          {
            path: 'management',
            name: 'management',
            component: () => import('@/views/operate/management'),
            redirect: '/home/operate/management/myIndex',
            children: [
              {
                path: 'myIndex',
                name: 'myIndex',
                component: () => import('@/views/operate/management/myIndex'),
              },
              {
                path: 'managementMessage',
                name: 'managementMessage',
                component: () => import('@/views/operate/management/message'),
              },
            ]
          },
          {
            path: 'car',
            name: 'car',
            component: () => import('@/views/operate/car'),
            children: [
              {
                path: 'carIndex',
                name: 'carIndex',
                component: () => import('@/views/operate/car/myIndex'),
              },
              {
                path: 'lawTrajectory',
                name: 'lawTrajectory',
                component: () => import('@/views/operate/car/lawCar'),
              },
              {
                path: 'soilTrajectory',
                name: 'soilTrajectory',
                component: () => import('@/views/operate/car/soilCar'),
              }
            ]
          },
          {
            path: 'message',
            name: 'message',
            component: () => import('@/views/operate/message'),
            children: [
              {
                path: 'messageIndex',
                name: 'messageIndex',
                component: () => import('@/views/operate/message/myIndex'),
              },
              {
                path: 'mycontrol',
                name: 'mycontrol',
                component: () => import('@/views/operate/message/mycontrol'),
              },
            ]
          },
          {
            path: 'log',
            name: 'log',
            component: () => import('@/views/operate/log'),
          }
        ]
      },
      {
        path: "video",
        name: 'video',
        component: () => import('@/views/video')
      },
      {
        path: "lampblack",
        name: 'lampblack',
        component: () => import('@/views/lampblack')
      },
      {
        path: "law",
        name: 'law',
        component: () => import('@/views/law')
      },
      {
        path: "intellect",
        name: 'intellect',
        component: () => import('@/views/intellect')
      },
      {
        path: "info",
        name: 'info',
        component: () => import('@/views/info')
      },
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login')
  },
  {
    path: '/screen',
    name: 'screen',
    component: () => import('@/views/screen')
  },
  {
    path: '/404',
    name: "404",
    component: () => import('@/views/info/NotFound'),
  },
  {
    path: '/fail',
    name: "/fail",
    component: () => import('@/views/info/Fail'),
  },
  {
    path: '/success',
    name: "/success",
    component: () => import('@/views/info/Success'),
  },
  { path: '*', redirect: '/404' }
]
 
const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})
const originalPush = router.push
router.push = function push(location) {
  return originalPush.call(this, location).catch(err => err);
}
export default router