审查视图

src/routes.js 32.3 KB
朱兆平 authored
1
import Login from './views/Login1.vue'
朱兆平 authored
2 3
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
朱兆平 authored
4
import HomeNew from './views/HomeNew.vue'
王勇 authored
5
import Main from './views/dashboard/index'
6 7
// import Table from './views/nav1/Table.vue'
import Role from './views/nav1/role.vue'
8
import CRM from './views/nav1/crm.vue'
9
import Perm from './views/nav1/perm.vue'
朱兆平 authored
10
import DataPerm from './views/nav1/DataPerm.vue'
11
import LOG from './views/nav1/Log.vue'
朱兆平 authored
12
import PreManifest from './views/agent/PreManifest.vue'
shenhailong authored
13 14
import Company from './views/nav1/company.vue'
import Department from './views/nav1/department.vue'
15
import Group from './views/nav1/groupcompany.vue'
朱兆平 authored
16 17
import Process from './views/hqpt/Process.vue'
import Job from './views/hqpt/Job.vue'
18
// import Form from './views/nav1/Form.vue'
19
20
21
import OrgManifest from './views/nmms/orgManifest.vue'
22 23 24 25 26 27 28 29
import ExitFlight from './views/nmms/ExitFlight.vue'
import ExitPre from './views/nmms/ExitPre.vue'
import ExitTidy from './views/nmms/ExitTidy.vue'
import ExitArrive from './views/nmms/ExitArrive.vue'
import ExitManifest from './views/nmms/ExitManifest.vue'
import ExitLoading from './views/nmms/ExitLoading.vue'
import ExitFlightDesc from './views/nmms/ExitFlightDesc.vue'
import LostLoad from './views/lostLoadChange/lostLoading.vue'
zhangFan authored
30
import LostLoadChange from './views/lostLoadChange/lostLoadChange.vue'
31 32
import OrigFlightList from './views/nmms_import/OrigFlightList.vue'
import EnterFlightInfo from './views/nmms_import/EnterFlightInfo.vue'
小范 authored
33
import Cross from './views/nmms_import/Cross.vue'
34 35 36 37
import OrigMaster from './views/nmms_import/OrigMaster.vue'
import EnterTally from './views/nmms_import/EnterFlightTally.vue'
import TallyMster from './views/nmms_import/TallyMster.vue'
import Waybill from './views/nmms_import/Waybill.vue'
38 39
import WaybillQuery from './views/nmms_import/WaybillQuery.vue'
40 41 42
import AllocateSearch from './views/nmms_import/AllocateSearch.vue'
import Importallocation from './views/nmms_import/Importallocation.vue'
import Allocatearrive from './views/nmms_import/Allocatearrive.vue'
43
import User from './views/nav1/user.vue'
44 45 46 47 48 49 50 51
import preConfiguration from './views/nav2/preConfiguration.vue'
import allocate from './views/nav2/allocate.vue'
import charge from './views/nav2/charge.vue'
import documents from './views/nav2/documents.vue'
import booking from './views/nav4/booking.vue'
import order from './views/nav4/order.vue'
import airlift from './views/nav4/airlift.vue'
import inquiry from './views/nav4/inquiry.vue'
小范 authored
52 53
import Page6 from './views/nav3/Page6.vue'
import Page7 from './views/nav3/Page7.vue'
朱兆平 authored
54 55 56
import importFFMMsg from './views/airRadioMsg/importFFMMsg.vue'
import importFHLMsg from './views/airRadioMsg/importFHLMsg.vue'
import importFWBMsg from './views/airRadioMsg/importFWBMsg.vue'
xudada authored
57
import statis from './views/nmms_import/statistics'
小范 authored
58 59 60 61 62 63 64 65 66 67 68
//进港快件
import DataImport from './views/nmms_fast/DataImport.vue'
import OrigFlightLists from './views/nmms_fast/OrigFlightLists.vue'
import Waybills from './views/nmms_fast/Waybills.vue'
import EnterFlightInfos from './views/nmms_fast/EnterFlightInfos.vue'
import OrigMasters from './views/nmms_fast/OrigMasters.vue'
import EnterTallys from './views/nmms_fast/EnterTallys.vue'
import TallyMsters from './views/nmms_fast/TallyMsters.vue'
import WaybillQuerys from './views/nmms_fast/WaybillQuerys.vue'

69 70 71


