You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
237 lines
7.1 KiB
JavaScript
237 lines
7.1 KiB
JavaScript
import Vue from 'vue'
|
|
import Router from 'vue-router'
|
|
import Login from '@/pages/Login';
|
|
import ExternalContact from '@/pages/ExternalContact';
|
|
import Home from '@/pages/Home';
|
|
import AccountManager from '@/pages/user/AccountManager';
|
|
import AccountManagerAdd from '@/pages/user/AccountManagerAdd';
|
|
import AccountManagementModify from '@/pages/user/AccountManagementModify';
|
|
import AccountManagerUpload from '@/pages/user/AccountManagerUpload';
|
|
import RoleManager from '@/pages/user/RoleManager';
|
|
import IncreaseManager from '@/pages/shop/IncreaseManager';
|
|
import CustomerView from "@/pages/home/CustomerView";
|
|
import TableAnalysis from "@/pages/TableAnalysis";
|
|
import AddCustomerTable from "@/pages/analysis/AddCustomerTable";
|
|
import ApplyCustomerTable from "@/pages/analysis/ApplyCustomerTable";
|
|
import ZeroExtendDetail from "@/pages/home/ZeroExtendDetail";
|
|
import CustomerDetail from "@/pages/home/CustomerDetail";
|
|
import IncreaseData from '@/pages/shop/IncreaseData';
|
|
import IncreaseDataCompany from '@/pages/shop/IncreaseDataCompany';
|
|
import IncreaseDataStaff from '@/pages/shop/IncreaseDataStaff';
|
|
import IncreaseDataStore from '@/pages/shop/IncreaseDataStore';
|
|
import IncreaseStaffManager from '@/pages/shop/IncreaseStaffManager';
|
|
import IncreaseStaffManagerBatchAdd from '@/pages/shop/IncreaseStaffManagerBatchAdd';
|
|
import IncreaseStoreManager from '@/pages/shop/IncreaseStoreManager';
|
|
import IncreaseConfigure from '@/pages/shop/IncreaseConfigure';
|
|
import IncreaseGroupSendConfigure from '@/pages/shop/IncreaseGroupSendConfigure';
|
|
import IncreaseWelcomeConfigure from '@/pages/shop/IncreaseWelcomeConfigure';
|
|
import IncreaseGroupSendConfigureAdd from '@/pages/shop/IncreaseGroupSendConfigureAdd';
|
|
import NoPermission from '@/pages/shop/NoPermission';
|
|
import CustomerViewHome from '@/pages/home/CustomerViewHome';
|
|
import ActivityAnalysis from "@/pages/activity/ActivityAnalysis";
|
|
import ActivityManager from "@/pages/activity/ActivityManager";
|
|
import ActivityPlan from "@/pages/activity/ActivityPlan";
|
|
|
|
|
|
Vue.use(Router);
|
|
const router = new Router({
|
|
mode: 'history',
|
|
base: '/youke',
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
redirect: '/login'
|
|
},
|
|
{
|
|
path: '/login',
|
|
name: 'login',
|
|
component: Login
|
|
},
|
|
{
|
|
path: '/external/contact',
|
|
name: 'externalContact',
|
|
component: ExternalContact
|
|
},
|
|
{
|
|
path: '/home',
|
|
name: 'Home',
|
|
component: Home,
|
|
children: [
|
|
{
|
|
path: '/activity/manager',
|
|
name: 'ActivityManager',
|
|
component: ActivityManager
|
|
},
|
|
{
|
|
path: '/activity/plan',
|
|
name: 'ActivityPlan',
|
|
component: ActivityPlan
|
|
},
|
|
{
|
|
path: '/activity/analysis',
|
|
name: 'ActivityAnalysis',
|
|
component: ActivityAnalysis
|
|
},
|
|
{
|
|
path: '/account/manager',
|
|
name: 'AccountManager',
|
|
component: AccountManager
|
|
},
|
|
{
|
|
path: '/account/management/add',
|
|
name: 'AccountManagerAdd',
|
|
component: AccountManagerAdd
|
|
},
|
|
{
|
|
path: '/account/management/modify',
|
|
name: 'AccountManagementModify',
|
|
component: AccountManagementModify
|
|
},
|
|
{
|
|
path: '/account/upload',
|
|
name: 'AccountManagerUpload',
|
|
component: AccountManagerUpload
|
|
},
|
|
{
|
|
path: '/role/manager',
|
|
name: 'RoleManager',
|
|
component: RoleManager
|
|
},
|
|
{
|
|
path: '/shop/increase/manager',
|
|
name: 'IncreaseManager',
|
|
component: IncreaseManager,
|
|
children: [
|
|
{
|
|
path: '/',
|
|
redirect: '/shop/increase/manager/store'
|
|
},
|
|
{
|
|
path: '/shop/increase/manager/store',
|
|
name: 'IncreaseStoreManager',
|
|
component: IncreaseStoreManager
|
|
},
|
|
{
|
|
path: '/shop/increase/manager/staff',
|
|
name: 'IncreaseStaffManager',
|
|
component: IncreaseStaffManager
|
|
},
|
|
{
|
|
path: '/shop/increase/manager/staff/batch/add',
|
|
name: 'IncreaseStaffManagerBatchAdd',
|
|
component: IncreaseStaffManagerBatchAdd
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/table/analysis',
|
|
name: 'TableAnalysis',
|
|
component: TableAnalysis,
|
|
children: [
|
|
{
|
|
path: '/',
|
|
redirect: '/table/analysis/customer/add'
|
|
},
|
|
{
|
|
path: '/table/analysis/customer/add',
|
|
name: 'AddCustomerTable',
|
|
component: AddCustomerTable
|
|
},
|
|
{
|
|
path: '/table/analysis/customer/apply',
|
|
name: 'ApplyCustomerTable',
|
|
component: ApplyCustomerTable
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/shop/increase/configure',
|
|
name: 'IncreaseConfigure',
|
|
component: IncreaseConfigure,
|
|
children: [
|
|
{
|
|
path: '/',
|
|
redirect: '/shop/increase/configure/welcome'
|
|
},
|
|
{
|
|
path: '/shop/increase/configure/group',
|
|
name: 'IncreaseGroupSendConfigure',
|
|
component: IncreaseGroupSendConfigure
|
|
},
|
|
{
|
|
path: '/shop/increase/configure/welcome',
|
|
name: 'IncreaseWelcomeConfigure',
|
|
component: IncreaseWelcomeConfigure
|
|
},
|
|
{
|
|
path: '/shop/increase/configure/group/add',
|
|
name: 'IncreaseGroupSendConfigureAdd',
|
|
component: IncreaseGroupSendConfigureAdd
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: '/shop/increase/data',
|
|
name: 'IncreaseData',
|
|
component: IncreaseData,
|
|
children: [
|
|
{
|
|
path: '/',
|
|
redirect: '/shop/increase/data/region'
|
|
},
|
|
{
|
|
path: '/shop/increase/data/region',
|
|
name: 'IncreaseDataCompany',
|
|
component: IncreaseDataCompany
|
|
},
|
|
{
|
|
path: '/shop/increase/data/store',
|
|
name: 'IncreaseDataStore',
|
|
component: IncreaseDataStore
|
|
},
|
|
{
|
|
path: '/shop/increase/data/staff',
|
|
name: 'IncreaseDataStaff',
|
|
component: IncreaseDataStaff
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: '/customer/view',
|
|
name: 'CustomerView',
|
|
component: CustomerView,
|
|
},
|
|
{
|
|
path: '/zero/extend/detail',
|
|
name: 'ZeroExtendDetail',
|
|
component: ZeroExtendDetail
|
|
},
|
|
{
|
|
path: '/customer/data/detail',
|
|
name: 'CustomerDetail',
|
|
component: CustomerDetail,
|
|
},
|
|
{
|
|
path: '/no/permission',
|
|
name: 'NoPermission',
|
|
component: NoPermission,
|
|
},
|
|
|
|
]
|
|
},
|
|
{
|
|
path: '/customer/view/home',
|
|
name: 'CustomerViewHome',
|
|
component: CustomerViewHome,
|
|
},
|
|
]
|
|
});
|
|
/*
|
|
* 跳转前的处理事件
|
|
* */
|
|
router.beforeEach(function (to, from, next) {
|
|
next();
|
|
});
|
|
|
|
export default router
|