// 路由配置文件 export default [ { path: '/', component: '../layouts/BlankLayout', routes: [ { path: '/user', component: '../layouts/UserLayout', routes: [ { path: '/user/login', name: '用户登录', component: './User/login', }, { path: '/user/register', name: '用户注册', component: './User/register', }, { path: '/user/forgetPassword', name: '忘记密码', component: './User/ForgetPassword', }, ], }, { path: '/', component: '../layouts/SecurityLayout', routes: [ { path: '/', component: '../layouts/BasicLayout', authority: ['1000', '2000', '3000'], routes: [ { path: '/', redirect: '/dashboard/analysis', }, { path: 'dashboard', name: 'dashboard', icon: 'DashboardOutlined', routes: [ { path: 'contractAnalysis', name: 'busniess.analysis', component: './busniess/Analysis', }, { path: 'analysisINS', name: 'analysisINS', component: './dashboard/analysisINS', }, ], }, { path: '/busniessproject', name: 'busniessproject', icon: 'FileProtectOutlined', routes: [ { path: 'contract', name: 'contract.list', component: './contract/list', }, { path: 'project', name: 'project.list', component: './BussinessProject/list', }, { path: 'project/detail/:id', name: 'project.detail', component: './BussinessProject/detail', hideInMenu: true, }, { path: 'reports/contract', name: 'reports.contract.list', component: './reports/contract/index', }, { path: 'reports/refund', name: 'reports.refund', component: './reports/contract/refund', }, { path: 'reports/businessProject', name: 'reports.businessProject', component: './reports/BusinessProject/index', }, ], }, { path: '/baseinfo', name: 'baseinfo', icon: 'ReadOutlined', routes: [ { path: 'ownerunit', name: 'ownerunit', component: './basicManage/ownerunit/index', }, { path: 'merchats', name: 'merchats', component: './basicManage/Merchats/index', icon: 'ShopOutlined', }, { path: 'businesstrade', name: 'businesstrade', component: './basicManage/BusinessTrade/index', icon: 'ShoppingOutlined', }, { path: 'brand', name: 'brand', component: './basicManage/Brand/index', icon: 'TrademarkOutlined', }, { path: 'serverpartinfo', name: 'serverpartinfo', component: './basicManage/Serverpart/index', }, { path: 'serverpartshop', name: 'serverpartshop', component: './basicManage/ServerpartShop/index', }, { path: 'commodity', name: 'commodity', component: './basicManage/Commodity/list', }, { path: 'qualificationDelay', name: 'qualificationDelay', component: './basicManage/QualificationDelay/index', }, { path: 'commodityOnshelf', name: 'commodityOnshelf', component: './basicManage/Commodity/onshelf', }, ], }, { path: '/dataVerification', name: 'dataVerification', icon: 'FileDoneOutlined', routes: [ { path: '/dataVerification/list', name: 'list', component: './DataVerification/list', }, ], }, { path: '/financial', name: 'financial', icon: 'AccountBookOutlined', routes: [ { path: '/financial/list', name: 'list', component: './Financial/list', }, ], }, { path: '/busniess', name: 'busniess', icon: 'ImportOutlined', routes: [ { path: 'payment', name: 'paymentConfrim', component: './busniess/PaymentConfirm', }, { path: 'payment/detail', name: 'paymentConfrimDetail', component: './busniess/PaymentConfirm/detail', }, { path: 'payment/detail/:id', name: 'paymentConfrimDetail', component: './busniess/PaymentConfirm/detail', hideInMenu: true, }, { path: 'test', name: 'paymentTest', component: './busniess/test' }, ], }, { path: '/setting', name: 'setting', icon: 'setting', routes: [ { path: 'menu', name: 'moduleCate', component: './Setting/Module/index', }, { path: '/setting/roles', name: 'roles', component: './Setting/Roles/index', }, { path: '/setting/users', name: 'users', component: './Setting/Users/index', }, { path: '/setting/userstype', name: 'userstype', component: './Setting/UserType/index', }, { path: '/setting/route', name: 'route', component: './Setting/Route/index', }, { path: '/setting/appmenu', name: 'appmenu', component: './Setting/APPMenu/index', }, { path: '/setting/appletroute', name: 'appletroute', component: './Setting/AppletRoute/index', }, ], }, { path: '/account', name: 'account', icon: 'UserOutlined', hideInMenu: true, routes: [ { path: 'center', name: 'center', component: './account/center', }, { path: 'settings', name: 'settings', component: './account/setting', }, ], }, { path: '/merchantManagement', name: 'merchantManagement', icon: 'UserOutlined', hideInMenu: true, routes: [ { path: 'commitysale', name: 'commitysale', component: './merchantManagement/reports/CommitySaleReport', }, { path: 'salesFlow', name: 'salesFlow', component: './merchantManagement/reports/SalesFlow', }, { path: 'bankArrival', name: 'bankArrival', component: './merchantManagement/mobilePayment/bankArrival', }, { path: 'revenueSummary', name: 'revenueSummary', component: './merchantManagement/reports/RevenueSummary', }, { path: 'commodity', name: 'commodity', component: './merchantManagement/commodity/BaseInfo', }, { path: 'upSaleCommodity', name: 'upSaleCommodity', component: './merchantManagement/commodity/Update', }, { path: 'category/:id', name: 'category', component: './merchantManagement/category', }, { path: 'onsale', name: 'onsale', component: './merchantManagement/commodity/OnSale', }, { path: 'busniessproinst', name: 'busniessproinst', component: './merchantManagement/BusniessProInst/index', }, { path: 'busniessproinst/detail', name: 'busniessproInstDetail', component: './merchantManagement/BusniessProInst/result', }, { path: 'busniessproinst/examineAndApprove/:id', name: 'examineAndApprove', component: './merchantManagement/BusniessProInst/examineAndApprove', }, { path: 'workplace', name: 'merchantWorkplace', component: './merchantManagement/Workplace/index', }, { path: 'supplier/list', name: 'supplier', component: './merchantManagement/supplier/Management/index', }, { path: 'supplier/qualifications', name: 'qualifications', component: './merchantManagement/supplier/Qualifications', }, { path: 'shops', name: 'shops', component: './merchantManagement/Shops', }, { path: 'brand', name: 'brand', component: './merchantManagement/brand', }, { path: 'company/create', name: '完善商户资料', component: './account/company', }, { path: 'shareRoyalty', name: 'shareRoyalty', component: './merchantManagement/mobilePayment/shareRoyalty', }, ], }, { path: '/test', name: 'test', hideInMenu: true, routes: [ { path: 'SALEBILL', component: './Test/SALEBILL/index', }, { path: 'PURCHASE', component: './Test/PURCHASE/index', }, ], }, { component: './404', }, ], }, { component: './404', }, { component: './500', }, ], }, ], }, { component: './404', }, { component: './500', }, ];