朱兆平 authored
72
import echarts from './views/charts/echarts.vue'
小范 authored
73 74
import earthCharts from './views/charts/earthCharts.vue'
75 76 77
import SecrityInspection from './views/staff/security_inspection.vue'
import Key from './views/staff/key.vue'
import Maintain from './views/staff/maintain.vue'
78 79
import ComeCar from './views/staff/come_car.vue'
import OnDuty from './views/staff/on_duty.vue'
shenhailong authored
80
import WaterStationsPatrol from './views/water/water_stations_patrol.vue'
朱兆平 authored
81
import Location from './views/empt/Location.vue'
朱兆平 authored
82
83 84
//运输工具 通用业务申报
import Route from './views/airtransport/route.vue'
85
import Bills from './views/airtransport/bills.vue'
86 87 88 89 90 91 92 93 94 95 96
import Flight from './views/airtransport/flight.vue'
import Flightplan from './views/airtransport/flightplan.vue'
import Aircraft from './views/airtransport/aircraft.vue'
import Routeaircraft from './views/airtransport/routeaircraft'

//通用业务查询
import queryRoute from './views/airtransport/queryRoute.vue'
import queryBill from './views/airtransport/queryBill.vue'
import queryFlight from './views/airtransport/queryFlight.vue'
import queryFlightplan from './views/airtransport/queryFlightplan.vue'
import queryAircraft from './views/airtransport/queryAircraft.vue'
小范 authored
97 98 99 100
import queryRouteaircraft from './views/airtransport/queryRouteaircraft.vue'
import arrival from './views/airtransport/arrival.vue'
import confirmatory from './views/airtransport/confirmatory.vue'
import queryArrival from './views/airtransport/queryArrival.vue'
小范 authored
101 102
import conForConfigure from './views/airtransport/conForConfigure.vue'
import queryForConfigure from './views/airtransport/queryForConfigure.vue'
小范 authored
103 104 105
import queryConfirmatory from './views/airtransport/queryConfirmatory.vue'
import configure from './views/airtransport/configure.vue'
import queryConfigure from './views/airtransport/queryConfigure.vue'
106
import transit from './views/transit/transit.vue'
107
import transitCharts from './views/transit/transitCharts.vue'
小范 authored
108
import technological from './views/technological/technological.vue'
小范 authored
109
import example from './views/technological/example.vue'
小范 authored
110
import task from './views/technological/task.vue'
111
import myTask from './views/technological/myTask.vue'
112 113
import definition from './views/technological/definition.vue'
114
//仓库场站管理
xudada authored
115
import WaybillRate from './views/deploy/waybillRate.vue'
xudada authored
116
import Tracker from './views/deploy/Tracker.vue'
xudada authored
117
import VehicleWaybill from './views/deploy/VehicleWaybill.vue'
小范 authored
118
import vehicle from './views/deploy/vehicle.vue'
119
import trajectory from './views/deploy/trajectory.vue'
120 121
import attendance from './views/deploy/attendance.vue'
import conveyance from './views/deploy/conveyance.vue'
122
import station from './views/deploy/station.vue'
123 124
import house from './views/deploy/house.vue'
import inventroyrecord from './views/deploy/inventroyrecord.vue'
125
import houseRecord from './views/deploy/houseRecord.vue'
126 127 128
import locations from './views/deploy/locations.vue'
import inventroy from './views/deploy/inventroy.vue'
import area from './views/deploy/area.vue'
129 130 131
import seller from './views/deploy/seller.vue'
import classification from './views/deploy/classification.vue'
import subscribe from './views/deploy/subscribe.vue'
132 133
import DangerousImport from './views/deploy/dangerImport.vue'
import DangerousExt from './views/deploy/dangerExt.vue'
朱兆平 authored
134
import UNcode from './views/wms/UNcode.vue'
135
朱兆平 authored
136 137 138
//跨境电商
import exportRecipt  from "@/views/cbecd/export_recipt.vue";
139 140

