const INDEX = () => import('@/components/Index/index.vue') const Home = () => import('@/components/Home.vue') const homeData = () => import('@/components/HomeData.vue') const customManage = () => import(/* webpackChunkName: 'customManage' */ '@/components/customManage/manage.vue') const employee_bulk_messaging_log = () => import(/* webpackChunkName: 'employee_bulk_messaging_log' */ '@/components/customOperate/employee_bulk_messaging_log.vue') const createMassMsg = () => import(/* webpackChunkName: 'createMassMsg' */ '@/components/customOperate/createMassMsg.vue') const blackList = () => import(/* webpackChunkName: 'blackList' */ '@/components/customManage/blackList.vue') const welcomeMsg = () => import(/* webpackChunkName: 'welcomeMsg' */ '@/components/customOperate/welcomeMsg.vue') const welcom_message = () => import(/* webpackChunkName: 'welcom_message' */ '@/components/customOperate/welcom_message.vue') const lostCustomer = () => import(/* webpackChunkName: 'lostCustomer' */ '@/components/customManage/lostCustomer.vue') const customerTransfer = () => import(/* webpackChunkName: 'customerTransfer' */ '@/components/customManage/customerTransfer.vue') const transferRecord = () => import(/* webpackChunkName: 'transferRecord' */ '@/components/customManage/transferRecord.vue') const authorityManage = () => import(/* webpackChunkName: 'authorityManage' */ '@/components/manage/authorityManage.vue') const memberManage = () => import(/* webpackChunkName: 'memberManage' */ '@/components/manage/memberManage.vue') const tagManage = () => import(/* webpackChunkName: 'tagManage' */ '@/components/manage/tagManage.vue') const permissionManage = () => import(/* webpackChunkName: 'permissionManage' */ '@/components/manage/permissionManage.vue') const roleManage = () => import(/* webpackChunkName: 'roleManage' */ '@/components/manage/roleManage.vue') const menuManage = () => import(/* webpackChunkName: 'menuManage' */ '@/components/manage/menuManage.vue') const thePublic = () => import(/* webpackChunkName: 'thePublic' */ '@/components/dataBoard/thePublic.vue') const playletData = () => import(/* webpackChunkName: 'playletData' */ '@/components/dataBoard/playletData.vue') const operateDayRetrieve = () => import(/* webpackChunkName: 'operateDayRetrieve' */ '@/components/dataBoard/operateDayRetrieve.vue') const populariz = () => import(/* webpackChunkName: 'populariz' */ '@/components/dataBoard/populariz.vue') const throwPerson = () => import(/* webpackChunkName: 'throwPerson' */ '@/components/dataBoard/throwPerson.vue') const regRangeReport = () => import(/* webpackChunkName: 'regRangeReport' */ '@/components/dataBoard/regRangeReport.vue') const dramaManage = () => import(/* webpackChunkName: 'dramaManage' */ '@/components/dataBoard/dramaManage.vue') const charge = () => import(/* webpackChunkName: 'charge' */ '@/components/orderManage/charge.vue') const wxAccountList = () => import(/* webpackChunkName: 'wxAccountList' */ '@/components/dataBoard/wxAccount/list.vue') const thePublicTrend = () => import(/* webpackChunkName: 'thePublicTrend' */ '@/components/dataBoard/thePublicTrend.vue') const playletFansActTrend = () => import(/* webpackChunkName: 'playletFansActTrend' */ '@/components/dataBoard/playletFansActTrend.vue') // name与菜单配置的页面路由一致 // meta下isData:true为数据看板,否则为助手 export var allRouter = [ { path: '/', redirect: '/home', component: INDEX, children: [ { path: 'home', name: 'home', component: Home, meta: { keepAlive: false, isLogin: true, title: '助手首页', } }, { path: 'homeData', name: 'homeData', component: homeData, meta: { keepAlive: false, isLogin: true, title: '数据看板首页', isData: true } }, { path: 'customManage', name: 'customManage', component: customManage, meta: { keepAlive: false, isLogin: true, title: '客户管理' } }, { path: 'charge', name: 'charge', component: charge, meta: { keepAlive: false, isLogin: true, title: '充值订单管理' } }, { path: 'blackList', name: 'blackList', component: blackList, meta: { keepAlive: false, isLogin: true, title: '黑名单' } }, { path: 'lostCustomer', name: 'lostCustomer', component: lostCustomer, meta: { keepAlive: false, isLogin: true, title: '客户流失' } }, { path: 'customerTransfer', name: 'customerTransfer', component: customerTransfer, meta: { keepAlive: false, isLogin: true, title: '客户迁移' } }, { path: 'transferRecord/:type', name: 'customerTransfer', component: transferRecord, meta: { keepAlive: false, isLogin: true, title: '迁移记录' } }, { path: 'employee_bulk_messaging_log', name: 'employee_bulk_messaging_log', component: employee_bulk_messaging_log, meta: { keepAlive: false, isLogin: true, title: '员工群发记录' } }, { path: 'welcomeMsg', name: 'welcomeMsg', component: welcomeMsg, meta: { keepAlive: false, isLogin: true, title: '客户欢迎语' } }, { path: 'memberManage', name: 'memberManage', component: memberManage, meta: { keepAlive: false, isLogin: true, title: '成员管理' } }, { path: 'welcom_message_create', name: 'welcomeMsg', component: welcom_message, meta: { keepAlive: false, isLogin: true, title: '创建欢迎语' } }, { path: 'welcom_message_edit/:rule_id', name: 'welcomeMsg', component: welcom_message, meta: { keepAlive: false, isLogin: true, title: '编辑欢迎语' } }, { path: 'createMassMsg', name: 'createMassMsg', component: createMassMsg, meta: { keepAlive: false, isLogin: true, title: '新建群发' } }, { path: 'massMsg/:rule_id', name: 'createMassMsg', component: createMassMsg, meta: { keepAlive: false, isLogin: true, title: '群发详情' } }, { path: 'authorityManage', name: 'authorityManage', component: authorityManage, meta: { keepAlive: false, isLogin: true, title: '授权管理' } }, { path: 'tagManage', name: 'tagManage', component: tagManage, meta: { keepAlive: false, isLogin: true, title: '标签管理' } }, { path: 'permissionManage', name: 'permissionManage', component: permissionManage, meta: { keepAlive: false, isLogin: true, title: '权限管理', // isData:true } }, { path: 'roleManage', name: 'roleManage', component: roleManage, meta: { keepAlive: false, isLogin: true, title: '角色管理', // isData:true } }, { path: 'menuManage', name: 'roleManage', component: menuManage, meta: { keepAlive: false, isLogin: true, title: '菜单管理', // isData:true } }, { path: 'thePublic', name: 'thePublic', component: thePublic, meta: { keepAlive: false, isLogin: true, title: '公众号数据', isData: true } }, { path: 'thePublicTrend', name: 'thePublicTrend', component: thePublicTrend, meta: { keepAlive: false, isLogin: true, title: '公众号数据趋势', isData: true } }, { path: 'playletFansActTrend', name: 'playletFansActTrend', component: playletFansActTrend, meta: { keepAlive: false, isLogin: true, title: '短剧粉丝激活趋势', isData: true } }, { path: 'playletData', name: 'playletData', component: playletData, meta: { keepAlive: false, isLogin: true, title: '短剧数据', isData: true } }, { path: 'operateDayRetrieve', name: 'operateDayRetrieve', component: operateDayRetrieve, meta: { keepAlive: false, isLogin: true, title: '运营数据', isData: true } }, { path: 'populariz', name: 'populariz', component: populariz, meta: { keepAlive: false, isLogin: true, title: '推广数据', isData: true } }, { path: 'throwPerson', name: 'throwPerson', component: throwPerson, meta: { keepAlive: false, isLogin: true, title: '投手数据', isData: true } }, { path: 'regRangeReport', name: 'regRangeReport', component: regRangeReport, meta: { keepAlive: false, isLogin: true, title: '数据循环统计', isData: true } }, { path: 'dramaManage', name: 'dramaManage', component: dramaManage, meta: { keepAlive: false, isLogin: true, title: '剧集管理', isData: true } }, { path: 'wxAccountList', name: 'wxAccountList', component: wxAccountList, meta: { keepAlive: false, isLogin: true, title: '公众号授权', isData: true } }, ] } ]