diff --git a/src/router/index.js b/src/router/index.js index 0cb0172..223640d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,7 @@ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' import { caseRouters } from './modules/case' +import { effectiveRouters } from './modules/effectiveStatistics' import { knowledgeRouters } from './modules/knowledge' import { customerRouters } from './modules/customer' import { monitorRouters } from './modules/statistic' @@ -77,12 +78,13 @@ // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ ...caseRouters, - ...knowledgeRouters, ...customerRouters, - ...soundsRouters, + ...knowledgeRouters, ...qualityCheckRouters, + ...soundsRouters, + ...effectiveRouters, ...monitorRouters, - ...systemRouters, ...mobileRouters, + ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/index.js b/src/router/index.js index 0cb0172..223640d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,7 @@ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' import { caseRouters } from './modules/case' +import { effectiveRouters } from './modules/effectiveStatistics' import { knowledgeRouters } from './modules/knowledge' import { customerRouters } from './modules/customer' import { monitorRouters } from './modules/statistic' @@ -77,12 +78,13 @@ // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ ...caseRouters, - ...knowledgeRouters, ...customerRouters, - ...soundsRouters, + ...knowledgeRouters, ...qualityCheckRouters, + ...soundsRouters, + ...effectiveRouters, ...monitorRouters, - ...systemRouters, ...mobileRouters, + ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/effectiveStatistics.js b/src/router/modules/effectiveStatistics.js new file mode 100644 index 0000000..ca218f2 --- /dev/null +++ b/src/router/modules/effectiveStatistics.js @@ -0,0 +1,29 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const effectiveRouters = [{ + path: '/effectiveStatistics', + component: Layout, + redirect: '/deptEffectiveStatistics', + name: 'EffectiveStatistics', + alwaysShow: true, + meta: { + title: '效能监察', + icon: 'icon-config', // 图标 + permission: '/effectiveStatistics' + }, + children: [ + { + path: '/deptEffectiveStatistics', + name: 'DeptEffectiveStatistics', + component: () => import('@/views/statistic/deptStatistic/deptStatistic'), + meta: { title: '部门效能监察', icon: '', permission: '/sdeptStatistics' } + }, + { + path: '/seatStatisticsAll', + name: 'seatStatisticsAll', + component: () => import('@/views/statistic/seatStatistic/seatStatistic'), + meta: { title: '坐席效能监察', icon: '', permission: '/seatStatistics' } + } + ] +} +] diff --git a/src/router/index.js b/src/router/index.js index 0cb0172..223640d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,7 @@ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' import { caseRouters } from './modules/case' +import { effectiveRouters } from './modules/effectiveStatistics' import { knowledgeRouters } from './modules/knowledge' import { customerRouters } from './modules/customer' import { monitorRouters } from './modules/statistic' @@ -77,12 +78,13 @@ // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ ...caseRouters, - ...knowledgeRouters, ...customerRouters, - ...soundsRouters, + ...knowledgeRouters, ...qualityCheckRouters, + ...soundsRouters, + ...effectiveRouters, ...monitorRouters, - ...systemRouters, ...mobileRouters, + ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/effectiveStatistics.js b/src/router/modules/effectiveStatistics.js new file mode 100644 index 0000000..ca218f2 --- /dev/null +++ b/src/router/modules/effectiveStatistics.js @@ -0,0 +1,29 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const effectiveRouters = [{ + path: '/effectiveStatistics', + component: Layout, + redirect: '/deptEffectiveStatistics', + name: 'EffectiveStatistics', + alwaysShow: true, + meta: { + title: '效能监察', + icon: 'icon-config', // 图标 + permission: '/effectiveStatistics' + }, + children: [ + { + path: '/deptEffectiveStatistics', + name: 'DeptEffectiveStatistics', + component: () => import('@/views/statistic/deptStatistic/deptStatistic'), + meta: { title: '部门效能监察', icon: '', permission: '/sdeptStatistics' } + }, + { + path: '/seatStatisticsAll', + name: 'seatStatisticsAll', + component: () => import('@/views/statistic/seatStatistic/seatStatistic'), + meta: { title: '坐席效能监察', icon: '', permission: '/seatStatistics' } + } + ] +} +] diff --git a/src/router/modules/statistic.js b/src/router/modules/statistic.js index 7891949..0e0ebbf 100644 --- a/src/router/modules/statistic.js +++ b/src/router/modules/statistic.js @@ -88,30 +88,31 @@ meta: { title: '话务综合统计', icon: '', permission: '/allCallStatistic' } } ] -}, { - path: '/effectiveStatistics', - component: Layout, - redirect: '/deptEffectiveStatistics', - name: 'EffectiveStatistics', - alwaysShow: true, - meta: { - title: '效能监察', - icon: 'icon-config', // 图标 - permission: '/effectiveStatistics' - }, - children: [ - { - path: '/deptEffectiveStatistics', - name: 'DeptEffectiveStatistics', - component: () => import('@/views/statistic/deptStatistic/deptStatistic'), - meta: { title: '部门效能监察', icon: '', permission: '/sdeptStatistics' } - }, - { - path: '/seatStatisticsAll', - name: 'seatStatisticsAll', - component: () => import('@/views/statistic/seatStatistic/seatStatistic'), - meta: { title: '坐席效能监察', icon: '', permission: '/seatStatistics' } - } - ] -} +}, +// { +// path: '/effectiveStatistics', +// component: Layout, +// redirect: '/deptEffectiveStatistics', +// name: 'EffectiveStatistics', +// alwaysShow: true, +// meta: { +// title: '效能监察', +// icon: 'icon-config', // 图标 +// permission: '/effectiveStatistics' +// }, +// children: [ +// { +// path: '/deptEffectiveStatistics', +// name: 'DeptEffectiveStatistics', +// component: () => import('@/views/statistic/deptStatistic/deptStatistic'), +// meta: { title: '部门效能监察', icon: '', permission: '/sdeptStatistics' } +// }, +// { +// path: '/seatStatisticsAll', +// name: 'seatStatisticsAll', +// component: () => import('@/views/statistic/seatStatistic/seatStatistic'), +// meta: { title: '坐席效能监察', icon: '', permission: '/seatStatistics' } +// } +// ] +// } ]