141 142 143 144
//账单管理
import discount from './views/charging/discount.vue'
import goods from './views/charging/goods.vue'
import check from './views/charging/check.vue'
145 146
import sort from './views/charging/sort.vue'
import work from './views/charging/work.vue'
147 148 149 150
//配置管理
import receive from './views/configuration/receive.vue'
import sending from './views/configuration/sending.vue'
import mq from './views/configuration/mq.vue'
151 152 153
//卡口辅助系统同步配置管理
import kakoHeartBeat from './views/configuration/kakoHearBeat.vue'
154
//大数据管理
小范 authored
155
// import management from './views/managements/management.vue'
小范 authored
156
小范 authored
157 158 159 160 161 162
import departure from './views/airtransport/departure.vue'
import declare from './views/airtransport/declare.vue'
import queryDeparture from './views/airtransport/queryDeparture.vue'
import queryDeclare from './views/airtransport/queryDeclare.vue'
import outConfigure from './views/airtransport/outConfigure.vue'
import queryFlightConfigure from './views/airtransport/queryFlightConfigure.vue'
163 164
import Consigner from './views/consigner/consigner.vue'
import Consignee from './views/consigner/consignee.vue'
165 166
// 货主信息管理
import Shipper from './views/shipper/shipper.vue'
167
import Security from './views/security/security.vue'
小范 authored
168
import dynamics from './views/airtransport/dynamics.vue'
小范 authored
169 170 171
import matter from './views/airtransport/matter.vue'
//国际转运
import transfer from './views/airtransport/transfer.vue'
172
// import transpour from './views/airtransport/transpour.vue'
小范 authored
173 174
//对话框
import dialogs from './views/dialogBox/dialogs.vue'
小范 authored
175 176
import upload from './views/dialogBox/upload.vue'
小范 authored
177
178 179 180 181 182
// 场站管理
import Yard from './views/station_manage/Yard.vue'
import Bayonet from './views/station_manage/Bayonet.vue'
import Warehouse from './views/station_manage/Warehouse.vue'
183 184
// 快邮舱单申报
import Express from './views/express_system/express.vue'
小范 authored
185 186
//给海龙做的货运单
import Way from './views/nav3/Way.vue'
小范 authored
187
import Telegram from './views/nav3/Telegram.vue'
xudada authored
188
import TeleAddr from "./views/nav3/TeleAddr.vue";
小范 authored
189 190
//朱总让做的网页在线客服
import Webdialog from './views/bus/Webdialog.vue'
191
import C6Way from './views/nav3/C6Way.vue'
小范 authored
192
小范 authored
193
//转运申请
小范 authored
194
import Transport from './views/nav4/Transport.vue'
195
196 197 198 199 200
/* 车辆调度系统 */
import DriverInfo from "./views/dispatch/DriverInfo";
import VehicleInfo from "./views/dispatch/VehicleInfo";
import DispatchNode from "./views/dispatch/DispatchNode";
import Dispatch from "./views/dispatch/Dispatch";
小范 authored
201
import multiple from "./views/deploy/multiple";
小范 authored
202
import satellite from "./views/deploy/satellite";
203
204 205
/*出口订单*/
import ExortOrder from './views/exportorder/Exportorder.vue'
xudada authored
206
import CustomerConfig from './views/exportorder/CustomerConfig.vue'
xudada authored
207
import ManagerWaybill from "./views/exportorder/ManagerWaybill.vue";
208
xudada authored
209 210 211
/*制单管理*/
import ZhiDan from './views/zhidan/zhidan.vue'
import Rate from './views/zhidan/rate.vue'
212
朱兆平 authored
213 214 215
// 邮件风控
import MailRisk from './views/mail_risk/index.vue'
朱兆平 authored
216 217 218 219
let routes = [
    {
        path: '/login',
        component: Login,
220
        name: '登录',
朱兆平 authored
221 222 223 224 225
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
226
        name: '错误',
朱兆平 authored
227 228 229 230
        hidden: true
    },
    {
        path: '/',
朱兆平 authored
231
        component: HomeNew,
232
        name: '主页',
233 234
        leaf: true,
        iconCls: 'el-icon-menu',
朱兆平 authored
235
        children: [
236
            {path: '/main', component: Main, name: '首页'},
237 238
        ]
    },
朱兆平 authored
239
    {
240 241 242 243 244
        path: '/order',
        component: HomeNew,
        name: '出口订单管理',
        iconCls: 'el-icon-collection',
        children: [
xudada authored
245
            {path: '/ExortOrder', component: ExortOrder, name: '出口订单'},
xudada authored
246 247
            {path: '/CustomerConfig', component: CustomerConfig, name: '客户配置'},
            {path: '/ManagerWaybill', component: ManagerWaybill, name: '主单管理'}
248 249 250
        ]
    },
    {
xudada authored
251 252 253 254 255 256 257 258 259 260
        path: '/zhidan',
        component: HomeNew,
        name: '制单管理',
        iconCls: 'el-icon-collection',
        children: [
            {path: '/ZhiDan', component: ZhiDan, name: '制单信息'},
            {path: '/Rate', component: Rate, name: '费率设置'}
        ]
    },
    {
朱兆平 authored
261
        path: '/',
朱兆平 authored
262
        component: HomeNew,
朱兆平 authored
263 264 265 266 267 268 269 270 271 272
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            {path: '/echarts', component: echarts, name: 'echarts'},
            {path: '/earthCharts', component: earthCharts, name: '统计表'}
        ]
    },
    { path: '/test', component: Main },
    {
        path: '/bill',
小范 authored
273
        component: HomeNew,
朱兆平 authored
274 275 276 277
        name: '货运单',
        iconCls: 'el-icon-collection',
        children: [
            {path: '/Way', component: Way, name: '货运单'},
小范 authored
278
            {path: '/Telegram', component: Telegram, name: '电报查询'},
xudada authored
279
            {path: '/Webdialog', component: Webdialog, name: '在线客服'},
280 281
            {path: '/TeleAddr', component: TeleAddr, name: '电报地址'},
            {path: '/C6Way', component: C6Way, name: 'C6货运单'},
朱兆平 authored
282 283
        ]
    },
