diff --git a/src/router/index.js b/src/router/index.js index 058daef..47da502 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,6 +11,7 @@ import { systemRouters } from './modules/system' import { cooRouters } from './modules/coo' import { bmsRouters } from './modules/bms' +import { commonRouters } from './modules/common' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -85,182 +86,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - // { - // path: 'coorBusiness', - // component: Layout, - // name: 'CoorBusniess', - // alwaysShow: true, - // meta: { - // title: '协调业务管理', - // permission: ['/coorBusiness'] - // }, - // children: [ - // { - // path: '/work', - // component: () => import('@/views/coorBusiness/work/index'), - // name: 'Work', - // meta: { title: '待办任务', icon: '', permission: '/work' } - // }, - // { - // path: '/toRegister', - // component: () => import('@/views/coorBusiness/toRegister/index'), - // name: 'ToRegister', - // meta: { title: '待立案', icon: '', permission: '/toRegister' } - // }, - // { - // path: '/preRegister', - // component: () => import('@/views/coorBusiness/preRegister/index'), - // name: 'PreRegister', - // meta: { title: '预立案', icon: '', permission: '/preRegister' } - // }, - // { - // path: '/toDistribute', - // component: () => import('@/views/coorBusiness/toDistribute/index'), - // name: 'ToDistribute', - // meta: { title: '待派发', icon: '', permission: '/toDistribute' } - // }, - // { - // path: '/preDistribute', - // component: () => import('@/views/coorBusiness/preDistribute/index'), - // name: 'PreDistribute', - // meta: { title: '预派发', icon: '', permission: '/preDistribute' } - // }, - // { - // path: '/toAdjustInstruction', - // component: () => import('@/views/coorBusiness/toAdjustInstruction/index'), - // name: 'ToAdjustInstruction', - // meta: { title: '调整批示', icon: '', permission: '/toInstruction' } - // }, - // { - // path: '/toHandle', - // component: () => import('@/views/coorBusiness/toHandle/index'), - // name: 'ToHandle', - // meta: { title: '待处理', icon: '', permission: '/toHandle' } - // }, - // { - // path: '/toAdjust', - // component: () => import('@/views/coorBusiness/toAdjust/index'), - // name: 'ToAdjust', - // meta: { title: '待调整', icon: '', permission: '/toAdjust' } - // }, - // { - // path: '/toFinish', - // component: () => import('@/views/coorBusiness/toFinish/index'), - // name: 'ToFinish', - // meta: { title: '待结案', icon: '', permission: '/toFinish' } - // }, - // { - // path: '/handleAudit', - // component: () => import('@/views/coorBusiness/handleAudit/index'), - // name: 'HandleAudit', - // meta: { title: '处理审核', icon: '', permission: '/handleAudit' } - // }, - // { - // path: '/toDeptAdjustInstruction', - // component: () => import('@/views/coorBusiness/toDeptAdjustInstruction/index'), - // name: 'ToDeptAdjustInstruction', - // meta: { title: '部门调整批示', icon: '', permission: '/toDeptAdjustInstruction' } - // }, - // { - // path: '/delayed', - // component: () => import('@/views/coorBusiness/delayed/index'), - // name: 'Delayed', - // meta: { title: '延期待处理', icon: '', permission: '/delayed' } - // }, - // { - // path: '/postponed', - // component: () => import('@/views/coorBusiness/postponed/index'), - // name: 'Postponed', - // meta: { title: '缓办待处理', icon: '', permission: '/postponed' } - // }, - // { - // path: '/toCheck', - // component: () => import('@/views/coorBusiness/toCheck/index'), - // name: 'ToCheck', - // meta: { title: '待核查', icon: '', permission: '/toCheck' } - // }, - // { - // path: '/authorizationAudit', - // component: () => import('@/views/coorBusiness/authorizationAudit/index'), - // name: 'AuthorizationAudit', - // meta: { title: '授权审核', icon: '', permission: '/authorizationAudit' } - // }, - // { - // path: '/secIsPostpone', - // component: () => import('@/views/coorBusiness/secIsPostpone/index'), - // name: 'SecIsPostpone', - // meta: { title: '二级缓办待处理', icon: '', permission: '/secIsPostpone' } - // }, - // { - // path: '/deptAuthAudit', - // component: () => import('@/views/coorBusiness/deptAuthAudit/index'), - // name: 'DeptAuthAudit', - // meta: { title: '部门授权审核', icon: '', permission: '/toDeptAuthAudit' } - // }, - // { - // path: '/secIsDelay', - // component: () => import('@/views/coorBusiness/secIsDelay/index'), - // name: 'SecIsDelay', - // meta: { title: '二级延期待处理', icon: '', permission: '/secIsDelay' } - // }, - // { - // path: '/completed', - // component: () => import('@/views/coorBusiness/completed/index'), - // name: 'Completed', - // meta: { title: '已办案卷', icon: '', permission: '/completed' } - // } - // ] - // }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog'] } - // } - // ] - // }, + ...commonRouters, ...cooRouters, ...bmsRouters, ...systemRouters, diff --git a/src/router/index.js b/src/router/index.js index 058daef..47da502 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,6 +11,7 @@ import { systemRouters } from './modules/system' import { cooRouters } from './modules/coo' import { bmsRouters } from './modules/bms' +import { commonRouters } from './modules/common' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -85,182 +86,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - // { - // path: 'coorBusiness', - // component: Layout, - // name: 'CoorBusniess', - // alwaysShow: true, - // meta: { - // title: '协调业务管理', - // permission: ['/coorBusiness'] - // }, - // children: [ - // { - // path: '/work', - // component: () => import('@/views/coorBusiness/work/index'), - // name: 'Work', - // meta: { title: '待办任务', icon: '', permission: '/work' } - // }, - // { - // path: '/toRegister', - // component: () => import('@/views/coorBusiness/toRegister/index'), - // name: 'ToRegister', - // meta: { title: '待立案', icon: '', permission: '/toRegister' } - // }, - // { - // path: '/preRegister', - // component: () => import('@/views/coorBusiness/preRegister/index'), - // name: 'PreRegister', - // meta: { title: '预立案', icon: '', permission: '/preRegister' } - // }, - // { - // path: '/toDistribute', - // component: () => import('@/views/coorBusiness/toDistribute/index'), - // name: 'ToDistribute', - // meta: { title: '待派发', icon: '', permission: '/toDistribute' } - // }, - // { - // path: '/preDistribute', - // component: () => import('@/views/coorBusiness/preDistribute/index'), - // name: 'PreDistribute', - // meta: { title: '预派发', icon: '', permission: '/preDistribute' } - // }, - // { - // path: '/toAdjustInstruction', - // component: () => import('@/views/coorBusiness/toAdjustInstruction/index'), - // name: 'ToAdjustInstruction', - // meta: { title: '调整批示', icon: '', permission: '/toInstruction' } - // }, - // { - // path: '/toHandle', - // component: () => import('@/views/coorBusiness/toHandle/index'), - // name: 'ToHandle', - // meta: { title: '待处理', icon: '', permission: '/toHandle' } - // }, - // { - // path: '/toAdjust', - // component: () => import('@/views/coorBusiness/toAdjust/index'), - // name: 'ToAdjust', - // meta: { title: '待调整', icon: '', permission: '/toAdjust' } - // }, - // { - // path: '/toFinish', - // component: () => import('@/views/coorBusiness/toFinish/index'), - // name: 'ToFinish', - // meta: { title: '待结案', icon: '', permission: '/toFinish' } - // }, - // { - // path: '/handleAudit', - // component: () => import('@/views/coorBusiness/handleAudit/index'), - // name: 'HandleAudit', - // meta: { title: '处理审核', icon: '', permission: '/handleAudit' } - // }, - // { - // path: '/toDeptAdjustInstruction', - // component: () => import('@/views/coorBusiness/toDeptAdjustInstruction/index'), - // name: 'ToDeptAdjustInstruction', - // meta: { title: '部门调整批示', icon: '', permission: '/toDeptAdjustInstruction' } - // }, - // { - // path: '/delayed', - // component: () => import('@/views/coorBusiness/delayed/index'), - // name: 'Delayed', - // meta: { title: '延期待处理', icon: '', permission: '/delayed' } - // }, - // { - // path: '/postponed', - // component: () => import('@/views/coorBusiness/postponed/index'), - // name: 'Postponed', - // meta: { title: '缓办待处理', icon: '', permission: '/postponed' } - // }, - // { - // path: '/toCheck', - // component: () => import('@/views/coorBusiness/toCheck/index'), - // name: 'ToCheck', - // meta: { title: '待核查', icon: '', permission: '/toCheck' } - // }, - // { - // path: '/authorizationAudit', - // component: () => import('@/views/coorBusiness/authorizationAudit/index'), - // name: 'AuthorizationAudit', - // meta: { title: '授权审核', icon: '', permission: '/authorizationAudit' } - // }, - // { - // path: '/secIsPostpone', - // component: () => import('@/views/coorBusiness/secIsPostpone/index'), - // name: 'SecIsPostpone', - // meta: { title: '二级缓办待处理', icon: '', permission: '/secIsPostpone' } - // }, - // { - // path: '/deptAuthAudit', - // component: () => import('@/views/coorBusiness/deptAuthAudit/index'), - // name: 'DeptAuthAudit', - // meta: { title: '部门授权审核', icon: '', permission: '/toDeptAuthAudit' } - // }, - // { - // path: '/secIsDelay', - // component: () => import('@/views/coorBusiness/secIsDelay/index'), - // name: 'SecIsDelay', - // meta: { title: '二级延期待处理', icon: '', permission: '/secIsDelay' } - // }, - // { - // path: '/completed', - // component: () => import('@/views/coorBusiness/completed/index'), - // name: 'Completed', - // meta: { title: '已办案卷', icon: '', permission: '/completed' } - // } - // ] - // }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog'] } - // } - // ] - // }, + ...commonRouters, ...cooRouters, ...bmsRouters, ...systemRouters, diff --git a/src/router/modules/common.js b/src/router/modules/common.js new file mode 100644 index 0000000..d13d41c --- /dev/null +++ b/src/router/modules/common.js @@ -0,0 +1,23 @@ +/* Layout */ +import Layout from '../../views/layout/Layout' +export const commonRouters = [ + { + path: '/common', + component: Layout, + name: 'common', + hidden: true, + meta: { + title: '公共路由', + permission: '/common' + }, + children: [ + { + path: '/caseDetailRead/:id(\\d+)', + name: 'CaseDetailRead', + component: () => import('@/views/caseCommon/caseDetailRead'), + hidden: true, + meta: { title: '案卷详情', icon: 'icon-config', permission: ['/caseDetail'] } + } + ] + } +] diff --git a/src/router/index.js b/src/router/index.js index 058daef..47da502 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,6 +11,7 @@ import { systemRouters } from './modules/system' import { cooRouters } from './modules/coo' import { bmsRouters } from './modules/bms' +import { commonRouters } from './modules/common' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -85,182 +86,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - // { - // path: 'coorBusiness', - // component: Layout, - // name: 'CoorBusniess', - // alwaysShow: true, - // meta: { - // title: '协调业务管理', - // permission: ['/coorBusiness'] - // }, - // children: [ - // { - // path: '/work', - // component: () => import('@/views/coorBusiness/work/index'), - // name: 'Work', - // meta: { title: '待办任务', icon: '', permission: '/work' } - // }, - // { - // path: '/toRegister', - // component: () => import('@/views/coorBusiness/toRegister/index'), - // name: 'ToRegister', - // meta: { title: '待立案', icon: '', permission: '/toRegister' } - // }, - // { - // path: '/preRegister', - // component: () => import('@/views/coorBusiness/preRegister/index'), - // name: 'PreRegister', - // meta: { title: '预立案', icon: '', permission: '/preRegister' } - // }, - // { - // path: '/toDistribute', - // component: () => import('@/views/coorBusiness/toDistribute/index'), - // name: 'ToDistribute', - // meta: { title: '待派发', icon: '', permission: '/toDistribute' } - // }, - // { - // path: '/preDistribute', - // component: () => import('@/views/coorBusiness/preDistribute/index'), - // name: 'PreDistribute', - // meta: { title: '预派发', icon: '', permission: '/preDistribute' } - // }, - // { - // path: '/toAdjustInstruction', - // component: () => import('@/views/coorBusiness/toAdjustInstruction/index'), - // name: 'ToAdjustInstruction', - // meta: { title: '调整批示', icon: '', permission: '/toInstruction' } - // }, - // { - // path: '/toHandle', - // component: () => import('@/views/coorBusiness/toHandle/index'), - // name: 'ToHandle', - // meta: { title: '待处理', icon: '', permission: '/toHandle' } - // }, - // { - // path: '/toAdjust', - // component: () => import('@/views/coorBusiness/toAdjust/index'), - // name: 'ToAdjust', - // meta: { title: '待调整', icon: '', permission: '/toAdjust' } - // }, - // { - // path: '/toFinish', - // component: () => import('@/views/coorBusiness/toFinish/index'), - // name: 'ToFinish', - // meta: { title: '待结案', icon: '', permission: '/toFinish' } - // }, - // { - // path: '/handleAudit', - // component: () => import('@/views/coorBusiness/handleAudit/index'), - // name: 'HandleAudit', - // meta: { title: '处理审核', icon: '', permission: '/handleAudit' } - // }, - // { - // path: '/toDeptAdjustInstruction', - // component: () => import('@/views/coorBusiness/toDeptAdjustInstruction/index'), - // name: 'ToDeptAdjustInstruction', - // meta: { title: '部门调整批示', icon: '', permission: '/toDeptAdjustInstruction' } - // }, - // { - // path: '/delayed', - // component: () => import('@/views/coorBusiness/delayed/index'), - // name: 'Delayed', - // meta: { title: '延期待处理', icon: '', permission: '/delayed' } - // }, - // { - // path: '/postponed', - // component: () => import('@/views/coorBusiness/postponed/index'), - // name: 'Postponed', - // meta: { title: '缓办待处理', icon: '', permission: '/postponed' } - // }, - // { - // path: '/toCheck', - // component: () => import('@/views/coorBusiness/toCheck/index'), - // name: 'ToCheck', - // meta: { title: '待核查', icon: '', permission: '/toCheck' } - // }, - // { - // path: '/authorizationAudit', - // component: () => import('@/views/coorBusiness/authorizationAudit/index'), - // name: 'AuthorizationAudit', - // meta: { title: '授权审核', icon: '', permission: '/authorizationAudit' } - // }, - // { - // path: '/secIsPostpone', - // component: () => import('@/views/coorBusiness/secIsPostpone/index'), - // name: 'SecIsPostpone', - // meta: { title: '二级缓办待处理', icon: '', permission: '/secIsPostpone' } - // }, - // { - // path: '/deptAuthAudit', - // component: () => import('@/views/coorBusiness/deptAuthAudit/index'), - // name: 'DeptAuthAudit', - // meta: { title: '部门授权审核', icon: '', permission: '/toDeptAuthAudit' } - // }, - // { - // path: '/secIsDelay', - // component: () => import('@/views/coorBusiness/secIsDelay/index'), - // name: 'SecIsDelay', - // meta: { title: '二级延期待处理', icon: '', permission: '/secIsDelay' } - // }, - // { - // path: '/completed', - // component: () => import('@/views/coorBusiness/completed/index'), - // name: 'Completed', - // meta: { title: '已办案卷', icon: '', permission: '/completed' } - // } - // ] - // }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog'] } - // } - // ] - // }, + ...commonRouters, ...cooRouters, ...bmsRouters, ...systemRouters, diff --git a/src/router/modules/common.js b/src/router/modules/common.js new file mode 100644 index 0000000..d13d41c --- /dev/null +++ b/src/router/modules/common.js @@ -0,0 +1,23 @@ +/* Layout */ +import Layout from '../../views/layout/Layout' +export const commonRouters = [ + { + path: '/common', + component: Layout, + name: 'common', + hidden: true, + meta: { + title: '公共路由', + permission: '/common' + }, + children: [ + { + path: '/caseDetailRead/:id(\\d+)', + name: 'CaseDetailRead', + component: () => import('@/views/caseCommon/caseDetailRead'), + hidden: true, + meta: { title: '案卷详情', icon: 'icon-config', permission: ['/caseDetail'] } + } + ] + } +] diff --git a/src/views/caseCommon/caseDetailRead.vue b/src/views/caseCommon/caseDetailRead.vue new file mode 100644 index 0000000..33473eb --- /dev/null +++ b/src/views/caseCommon/caseDetailRead.vue @@ -0,0 +1,273 @@ + + + + + + diff --git a/src/router/index.js b/src/router/index.js index 058daef..47da502 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,6 +11,7 @@ import { systemRouters } from './modules/system' import { cooRouters } from './modules/coo' import { bmsRouters } from './modules/bms' +import { commonRouters } from './modules/common' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -85,182 +86,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ - // { - // path: 'coorBusiness', - // component: Layout, - // name: 'CoorBusniess', - // alwaysShow: true, - // meta: { - // title: '协调业务管理', - // permission: ['/coorBusiness'] - // }, - // children: [ - // { - // path: '/work', - // component: () => import('@/views/coorBusiness/work/index'), - // name: 'Work', - // meta: { title: '待办任务', icon: '', permission: '/work' } - // }, - // { - // path: '/toRegister', - // component: () => import('@/views/coorBusiness/toRegister/index'), - // name: 'ToRegister', - // meta: { title: '待立案', icon: '', permission: '/toRegister' } - // }, - // { - // path: '/preRegister', - // component: () => import('@/views/coorBusiness/preRegister/index'), - // name: 'PreRegister', - // meta: { title: '预立案', icon: '', permission: '/preRegister' } - // }, - // { - // path: '/toDistribute', - // component: () => import('@/views/coorBusiness/toDistribute/index'), - // name: 'ToDistribute', - // meta: { title: '待派发', icon: '', permission: '/toDistribute' } - // }, - // { - // path: '/preDistribute', - // component: () => import('@/views/coorBusiness/preDistribute/index'), - // name: 'PreDistribute', - // meta: { title: '预派发', icon: '', permission: '/preDistribute' } - // }, - // { - // path: '/toAdjustInstruction', - // component: () => import('@/views/coorBusiness/toAdjustInstruction/index'), - // name: 'ToAdjustInstruction', - // meta: { title: '调整批示', icon: '', permission: '/toInstruction' } - // }, - // { - // path: '/toHandle', - // component: () => import('@/views/coorBusiness/toHandle/index'), - // name: 'ToHandle', - // meta: { title: '待处理', icon: '', permission: '/toHandle' } - // }, - // { - // path: '/toAdjust', - // component: () => import('@/views/coorBusiness/toAdjust/index'), - // name: 'ToAdjust', - // meta: { title: '待调整', icon: '', permission: '/toAdjust' } - // }, - // { - // path: '/toFinish', - // component: () => import('@/views/coorBusiness/toFinish/index'), - // name: 'ToFinish', - // meta: { title: '待结案', icon: '', permission: '/toFinish' } - // }, - // { - // path: '/handleAudit', - // component: () => import('@/views/coorBusiness/handleAudit/index'), - // name: 'HandleAudit', - // meta: { title: '处理审核', icon: '', permission: '/handleAudit' } - // }, - // { - // path: '/toDeptAdjustInstruction', - // component: () => import('@/views/coorBusiness/toDeptAdjustInstruction/index'), - // name: 'ToDeptAdjustInstruction', - // meta: { title: '部门调整批示', icon: '', permission: '/toDeptAdjustInstruction' } - // }, - // { - // path: '/delayed', - // component: () => import('@/views/coorBusiness/delayed/index'), - // name: 'Delayed', - // meta: { title: '延期待处理', icon: '', permission: '/delayed' } - // }, - // { - // path: '/postponed', - // component: () => import('@/views/coorBusiness/postponed/index'), - // name: 'Postponed', - // meta: { title: '缓办待处理', icon: '', permission: '/postponed' } - // }, - // { - // path: '/toCheck', - // component: () => import('@/views/coorBusiness/toCheck/index'), - // name: 'ToCheck', - // meta: { title: '待核查', icon: '', permission: '/toCheck' } - // }, - // { - // path: '/authorizationAudit', - // component: () => import('@/views/coorBusiness/authorizationAudit/index'), - // name: 'AuthorizationAudit', - // meta: { title: '授权审核', icon: '', permission: '/authorizationAudit' } - // }, - // { - // path: '/secIsPostpone', - // component: () => import('@/views/coorBusiness/secIsPostpone/index'), - // name: 'SecIsPostpone', - // meta: { title: '二级缓办待处理', icon: '', permission: '/secIsPostpone' } - // }, - // { - // path: '/deptAuthAudit', - // component: () => import('@/views/coorBusiness/deptAuthAudit/index'), - // name: 'DeptAuthAudit', - // meta: { title: '部门授权审核', icon: '', permission: '/toDeptAuthAudit' } - // }, - // { - // path: '/secIsDelay', - // component: () => import('@/views/coorBusiness/secIsDelay/index'), - // name: 'SecIsDelay', - // meta: { title: '二级延期待处理', icon: '', permission: '/secIsDelay' } - // }, - // { - // path: '/completed', - // component: () => import('@/views/coorBusiness/completed/index'), - // name: 'Completed', - // meta: { title: '已办案卷', icon: '', permission: '/completed' } - // } - // ] - // }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog'] } - // } - // ] - // }, + ...commonRouters, ...cooRouters, ...bmsRouters, ...systemRouters, diff --git a/src/router/modules/common.js b/src/router/modules/common.js new file mode 100644 index 0000000..d13d41c --- /dev/null +++ b/src/router/modules/common.js @@ -0,0 +1,23 @@ +/* Layout */ +import Layout from '../../views/layout/Layout' +export const commonRouters = [ + { + path: '/common', + component: Layout, + name: 'common', + hidden: true, + meta: { + title: '公共路由', + permission: '/common' + }, + children: [ + { + path: '/caseDetailRead/:id(\\d+)', + name: 'CaseDetailRead', + component: () => import('@/views/caseCommon/caseDetailRead'), + hidden: true, + meta: { title: '案卷详情', icon: 'icon-config', permission: ['/caseDetail'] } + } + ] + } +] diff --git a/src/views/caseCommon/caseDetailRead.vue b/src/views/caseCommon/caseDetailRead.vue new file mode 100644 index 0000000..33473eb --- /dev/null +++ b/src/views/caseCommon/caseDetailRead.vue @@ -0,0 +1,273 @@ + + + + + + diff --git a/src/views/seo/seo.vue b/src/views/seo/seo.vue index 7f442c8..c58bc38 100644 --- a/src/views/seo/seo.vue +++ b/src/views/seo/seo.vue @@ -1,31 +1,31 @@ @@ -124,45 +124,46 @@ this.fetchData(listQuery) }, addDetail(tabPane, row) { - if (!this.existTab(tabPane)) { - console.log(tabPane, row) - this.editableTabs.push(tabPane) - this.editableTabsValue = tabPane.name - this.props[tabPane.index] = row - } else { - this.editableTabsValue = tabPane.name - } + // if (!this.existTab(tabPane)) { + // console.log(tabPane, row) + // this.editableTabs.push(tabPane) + // this.editableTabsValue = tabPane.name + // this.props[tabPane.index] = row + // } else { + // this.editableTabsValue = tabPane.name + // } + this.$router.push({ path: '/caseDetailRead/' + row.id }) }, submitProcess(caseid) { - this.removeTab('case' + caseid) + // this.removeTab('case' + caseid) this.fetchData() - }, - existTab(tabPane) { - const tab = _.find(this.editableTabs, ['index', tabPane.index]) - return tab - }, - removeTab(targetName) { - console.log('removeTab', targetName) - const tabs = this.editableTabs - let activeName = this.editableTabsValue - if (activeName === targetName) { - tabs.forEach((tab, index) => { - if (tab.name === targetName) { - const nextTab = tabs[index + 1] || tabs[index - 1] - if (nextTab) { - activeName = nextTab.name - } - } - }) - } - - this.editableTabsValue = activeName - this.editableTabs = tabs.filter(tab => tab.name !== targetName) - - if (this.editableTabs.length === 0) { - this.editableTabsValue = 'listTab' - } } + // existTab(tabPane) { + // const tab = _.find(this.editableTabs, ['index', tabPane.index]) + // return tab + // }, + // removeTab(targetName) { + // console.log('removeTab', targetName) + // const tabs = this.editableTabs + // let activeName = this.editableTabsValue + // if (activeName === targetName) { + // tabs.forEach((tab, index) => { + // if (tab.name === targetName) { + // const nextTab = tabs[index + 1] || tabs[index - 1] + // if (nextTab) { + // activeName = nextTab.name + // } + // } + // }) + // } + // + // this.editableTabsValue = activeName + // this.editableTabs = tabs.filter(tab => tab.name !== targetName) + // + // if (this.editableTabs.length === 0) { + // this.editableTabsValue = 'listTab' + // } + // } } }