diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..127395c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,8 @@ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' import { exampleRouters } from './modules/example' +import { soundsRouters } from './modules/sounds' +import { caseRouters } from './modules/case' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -70,7 +72,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...caseRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..127395c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,8 @@ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' import { exampleRouters } from './modules/example' +import { soundsRouters } from './modules/sounds' +import { caseRouters } from './modules/case' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -70,7 +72,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...caseRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/case.js b/src/router/modules/case.js new file mode 100644 index 0000000..b75de56 --- /dev/null +++ b/src/router/modules/case.js @@ -0,0 +1,41 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const caseRouters = [{ + path: 'case', + component: Layout, + redirect: '/waitForCreate', + name: 'Case', + alwaysShow: true, + meta: { + title: '事件管理', + icon: 'icon-config' // 图标 + }, + children: [ + { + path: '/waitForCreate', + name: 'WaitForCreate', + component: () => import('@/views/caseManage/waitForCreate'), + meta: { title: '待录事件', icon: '' } + }, + { + path: '/waitForHandle', + name: 'WaitForHandle', + component: () => import('@/views/caseManage/waitForHandle'), + meta: { title: '待办事件', icon: '' } + }, + { + path: '/createCase', + name: 'CreateCase', + hidden: true, + component: () => import('@/views/caseManage/createCase'), + meta: { title: '新建事件', icon: '' } + }, + { + path: '/caseDetail/:id', + name: 'caseDetail', + hidden: true, + component: () => import('@/views/caseManage/caseDetail'), + meta: { title: '事件详情', icon: '' } + } + ] +}] diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..127395c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,8 @@ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' import { exampleRouters } from './modules/example' +import { soundsRouters } from './modules/sounds' +import { caseRouters } from './modules/case' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -70,7 +72,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...caseRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/case.js b/src/router/modules/case.js new file mode 100644 index 0000000..b75de56 --- /dev/null +++ b/src/router/modules/case.js @@ -0,0 +1,41 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const caseRouters = [{ + path: 'case', + component: Layout, + redirect: '/waitForCreate', + name: 'Case', + alwaysShow: true, + meta: { + title: '事件管理', + icon: 'icon-config' // 图标 + }, + children: [ + { + path: '/waitForCreate', + name: 'WaitForCreate', + component: () => import('@/views/caseManage/waitForCreate'), + meta: { title: '待录事件', icon: '' } + }, + { + path: '/waitForHandle', + name: 'WaitForHandle', + component: () => import('@/views/caseManage/waitForHandle'), + meta: { title: '待办事件', icon: '' } + }, + { + path: '/createCase', + name: 'CreateCase', + hidden: true, + component: () => import('@/views/caseManage/createCase'), + meta: { title: '新建事件', icon: '' } + }, + { + path: '/caseDetail/:id', + name: 'caseDetail', + hidden: true, + component: () => import('@/views/caseManage/caseDetail'), + meta: { title: '事件详情', icon: '' } + } + ] +}] diff --git a/src/router/modules/sounds.js b/src/router/modules/sounds.js new file mode 100644 index 0000000..e90c1a1 --- /dev/null +++ b/src/router/modules/sounds.js @@ -0,0 +1,21 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const soundsRouters = [{ + path: 'sounds', + component: Layout, + redirect: '/waitForCreate', + name: 'Sounds', + // alwaysShow: true, + meta: { + title: '录音管理', + icon: 'icon-config' // 图标 + }, + children: [ + // { + // path: '/waitForCreate', + // name: 'WaitForCreate', + // component: () => import('@/views/soundsManage/waitForCreate'), + // meta: { title: '待录事件', icon: '' } + // } + ] +}] diff --git a/src/router/index.js b/src/router/index.js index 44cba3b..127395c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,8 @@ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' import { exampleRouters } from './modules/example' +import { soundsRouters } from './modules/sounds' +import { caseRouters } from './modules/case' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -70,7 +72,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - ...exampleRouters, + ...caseRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/router/modules/case.js b/src/router/modules/case.js new file mode 100644 index 0000000..b75de56 --- /dev/null +++ b/src/router/modules/case.js @@ -0,0 +1,41 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const caseRouters = [{ + path: 'case', + component: Layout, + redirect: '/waitForCreate', + name: 'Case', + alwaysShow: true, + meta: { + title: '事件管理', + icon: 'icon-config' // 图标 + }, + children: [ + { + path: '/waitForCreate', + name: 'WaitForCreate', + component: () => import('@/views/caseManage/waitForCreate'), + meta: { title: '待录事件', icon: '' } + }, + { + path: '/waitForHandle', + name: 'WaitForHandle', + component: () => import('@/views/caseManage/waitForHandle'), + meta: { title: '待办事件', icon: '' } + }, + { + path: '/createCase', + name: 'CreateCase', + hidden: true, + component: () => import('@/views/caseManage/createCase'), + meta: { title: '新建事件', icon: '' } + }, + { + path: '/caseDetail/:id', + name: 'caseDetail', + hidden: true, + component: () => import('@/views/caseManage/caseDetail'), + meta: { title: '事件详情', icon: '' } + } + ] +}] diff --git a/src/router/modules/sounds.js b/src/router/modules/sounds.js new file mode 100644 index 0000000..e90c1a1 --- /dev/null +++ b/src/router/modules/sounds.js @@ -0,0 +1,21 @@ +/* Layout */ +import Layout from '@/layout/Layout' +export const soundsRouters = [{ + path: 'sounds', + component: Layout, + redirect: '/waitForCreate', + name: 'Sounds', + // alwaysShow: true, + meta: { + title: '录音管理', + icon: 'icon-config' // 图标 + }, + children: [ + // { + // path: '/waitForCreate', + // name: 'WaitForCreate', + // component: () => import('@/views/soundsManage/waitForCreate'), + // meta: { title: '待录事件', icon: '' } + // } + ] +}] diff --git a/src/views/caseManage/caseDetail.vue b/src/views/caseManage/caseDetail.vue new file mode 100644 index 0000000..9a53658 --- /dev/null +++ b/src/views/caseManage/caseDetail.vue @@ -0,0 +1,12 @@ + +