小范 authored
284 285
    {
        path: '/',
286
        component: HomeNew,
小范 authored
287 288 289 290 291 292 293
        name: '海关货物流转',
        iconCls: 'el-icon-delete-location',
        children: [
            { path: '/Page6', component: Page6, name: '申请列表' },
            { path: '/Page7', component: Page7, name: '申请添加' },
        ]
    },
小范 authored
294 295 296 297 298 299 300 301 302 303 304
    {
        path: '/',
        component: HomeNew,
        name: '车辆调度管理',
        iconCls: 'el-icon-delete-location',
        children: [
            { path: '/Dispatch', component: Dispatch, name: '车辆调度' },
            { path: '/DriverInfo', component: DriverInfo, name: '驾驶员信息' },
            { path: '/VehicleInfo', component: VehicleInfo, name: '车辆信息' },
        ]
    },
305
小范 authored
306 307
    {
        path: '/domdep',
308
        component: HomeNew,
小范 authored
309 310 311 312 313 314
        name: '订舱系统',
        iconCls: 'el-icon-delete-location',
        children: [
            { path: '/booking', component: booking, name: '在线订舱' },
            { path: '/order', component: order, name: '订舱信息' },
            { path: '/airlift', component: airlift, name: '空运专线' },
小范 authored
315 316
        ]
    },
小范 authored
317 318 319
    {
        path: '/dialogName',
        component: HomeNew,
小范 authored
320
        name: '物流GPT',
小范 authored
321 322 323
        iconCls: 'el-icon-delete-location',
        children: [
            { path: '/dialogs', component: dialogs, name: '对话框' },
小范 authored
324
            { path: '/upload', component: upload, name: '上传文件' },
小范 authored
325 326
        ]
    },
小范 authored
327 328 329


330
    // 货运系统--航班预配
小范 authored
331 332
    {
        path: '/domdep',
333
        component: HomeNew,
小范 authored
334 335 336 337 338 339
        name: '国内出港',
        iconCls: 'el-icon-position',
        children: [
            { path: '/preConfiguration', component: preConfiguration, name: '航班预配' },
            { path: '/allocate', component: allocate, name: '航班配载' },
            { path: '/documents', component: documents, name: '航班文件' },
340
            { path: '/charge', component: charge, name: '付费处理' }
小范 authored
341 342
        ]
    },
小范 authored
343 344
    {
        path: '/admin',
朱兆平 authored
345
        component: HomeNew,
小范 authored
346 347
        name: '系统设置',
        iconCls: 'el-icon-setting',//图标样式class
朱兆平 authored
348
        leaf: false,
小范 authored
349 350 351
        children: [
            { path: '/user', component: User, name: '用户管理' },
            { path: '/role', component: Role, name: '组织机构' },
朱兆平 authored
352
            { path: '/crm', component: CRM, name: '客户资源' },
小范 authored
353
            { path: '/perm', component: Perm, name: '权限管理' },
朱兆平 authored
354
            { path: '/dataperm', component: DataPerm, name: '数据权限' },
小范 authored
355 356 357 358 359 360
            { path: '/log', component: LOG, name: '系统日志' },
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/company', component: Company, name: '公司管理'},
            { path: '/group', component: Group, name: '集团管理'}
        ]
    },
朱兆平 authored
361 362
    {
        path: '/guestService',
363
        component: HomeNew,
朱兆平 authored
364 365 366 367 368 369
        name: '客服系统',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/process', component: Process, name: '工单管理' },
            { path: '/job', component: Job, name: '任务管理' },
            {path: '/pre1', component: PreManifest, name: '预配'},
370
            {path:'/mytask',component:myTask,name:'我的任务'},
朱兆平 authored
371 372
        ]
    },
373 374
    {
        path: '/output',
375
        component: HomeNew,
376
        name: '国际出港业务申报',
377 378
        iconCls: 'el-icon-collection',
        children: [
朱兆平 authored
379 380
            {path: '/flight', component: ExitFlight, name: '出港航班申报'},
            {path: '/manifest', component: ExitManifest, name: '出港运单申报'},
381
            {path: '/pre', component: ExitPre, name: '国际出港预配舱单'},
朱兆平 authored
382 383 384 385
            {path: '/arrive', component: ExitArrive, name: '出港运抵'},
            {path: '/loadingView', component: ExitFlightDesc, name: '出港航班信息'},
            {path: '/loading', component: ExitLoading, name: '出港装载'},
            {path: '/tidy', component: ExitTidy, name: '出港理货'}
386 387 388
        ]
    },
    {
朱兆平 authored
389
        path: '/radioMsgImport',
390
        component: HomeNew,
朱兆平 authored
391 392 393 394 395 396 397 398 399
        name: '航空报文导入',
        iconCls:'el-icon-goods',
        children:[
            {path:'/ffmRadioMsgImport',component:importFFMMsg,name:'FFM报文导入'},
            {path:'/fhlRadioMsgImport',component:importFHLMsg,name:'FHL报文导入'},
            {path:'/fwbRadioMsgImport',component:importFWBMsg,name:'FWB报文导入'}
        ]
    },
    {
400
        path: '/sec',
401
        component: HomeNew,
402
        name: '国际安检清单申报管理',
403 404
        iconCls: 'el-icon-collection',
        children: [
405
            {path: '/security', component: Security, name: '国际安检清单申报'}
406 407
        ]
    },
