|
|
|
@ -35,246 +35,281 @@ import ActivityPlan from "@/pages/activity/ActivityPlan";
|
|
|
|
|
import ActivityCode from "@/pages/activity/ActivityCode";
|
|
|
|
|
import GuideCode from "@/pages/activity/GuideCode";
|
|
|
|
|
import Recruit from "@/pages/recruit/Recruit";
|
|
|
|
|
|
|
|
|
|
import OrganizationRegion from "@/pages/organization/OrganizationRegion";
|
|
|
|
|
import OrganizationCompany from "@/pages/organization/OrganizationCompany";
|
|
|
|
|
import OrganizationCustomer from "@/pages/organization/OrganizationCustomer";
|
|
|
|
|
import OrganizationStore from "@/pages/organization/OrganizationStore";
|
|
|
|
|
import OrganizationMain from "@/pages/organization/OrganizationMain"
|
|
|
|
|
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,
|
|
|
|
|
children: [],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/activity/plan/code",
|
|
|
|
|
name: "ActivityCode",
|
|
|
|
|
component: ActivityCode,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/activity/plan/GuideCode",
|
|
|
|
|
name: "GuideCode",
|
|
|
|
|
component: GuideCode,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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: "/shop/increase/welcome/list",
|
|
|
|
|
component: () => import("@/pages/shop/IncreaseWelcomeList"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/shop/increase/welcome/edit",
|
|
|
|
|
component: () => import("@/pages/shop/IncreaseWelcomeEdit"),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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: "/recruit",
|
|
|
|
|
component: Recruit,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: "/recruit/bulletin/index",
|
|
|
|
|
component: () => import("@/pages/recruit/BulletinIndex"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/recruit/check/list",
|
|
|
|
|
component: () => import("@/pages/recruit/CheckList"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/recruit/promoter/list",
|
|
|
|
|
component: () => import("@/pages/recruit/PromoterList"),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
mode: "history",
|
|
|
|
|
base: "/youke",
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
path: "/customer/view",
|
|
|
|
|
name: "CustomerView",
|
|
|
|
|
component: CustomerView,
|
|
|
|
|
path: "/",
|
|
|
|
|
redirect: "/login",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/zero/extend/detail",
|
|
|
|
|
name: "ZeroExtendDetail",
|
|
|
|
|
component: ZeroExtendDetail,
|
|
|
|
|
path: "/login",
|
|
|
|
|
name: "login",
|
|
|
|
|
component: Login,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/customer/data/detail",
|
|
|
|
|
name: "CustomerDetail",
|
|
|
|
|
component: CustomerDetail,
|
|
|
|
|
path: "/external/contact",
|
|
|
|
|
name: "externalContact",
|
|
|
|
|
component: ExternalContact,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/store/data/detail',
|
|
|
|
|
name: 'StoreDetail',
|
|
|
|
|
component: StoreDetail,
|
|
|
|
|
path: "/home",
|
|
|
|
|
name: "Home",
|
|
|
|
|
component: Home,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: "/activity/manager",
|
|
|
|
|
name: "ActivityManager",
|
|
|
|
|
component: ActivityManager,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/activity/plan",
|
|
|
|
|
name: "ActivityPlan",
|
|
|
|
|
component: ActivityPlan,
|
|
|
|
|
children: [],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/activity/plan/code",
|
|
|
|
|
name: "ActivityCode",
|
|
|
|
|
component: ActivityCode,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/activity/plan/GuideCode",
|
|
|
|
|
name: "GuideCode",
|
|
|
|
|
component: GuideCode,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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: "/shop/increase/welcome/list",
|
|
|
|
|
component: () => import("@/pages/shop/IncreaseWelcomeList"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/shop/increase/welcome/edit",
|
|
|
|
|
component: () => import("@/pages/shop/IncreaseWelcomeEdit"),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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: "/recruit",
|
|
|
|
|
component: Recruit,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: "/recruit/bulletin/index",
|
|
|
|
|
component: () => import("@/pages/recruit/BulletinIndex"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/recruit/check/list",
|
|
|
|
|
component: () => import("@/pages/recruit/CheckList"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/recruit/promoter/list",
|
|
|
|
|
component: () => import("@/pages/recruit/PromoterList"),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/customer/view",
|
|
|
|
|
name: "CustomerView",
|
|
|
|
|
component: CustomerView,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/zero/extend/detail",
|
|
|
|
|
name: "ZeroExtendDetail",
|
|
|
|
|
component: ZeroExtendDetail,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/customer/data/detail",
|
|
|
|
|
name: "CustomerDetail",
|
|
|
|
|
component: CustomerDetail,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/store/data/detail',
|
|
|
|
|
name: 'StoreDetail',
|
|
|
|
|
component: StoreDetail,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/no/permission',
|
|
|
|
|
name: 'NoPermission',
|
|
|
|
|
component: NoPermission,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/organization/main",
|
|
|
|
|
name: "OrganizationMain",
|
|
|
|
|
component: OrganizationMain,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: "/",
|
|
|
|
|
redirect: OrganizationStore,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/organization/customer",
|
|
|
|
|
name: "OrganizationCustomer",
|
|
|
|
|
component: OrganizationCustomer,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/organization/company",
|
|
|
|
|
name: "OrganizationCompany",
|
|
|
|
|
component: OrganizationCompany,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/organization/region",
|
|
|
|
|
name: "OrganizationRegion",
|
|
|
|
|
component: OrganizationRegion,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/organization/store",
|
|
|
|
|
name: "OrganizationStore",
|
|
|
|
|
component: OrganizationStore,
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/no/permission',
|
|
|
|
|
name: 'NoPermission',
|
|
|
|
|
component: NoPermission,
|
|
|
|
|
path: "/customer/view/home",
|
|
|
|
|
name: "CustomerViewHome",
|
|
|
|
|
component: CustomerViewHome,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/customer/view/home",
|
|
|
|
|
name: "CustomerViewHome",
|
|
|
|
|
component: CustomerViewHome,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
});
|
|
|
|
|
/*
|
|
|
|
|
* 跳转前的处理事件
|
|
|
|
|
* */
|
|
|
|
|
router.beforeEach(function(to, from, next) {
|
|
|
|
|
next();
|
|
|
|
|
router.beforeEach(function (to, from, next) {
|
|
|
|
|
next();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default router;
|
|
|
|
|