diff --git a/src/router/index.js b/src/router/index.js index 573a555..0cb0172 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -15,6 +15,7 @@ import { monitorRouters } from './modules/statistic' import { qualityCheckRouters } from './modules/qualityCheck' import { soundsRouters } from './modules/sounds' +import { mobileRouters } from './modules/mobile' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -82,5 +83,6 @@ ...qualityCheckRouters, ...monitorRouters, ...systemRouters, + ...mobileRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/index.js b/src/router/index.js index 573a555..0cb0172 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -15,6 +15,7 @@ import { monitorRouters } from './modules/statistic' import { qualityCheckRouters } from './modules/qualityCheck' import { soundsRouters } from './modules/sounds' +import { mobileRouters } from './modules/mobile' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -82,5 +83,6 @@ ...qualityCheckRouters, ...monitorRouters, ...systemRouters, + ...mobileRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/mobile.js b/src/router/modules/mobile.js new file mode 100644 index 0000000..8f0f58e --- /dev/null +++ b/src/router/modules/mobile.js @@ -0,0 +1,22 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const mobileRouters = [{ + path: '/mobile', + component: Layout, + redirect: '/mobileList', + name: 'Mobile', + alwaysShow: true, + meta: { + title: '通信录管理', + icon: 'icon-config', // 图标 + permission: '/mobileList' + }, + children: [ + { + path: '/mobileList', + name: 'MobileList', + component: () => import('@/views/mobile/mobileList'), + meta: { title: '通信录查询', icon: '', permission: '/mobile/list' } + } + ] +}] diff --git a/src/router/index.js b/src/router/index.js index 573a555..0cb0172 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -15,6 +15,7 @@ import { monitorRouters } from './modules/statistic' import { qualityCheckRouters } from './modules/qualityCheck' import { soundsRouters } from './modules/sounds' +import { mobileRouters } from './modules/mobile' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -82,5 +83,6 @@ ...qualityCheckRouters, ...monitorRouters, ...systemRouters, + ...mobileRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/mobile.js b/src/router/modules/mobile.js new file mode 100644 index 0000000..8f0f58e --- /dev/null +++ b/src/router/modules/mobile.js @@ -0,0 +1,22 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const mobileRouters = [{ + path: '/mobile', + component: Layout, + redirect: '/mobileList', + name: 'Mobile', + alwaysShow: true, + meta: { + title: '通信录管理', + icon: 'icon-config', // 图标 + permission: '/mobileList' + }, + children: [ + { + path: '/mobileList', + name: 'MobileList', + component: () => import('@/views/mobile/mobileList'), + meta: { title: '通信录查询', icon: '', permission: '/mobile/list' } + } + ] +}] diff --git a/src/views/mobile/mobileList.vue b/src/views/mobile/mobileList.vue new file mode 100644 index 0000000..f833628 --- /dev/null +++ b/src/views/mobile/mobileList.vue @@ -0,0 +1,208 @@ + + + + +