408
409
    {
410
        path: '/output',
411
        component: HomeNew,
412 413
        name: '国内出港业务申报',
        iconCls: 'el-icon-collection',
414
        children: [
朱兆平 authored
415 416
            {path: '/flight', component: ExitFlight, name: '出港航班申报'},
            {path: '/manifest', component: ExitManifest, name: '出港运单申报'},
417
            {path: '/pre', component: ExitPre, name: '国内出港预配舱单'},
朱兆平 authored
418 419 420 421
            {path: '/arrive', component: ExitArrive, name: '出港运抵'},
            {path: '/loadingView', component: ExitFlightDesc, name: '出港航班信息'},
            {path: '/loading', component: ExitLoading, name: '出港装载'},
            {path: '/tidy', component: ExitTidy, name: '出港理货'}
422 423
        ]
    },
424
    {
shenhailong authored
425
        path: '/output',
shenhailong authored
426
        component: HomeNew,
shenhailong authored
427 428 429
        name: '国内进港业务申报',
        iconCls: 'el-icon-collection',
        children: [
朱兆平 authored
430 431
            {path: '/flight', component: ExitFlight, name: '出港航班申报'},
            {path: '/manifest', component: ExitManifest, name: '出港运单申报'},
shenhailong authored
432
            {path: '/pre', component: ExitPre, name: '国内进港预配舱单'},
朱兆平 authored
433 434 435 436
            {path: '/arrive', component: ExitArrive, name: '出港运抵'},
            {path: '/loadingView', component: ExitFlightDesc, name: '出港航班信息'},
            {path: '/loading', component: ExitLoading, name: '出港装载'},
            {path: '/tidy', component: ExitTidy, name: '出港理货'}
shenhailong authored
437 438 439
        ]
    },
    {
小范 authored
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456
        path: '/nmms2',
        component: HomeNew,
        name: '进港快件',
        iconCls: 'el-icon-collection',
        children: [
            {path:'/dataimport',component:DataImport,name:'数据导入'},
            { path: '/origs', component: OrigFlightLists, name: '进港航班申报' },
            {path:'/waybills',component:Waybills,name:'进港运单申报'},
            { path: '/enters', component: EnterFlightInfos, name: '原始舱单'},
            { path:'/origmasters',component:OrigMasters,name:'进港原始舱单'},
            {path:'/entertalls',component:EnterTallys,name:'进港理货'},
            {path:'/tallymasters',component:TallyMsters,name:'进港理货舱单'},
            {path:'/waybillQuerys',component:WaybillQuerys,name:'进港运单查询'},

        ]
    },
    {
457
        path: '/sec',
458
        component: HomeNew,
459 460
        name: '国内安检清单申报管理',
        iconCls: 'el-icon-collection',
461
        children: [
462
            {path: '/security', component: Security, name: '国内安检清单申报'}
463 464
        ]
    },
465
466
朱兆平 authored
467 468
    {
        path: '/nmms2',
469
        component: HomeNew,
朱兆平 authored
470 471 472 473 474
        name: '进港业务申报',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/orig', component: OrigFlightList, name: '进港航班申报' },
            {path:'/waybill',component:Waybill,name:'进港运单申报'},
475
            {path:'/waybillQuery',component:WaybillQuery,name:'进港运单查询'},
朱兆平 authored
476 477
            {path:'/allocateSearch',component:AllocateSearch,name:'运单分拨申报'},
            { path: '/enter', component: EnterFlightInfo, name: '原始舱单'},
小范 authored
478
            { path: '/cross', component: Cross, name: '进港原始跨天配置'},
朱兆平 authored
479 480 481 482 483
            { path:'/origmaster',component:OrigMaster,name:'进港原始舱单'},
            {path:'/entertall',component:EnterTally,name:'进港理货'},
            {path:'/tallymaster',component:TallyMster,name:'进港理货舱单'},
            {path:'/importallocation',component:Importallocation,name:'进港分拨'},
            {path:'/allocatearrive',component:Allocatearrive,name:'分拨运抵'},
xudada authored
484
            {path:'/statis',component:statis,name:'进港舱单统计'}
朱兆平 authored
485 486
        ]
    },
487
    // 货运系统--航班预配
