Merge branch 'feature_0521' of http://git.51jingcheng.com/zhenghuang/bsdgy-front into feature_0521
commit
699221d7ef
@ -0,0 +1,10 @@
|
|||||||
|
<template>
|
||||||
|
<div>asd</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
@ -0,0 +1,46 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<Menu v-show="false" ref="menu" mode="horizontal" :active-name="selectedItemName" v-model="this.threeLevel[0] && this.threeLevel[0].id">
|
||||||
|
<MenuItem :name="cItem.id" :to="cItem.resource" v-for="cItem in threeLevel"
|
||||||
|
:key="cItem.id">
|
||||||
|
{{cItem.name}}
|
||||||
|
</MenuItem>
|
||||||
|
</Menu>
|
||||||
|
<div>
|
||||||
|
<router-view/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "ShopIncrease",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
threeLevel: [],
|
||||||
|
selectedItemName: null,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.threeLevel = JSON.parse(sessionStorage.getItem("threeLevel")) || [];
|
||||||
|
this.menuInit();
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.threeLevel = JSON.parse(sessionStorage.getItem("threeLevel")) || [];
|
||||||
|
this.menuInit();
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
menuInit(){
|
||||||
|
let that = this;
|
||||||
|
that.selectedItemName = that.threeLevel[0] && that.threeLevel[0].id;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
that.$refs.menu.updateActiveName();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -1,273 +1,274 @@
|
|||||||
import Vue from 'vue'
|
import Vue from "vue";
|
||||||
import Router from 'vue-router'
|
import Router from "vue-router";
|
||||||
import Login from '@/pages/Login'
|
import Login from "@/pages/Login";
|
||||||
import ExternalContact from '@/pages/ExternalContact'
|
import ExternalContact from "@/pages/ExternalContact";
|
||||||
import Home from '@/pages/Home'
|
import Home from "@/pages/Home";
|
||||||
import AccountManager from '@/pages/user/AccountManager'
|
import AccountManager from "@/pages/user/AccountManager";
|
||||||
import AccountManagerAdd from '@/pages/user/AccountManagerAdd'
|
import AccountManagerAdd from "@/pages/user/AccountManagerAdd";
|
||||||
import AccountManagementModify from '@/pages/user/AccountManagementModify'
|
import AccountManagementModify from "@/pages/user/AccountManagementModify";
|
||||||
import AccountManagerUpload from '@/pages/user/AccountManagerUpload'
|
import AccountManagerUpload from "@/pages/user/AccountManagerUpload";
|
||||||
import RoleManager from '@/pages/user/RoleManager'
|
import RoleManager from "@/pages/user/RoleManager";
|
||||||
import IncreaseManager from '@/pages/shop/IncreaseManager'
|
import IncreaseManager from "@/pages/shop/IncreaseManager";
|
||||||
import CustomerView from '@/pages/home/CustomerView'
|
import CustomerView from "@/pages/home/CustomerView";
|
||||||
import TableAnalysis from '@/pages/TableAnalysis'
|
import TableAnalysis from "@/pages/TableAnalysis";
|
||||||
import AddCustomerTable from '@/pages/analysis/AddCustomerTable'
|
import AddCustomerTable from "@/pages/analysis/AddCustomerTable";
|
||||||
import ApplyCustomerTable from '@/pages/analysis/ApplyCustomerTable'
|
import ApplyCustomerTable from "@/pages/analysis/ApplyCustomerTable";
|
||||||
import ZeroExtendDetail from '@/pages/home/ZeroExtendDetail'
|
import ZeroExtendDetail from "@/pages/home/ZeroExtendDetail";
|
||||||
import CustomerDetail from '@/pages/home/CustomerDetail'
|
import CustomerDetail from "@/pages/home/CustomerDetail";
|
||||||
import IncreaseData from '@/pages/shop/IncreaseData'
|
import IncreaseData from "@/pages/shop/IncreaseData";
|
||||||
import IncreaseDataCompany from '@/pages/shop/IncreaseDataCompany'
|
import IncreaseDataCompany from "@/pages/shop/IncreaseDataCompany";
|
||||||
import IncreaseDataStaff from '@/pages/shop/IncreaseDataStaff'
|
import IncreaseDataStaff from "@/pages/shop/IncreaseDataStaff";
|
||||||
import IncreaseDataStore from '@/pages/shop/IncreaseDataStore'
|
import IncreaseDataStore from "@/pages/shop/IncreaseDataStore";
|
||||||
import IncreaseStaffManager from '@/pages/shop/IncreaseStaffManager'
|
import IncreaseStaffManager from "@/pages/shop/IncreaseStaffManager";
|
||||||
import IncreaseStaffManagerBatchAdd from '@/pages/shop/IncreaseStaffManagerBatchAdd'
|
import IncreaseStaffManagerBatchAdd from "@/pages/shop/IncreaseStaffManagerBatchAdd";
|
||||||
import IncreaseStoreManager from '@/pages/shop/IncreaseStoreManager'
|
import IncreaseStoreManager from "@/pages/shop/IncreaseStoreManager";
|
||||||
import IncreaseConfigure from '@/pages/shop/IncreaseConfigure'
|
import IncreaseConfigure from "@/pages/shop/IncreaseConfigure";
|
||||||
import IncreaseGroupSendConfigure from '@/pages/shop/IncreaseGroupSendConfigure'
|
import IncreaseGroupSendConfigure from "@/pages/shop/IncreaseGroupSendConfigure";
|
||||||
import IncreaseWelcomeConfigure from '@/pages/shop/IncreaseWelcomeConfigure'
|
import IncreaseWelcomeConfigure from "@/pages/shop/IncreaseWelcomeConfigure";
|
||||||
import IncreaseGroupSendConfigureAdd from '@/pages/shop/IncreaseGroupSendConfigureAdd'
|
import IncreaseGroupSendConfigureAdd from "@/pages/shop/IncreaseGroupSendConfigureAdd";
|
||||||
import NoPermission from '@/pages/shop/NoPermission'
|
import NoPermission from "@/pages/shop/NoPermission";
|
||||||
import CustomerViewHome from '@/pages/home/CustomerViewHome'
|
import CustomerViewHome from "@/pages/home/CustomerViewHome";
|
||||||
import ActivityAnalysis from '@/pages/activity/ActivityAnalysis'
|
import ActivityAnalysis from "@/pages/activity/ActivityAnalysis";
|
||||||
import ActivityManager from '@/pages/activity/ActivityManager'
|
import ActivityManager from "@/pages/activity/ActivityManager";
|
||||||
import ActivityPlan from '@/pages/activity/ActivityPlan'
|
import ActivityPlan from "@/pages/activity/ActivityPlan";
|
||||||
import ActivityCode from '@/pages/activity/ActivityCode'
|
import ActivityCode from "@/pages/activity/ActivityCode";
|
||||||
import GuideCode from '@/pages/activity/GuideCode'
|
import GuideCode from "@/pages/activity/GuideCode";
|
||||||
|
import Recruit from "@/pages/recruit/Recruit";
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router);
|
||||||
const router = new Router({
|
const router = new Router({
|
||||||
mode: 'history',
|
mode: "history",
|
||||||
base: '/youke',
|
base: "/youke",
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: "/",
|
||||||
redirect: '/login',
|
redirect: "/login",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/login',
|
path: "/login",
|
||||||
name: 'login',
|
name: "login",
|
||||||
component: Login,
|
component: Login,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/external/contact',
|
path: "/external/contact",
|
||||||
name: 'externalContact',
|
name: "externalContact",
|
||||||
component: ExternalContact,
|
component: ExternalContact,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/home',
|
path: "/home",
|
||||||
name: 'Home',
|
name: "Home",
|
||||||
component: Home,
|
component: Home,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/activity/manager',
|
path: "/activity/manager",
|
||||||
name: 'ActivityManager',
|
name: "ActivityManager",
|
||||||
component: ActivityManager,
|
component: ActivityManager,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/activity/plan',
|
path: "/activity/plan",
|
||||||
name: 'ActivityPlan',
|
name: "ActivityPlan",
|
||||||
component: ActivityPlan,
|
component: ActivityPlan,
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/activity/plan/code',
|
path: "/activity/plan/code",
|
||||||
name: 'ActivityCode',
|
name: "ActivityCode",
|
||||||
component: ActivityCode,
|
component: ActivityCode,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/activity/plan/GuideCode',
|
path: "/activity/plan/GuideCode",
|
||||||
name: 'GuideCode',
|
name: "GuideCode",
|
||||||
component: GuideCode,
|
component: GuideCode,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/activity/analysis',
|
path: "/activity/analysis",
|
||||||
name: 'ActivityAnalysis',
|
name: "ActivityAnalysis",
|
||||||
component: ActivityAnalysis,
|
component: ActivityAnalysis,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/account/manager',
|
path: "/account/manager",
|
||||||
name: 'AccountManager',
|
name: "AccountManager",
|
||||||
component: AccountManager,
|
component: AccountManager,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/account/management/add',
|
path: "/account/management/add",
|
||||||
name: 'AccountManagerAdd',
|
name: "AccountManagerAdd",
|
||||||
component: AccountManagerAdd,
|
component: AccountManagerAdd,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/account/management/modify',
|
path: "/account/management/modify",
|
||||||
name: 'AccountManagementModify',
|
name: "AccountManagementModify",
|
||||||
component: AccountManagementModify,
|
component: AccountManagementModify,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/account/upload',
|
path: "/account/upload",
|
||||||
name: 'AccountManagerUpload',
|
name: "AccountManagerUpload",
|
||||||
component: AccountManagerUpload,
|
component: AccountManagerUpload,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/role/manager',
|
path: "/role/manager",
|
||||||
name: 'RoleManager',
|
name: "RoleManager",
|
||||||
component: RoleManager,
|
component: RoleManager,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/manager',
|
path: "/shop/increase/manager",
|
||||||
name: 'IncreaseManager',
|
name: "IncreaseManager",
|
||||||
component: IncreaseManager,
|
component: IncreaseManager,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: "/",
|
||||||
redirect: '/shop/increase/manager/store',
|
redirect: "/shop/increase/manager/store",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/manager/store',
|
path: "/shop/increase/manager/store",
|
||||||
name: 'IncreaseStoreManager',
|
name: "IncreaseStoreManager",
|
||||||
component: IncreaseStoreManager,
|
component: IncreaseStoreManager,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/manager/staff',
|
path: "/shop/increase/manager/staff",
|
||||||
name: 'IncreaseStaffManager',
|
name: "IncreaseStaffManager",
|
||||||
component: IncreaseStaffManager,
|
component: IncreaseStaffManager,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/manager/staff/batch/add',
|
path: "/shop/increase/manager/staff/batch/add",
|
||||||
name: 'IncreaseStaffManagerBatchAdd',
|
name: "IncreaseStaffManagerBatchAdd",
|
||||||
component: IncreaseStaffManagerBatchAdd,
|
component: IncreaseStaffManagerBatchAdd,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/welcome/list',
|
path: "/shop/increase/welcome/list",
|
||||||
component: () => import('@/pages/shop/IncreaseWelcomeList'),
|
component: () => import("@/pages/shop/IncreaseWelcomeList"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/welcome/edit',
|
path: "/shop/increase/welcome/edit",
|
||||||
component: () => import('@/pages/shop/IncreaseWelcomeEdit'),
|
component: () => import("@/pages/shop/IncreaseWelcomeEdit"),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/table/analysis',
|
path: "/table/analysis",
|
||||||
name: 'TableAnalysis',
|
name: "TableAnalysis",
|
||||||
component: TableAnalysis,
|
component: TableAnalysis,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: "/",
|
||||||
redirect: '/table/analysis/customer/add',
|
redirect: "/table/analysis/customer/add",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/table/analysis/customer/add',
|
path: "/table/analysis/customer/add",
|
||||||
name: 'AddCustomerTable',
|
name: "AddCustomerTable",
|
||||||
component: AddCustomerTable,
|
component: AddCustomerTable,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/table/analysis/customer/apply',
|
path: "/table/analysis/customer/apply",
|
||||||
name: 'ApplyCustomerTable',
|
name: "ApplyCustomerTable",
|
||||||
component: ApplyCustomerTable,
|
component: ApplyCustomerTable,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/configure',
|
path: "/shop/increase/configure",
|
||||||
name: 'IncreaseConfigure',
|
name: "IncreaseConfigure",
|
||||||
component: IncreaseConfigure,
|
component: IncreaseConfigure,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: "/",
|
||||||
redirect: '/shop/increase/configure/welcome',
|
redirect: "/shop/increase/configure/welcome",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/configure/group',
|
path: "/shop/increase/configure/group",
|
||||||
name: 'IncreaseGroupSendConfigure',
|
name: "IncreaseGroupSendConfigure",
|
||||||
component: IncreaseGroupSendConfigure,
|
component: IncreaseGroupSendConfigure,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/configure/welcome',
|
path: "/shop/increase/configure/welcome",
|
||||||
name: 'IncreaseWelcomeConfigure',
|
name: "IncreaseWelcomeConfigure",
|
||||||
component: IncreaseWelcomeConfigure,
|
component: IncreaseWelcomeConfigure,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/configure/group/add',
|
path: "/shop/increase/configure/group/add",
|
||||||
name: 'IncreaseGroupSendConfigureAdd',
|
name: "IncreaseGroupSendConfigureAdd",
|
||||||
component: IncreaseGroupSendConfigureAdd,
|
component: IncreaseGroupSendConfigureAdd,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/data',
|
path: "/shop/increase/data",
|
||||||
name: 'IncreaseData',
|
name: "IncreaseData",
|
||||||
component: IncreaseData,
|
component: IncreaseData,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: "/",
|
||||||
redirect: '/shop/increase/data/region',
|
redirect: "/shop/increase/data/region",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/data/region',
|
path: "/shop/increase/data/region",
|
||||||
name: 'IncreaseDataCompany',
|
name: "IncreaseDataCompany",
|
||||||
component: IncreaseDataCompany,
|
component: IncreaseDataCompany,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/data/store',
|
path: "/shop/increase/data/store",
|
||||||
name: 'IncreaseDataStore',
|
name: "IncreaseDataStore",
|
||||||
component: IncreaseDataStore,
|
component: IncreaseDataStore,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/shop/increase/data/staff',
|
path: "/shop/increase/data/staff",
|
||||||
name: 'IncreaseDataStaff',
|
name: "IncreaseDataStaff",
|
||||||
component: IncreaseDataStaff,
|
component: IncreaseDataStaff,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/recruit',
|
path: "/recruit",
|
||||||
component: IncreaseData,
|
component: Recruit,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/recruit/bulletin/index',
|
path: "/recruit/bulletin/index",
|
||||||
component: () => import('@/pages/recruit/BulletinIndex'),
|
component: () => import("@/pages/recruit/BulletinIndex"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/recruit/check/list',
|
path: "/recruit/check/list",
|
||||||
component: () => import('@/pages/recruit/CheckList'),
|
component: () => import("@/pages/recruit/CheckList"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/recruit/promoter/list',
|
path: "/recruit/promoter/list",
|
||||||
component: () => import('@/pages/recruit/PromoterList'),
|
component: () => import("@/pages/recruit/PromoterList"),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/customer/view',
|
path: "/customer/view",
|
||||||
name: 'CustomerView',
|
name: "CustomerView",
|
||||||
component: CustomerView,
|
component: CustomerView,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/zero/extend/detail',
|
path: "/zero/extend/detail",
|
||||||
name: 'ZeroExtendDetail',
|
name: "ZeroExtendDetail",
|
||||||
component: ZeroExtendDetail,
|
component: ZeroExtendDetail,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/customer/data/detail',
|
path: "/customer/data/detail",
|
||||||
name: 'CustomerDetail',
|
name: "CustomerDetail",
|
||||||
component: CustomerDetail,
|
component: CustomerDetail,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/no/permission',
|
path: "/no/permission",
|
||||||
name: 'NoPermission',
|
name: "NoPermission",
|
||||||
component: NoPermission,
|
component: NoPermission,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/customer/view/home',
|
path: "/customer/view/home",
|
||||||
name: 'CustomerViewHome',
|
name: "CustomerViewHome",
|
||||||
component: CustomerViewHome,
|
component: CustomerViewHome,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
});
|
||||||
/*
|
/*
|
||||||
* 跳转前的处理事件
|
* 跳转前的处理事件
|
||||||
* */
|
* */
|
||||||
router.beforeEach(function(to, from, next) {
|
router.beforeEach(function(to, from, next) {
|
||||||
next()
|
next();
|
||||||
})
|
});
|
||||||
|
|
||||||
export default router
|
export default router;
|
||||||
|
Loading…
Reference in New Issue