朱兆平 authored
488 489
    {
        path: '/flight_scheduling',
490
        component: HomeNew,
朱兆平 authored
491 492 493 494 495 496 497 498
        name: '航班计划',
        iconCls: 'el-icon-delete-location',
        children: [
            { path: '/inquiry', component: inquiry, name: '航班计划查询' },
        ]
    },
    {
        path: '/lost',
499
        component: HomeNew,
朱兆平 authored
500 501 502 503
        name: '落装改配申报',
        iconCls:'el-icon-goods',
        children:[
            {path:'/lostLoad',component:LostLoad,name:'落装业务申报'},
小范 authored
504
            {path:'/lostLoadChange',component:LostLoadChange,name:'改配业务申报'},
朱兆平 authored
505 506
        ]
    },
小范 authored
507
    {
小范 authored
508
        path: '/airtransport',
509
        component: HomeNew,
小范 authored
510
        name: '通用业务申报',
511 512
        iconCls:'el-icon-goods',
        children:[
小范 authored
513
            {path:'/route',component:Route,name:'航线申报'},
514
            {path:'/bills',component:Bills,name:'单据申报'},
小范 authored
515 516 517 518
            {path:'/flights',component:Flight,name:'航班申报'},
            {path:'/flightplan',component:Flightplan,name:'当日飞行计划'},
            {path:'/aircraft',component:Aircraft,name:'通用航空器申报'},
            {path:'/routeaircraft',component:Routeaircraft,name:'航线航空器申报'},
小范 authored
519 520
            {path:'/queryForConfigure',component:queryForConfigure,name:'预报申报配置'},
            {path:'/conryForConfigure',component:conForConfigure,name:'确报申报配置'},
小范 authored
521 522 523 524
        ]
    },
    {
        path: '/querytransport',
525
        component: HomeNew,
小范 authored
526 527 528 529 530 531 532 533 534 535 536 537 538
        name: '通用业务查询',
        iconCls:'el-icon-goods',
        children:[
            {path:'/queryRoute',component:queryRoute,name:'航线查询'},
            {path:'/queryBill',component:queryBill,name:'单据查询'},
            {path:'/queryFlights',component:queryFlight,name:'航班查询'},
            {path:'/queryFlightplan',component:queryFlightplan,name:'当日飞行计划查询'},
            {path:'/queryAircraft',component:queryAircraft,name:'通用航空器查询'},
            {path:'/queryRouteaircraft',component:queryRouteaircraft,name:'航线航空器查询'},
        ]
    },
    {
        path: '/input',
539
        component: HomeNew,
小范 authored
540 541 542 543 544 545 546 547 548
        name: '进港航班申报',
        iconCls:'el-icon-goods',
        children:[
            {path:'/arrival',component:arrival,name:'进港预报申报'},
            {path:'/confirmatory',component:confirmatory,name:'进港确报申报'},
            {path:'/queryArrival',component:queryArrival,name:'进港预报查询'},
            {path:'/queryConfirmatory',component:queryConfirmatory,name:'进港确报查询'},
            {path:'/configure',component:configure,name:'进港航班配置'},
            {path:'/queryConfigure',component:queryConfigure,name:'航班配置查询'},
小范 authored
549 550 551


552 553
        ]
    },
朱兆平 authored
554 555
    {
        path: '/con',
shenhailong authored
556
        component: HomeNew,
朱兆平 authored
557 558 559 560 561 562 563 564 565
        name: '收发货人管理',
        iconCls:'el-icon-goods',
        children:[
            {path:'/consigner',component:Consigner,name:'发货人管理'},
            {path:'/consignee',component:Consignee,name:'收货人管理'},
            {path:'/transport',component:Transport,name:'转运申请'},

        ]
    },
小范 authored
566
    {
shenhailong authored
567 568
        path: '/cargo_shipper',
        component: HomeNew,
569
        name: '货主信息管理',
shenhailong authored
570
        iconCls:'el-icon-goods',
571
        children:[
shenhailong authored
572
            {path: '/shipper',component: Shipper,name: '货主信息管理'}
573 574 575
        ]
    },
    {
576
        path: '/',
577
        component: HomeNew,
578 579 580 581
        name: '转关运抵',
        iconCls: 'el-icon-delete-location',
        children: [
            {path:'/transit',component:transit,name:'转关运抵申报'},
582
            {path:'/transitCharts',component:transitCharts,name:'转关运抵统计'}
583 584 585
        ]
    },
    {
小范 authored
586 587 588 589 590 591
        path: '/workflow',
        component: HomeNew,
        name: '流程管理',
        iconCls: 'el-icon-goods',
        children: [
            {path:'/technological',component:technological,name:'部署管理'},
592
            {path:'/example',component:example,name:'工单管理'},
小范 authored
593
            {path:'/task',component:task,name:'任务管理'},
594
            {path:'/definition',component:definition,name:'流程定义管理'},
小范 authored
595
        ]
小范 authored
596
小范 authored
597 598
    },
    {
小范 authored
599
        path: '/out',
600
        component: HomeNew,
小范 authored
601 602 603 604 605 606 607 608 609
        name: '出港航班申报',
        iconCls:'el-icon-goods',
        children:[
            {path:'/departure',component:departure,name:'出港预报申报'},
            {path:'/declare',component:declare,name:'出港确报申报'},
            {path:'/queryDeparture',component:queryDeparture,name:'出港预报查询'},
            {path:'/queryDeclare',component:queryDeclare,name:'出港确报查询'},
            {path:'/outConfigure',component:outConfigure,name:'出港航班配置'},
            {path:'/queryFlightConfigure',component:queryFlightConfigure,name:'航班配置查询'},
小范 authored
610 611

小范 authored
612 613
        ]
    },
小范 authored
614
    {
615 616 617 618 619
        path: '/out',
        component: HomeNew,
        name: '仓库场站管理',
        iconCls:'el-icon-goods',
        children:[
xudada authored
620
            {path:'/WaybillRate',component:WaybillRate,name:'费率设置'},
xudada authored
621
            {path:'/Tracker',component:Tracker,name:'派单记录'},
xudada authored
622
            {path:'/VehicleWaybill',component:VehicleWaybill,name:'车载运单'},
小范 authored
623
            {path:'/vehicle',component:vehicle,name:'车辆定位'},
624
            {path:'/trajectory',component:trajectory,name:'车辆轨迹'},
625 626
            {path:'/attendance',component:attendance,name:'出勤历史'},
            {path:'/conveyance',component:conveyance,name:'出勤车辆'},
小范 authored
627
            {path:'/multiple',component:multiple,name:'多车定位'},
小范 authored
628
            {path:'/satellite',component:satellite,name:'GPS多车定位'},
629 630 631 632 633 634
            {path:'/station',component:station,name:'场站管理'},
            {path:'/house',component:house,name:'仓库管理'},
            {path:'/inventroyrecord',component:inventroyrecord,name:'库存变更记录'},
            {path:'/locations',component:locations,name:'库位管理'},
            {path:'/inventroy',component:inventroy,name:'库存管理'},
            {path:'/area',component:area,name:'库区管理'},
635
            {path:'/houserecord',component:houseRecord,name:'仓库入库'},
636 637 638
            {path:'/seller',component:seller,name:'商品管理'},
            {path:'/classification',component:classification,name:'分类监管申请'},
            {path:'/subscribe',component:subscribe,name:'分类监管查询'},
639 640
            {path:'/DangerousImport',component:DangerousImport,name:'危险品入库'},
            {path:'/DangerousExt',component:DangerousExt,name:'危险品出库'},
朱兆平 authored
641
            {path:'/unCode',component:UNcode,name:'国际危险品代码管理'},
642 643 644
        ]
    },
    {
645 646 647 648 649 650 651
        path: '/',
        component: HomeNew,
        name: '计费管理',
        iconCls: 'el-icon-delete-location',
        children: [
            {path:'/discount',component:discount,name:'折扣配置'},
            {path:'/goods',component:goods,name:'订单列表'},
652 653 654
            {path:'/check',component:check,name:'账单列表'},
            {path:'/sort',component:sort,name:'费用类别'},
            {path:'/work',component:work,name:'业务类型'},
655 656 657
        ]
    },
    {
658 659 660 661 662 663 664
        path: '/',
        component: HomeNew,
        name: '配置管理',
        iconCls: 'el-icon-delete-location',
        children: [
            {path:'/receive',component:receive,name:'接收配置管理'},
            {path:'/sending',component:sending,name:'发送配置管理'},
665
            {path:'/heartbeatTask',component:kakoHeartBeat,name:'卡口同步配置管理'},
666 667 668
            {path:'/mq',component:mq,name:'MQ配置管理'},
        ]
    },
小范 authored
669 670 671 672 673 674
    // {
    //     path: '/management',
    //     component: management,
    //     name: '大数据管理',
    //     iconCls: 'el-icon-delete-location'
    // },
675
    {
小范 authored
676
        path: '/at',
677
        component: HomeNew,
小范 authored
678 679 680 681
        name: '在港动态',
        iconCls:'el-icon-goods',
        children:[
            {path:'/dynamics',component:dynamics,name:'在港动态信息'},
小范 authored
682 683 684 685 686 687 688 689 690 691
            {path:'/matter',component:matter,name:'物料申报管理'}
        ]
    },
    {
        path: '/',
        component: HomeNew,
        name: '国际转运',
        iconCls:'el-icon-goods',
        children:[
            {path:'/transfer',component:transfer,name:'国际转运'},
692
            // {path:'/transpour',component:transpour,name:'转运导入'}
小范 authored
693
小范 authored
694 695
        ]
    },
朱兆平 authored
696 697
    {
        path: '/express-system',
698
        component: HomeNew,
朱兆平 authored
699 700 701 702 703 704
        name: '快邮舱单申报',
        iconCls:'el-icon-wind-power',
        children:[
            {path:'/express',component:Express,name:'快邮舱单申报'},
        ]
    },
朱兆平 authored
705
    {
朱兆平 authored
706 707 708 709 710 711 712 713 714
        path: '/customs_mail',
        component: HomeNew,
        name: '邮件监管',
        iconCls:'el-icon-wind-power',
        children:[
            {path:'/mail_risk_analysis',component:MailRisk,name:'风控分析'},
        ]
    },
    {
朱兆平 authored
715 716 717 718 719 720 721 722
        path: '/cbecd',
        component: HomeNew,
        name: '跨境电商申报',
        iconCls:'el-icon-wind-power',
        children:[
            {path:'/cbecd-export-receipt',component:exportRecipt,name:'收款单申报'},
        ]
    },
朱兆平 authored
723 724 725

    {
        path: '/',
726
        component: HomeNew,
朱兆平 authored
727 728 729 730 731 732 733 734
        name: '场站管理',
        iconCls: 'el-icon-setting',//图标样式class
        children: [
            {path: '/yard', component: Yard, name: '场站管理'},
            {path: '/bayonet', component: Bayonet, name: '卡口管理'},
            {path: '/warehouse', component: Warehouse, name: '仓库管理'},
        ]
    },
735 736 737 738 739 740
    {
        path: '/',
        component: Home,
        name: '车辆调度管理',
        iconCls: 'el-icon-truck',
        children: [
741
            {path: '/dispatch', component: Dispatch, name: '车辆管理'},
742 743 744 745 746 747
            {path: '/dispatchNode', component: DispatchNode, name: '调度记录'},
            {path: '/vehicleInfo', component: VehicleInfo, name: '车辆信息'},
            {path: '/driverInfo', component: DriverInfo, name: '驾驶员信息'},
            // {path: '/companyInfo', component: CompanyInfo, name: '公司信息'},
        ]
    },
748
朱兆平 authored
749 750
    {
        path: '/empt',
751
        component: HomeNew,
朱兆平 authored
752 753 754 755
        name: '能源管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/location', component: Location, name: '能源缴费' },
小范 authored
756
朱兆平 authored
757 758 759 760
        ]
    },
    {
        path: '/satff',
761
        component: HomeNew,
朱兆平 authored
762 763 764 765 766 767 768 769 770 771 772 773
        name: '生活保障部门',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/security_inspection', component: SecrityInspection, name: '职工公寓安全巡视管理' },
            { path: '/key', component: Key, name: '职工公寓备用钥匙使用登记管理' },
            { path: '/maintain', component: Maintain, name: '职工公寓设施设备维修记录管理' },
            { path: '/come_car', component: ComeCar, name: '职工公寓外来人员车辆登记管理' },
            { path: '/on_duty', component: OnDuty, name: '职工公寓值班巡视记录管理' },
        ]
    },
    {
        path: '/water_heating_chamber',
774
        component: HomeNew,
朱兆平 authored
775 776 777 778 779
        name: '水暖室',
        iconCls: 'fa fa-address-card',
        // leaf: true,//只有一个节点
        children: [
            { path: '/water_stations_patrol', component: WaterStationsPatrol, name: '二水厂-水站巡视记录单管理' },
朱兆平 authored
780 781 782 783
            { path: '/page6', component: Page6, name: '水质量检测' },
            { path: '/page6', component: Page6, name: '污水站' },
            { path: '/page6', component: Page6, name: '一水厂' },
            { path: '/page6', component: Page6, name: '综合楼空调站' },
朱兆平 authored
784 785 786 787 788 789 790 791
        ]
    },

    {
        path: '*',
        hidden: true,
        redirect: {path: '/404'}
    }
朱兆平 authored
792
];
793
let initRouters = routes.concat();
794 795
let setUserMenus = function (list) {
    routes = list;
796 797 798 799 800
}
/**
 * 处理登陆后的账号对应的菜单
 * @param menuList
 */
801
let handleMenuList = function (router, menu) {
802 803 804 805 806 807 808 809 810 811 812 813
    var _self = this;
    var routerName = "";
    router.forEach(function (v_router) {
        routerName = v_router.name;
        menu.forEach(function (v_menu) {
            //查找返回的目录列表是否包含路由名称,有就返回匹配到的元素,没有就移除
            let result = menu.find(item => {
                return item.name === routerName;
            });

            //匹配到继续判断是否子元素,有子元素继续递归
            if (result) {
814 815
                if (v_router.children) {
                    _self.handleMenuList(v_router.children, result.children);
816 817
                }
                //没有则可以移除
818 819
            } else {
                router.splice(router.findIndex(itm => itm.name === routerName), 1);
820 821 822
            }
        })
    });
823 824
}
export default {
825
    routes, setUserMenus, handleMenuList, initRouters
826
};