diff --git a/src/permission.js b/src/permission.js index eaa108d9e..1c44bf217 100644 --- a/src/permission.js +++ b/src/permission.js @@ -16,7 +16,7 @@ function hasPermission(roles, permissionRoles) { const whiteList = ['/login', '/design/login', '/xty/login', '/designxty/login', '/gzb/login', '/designgzb/login', '/jlmap3d/devicetrain', '/hyd/login']; // 不重定向白名单 -const designPageRegex = [/^\/design/, /^\/scriptDisplay/, /^\/publish/, /^\/orderauthor/, /^\/system/, /^\/display\/record/, /^\/display\/manage/, /^\/apply/, /^\/plan/, /^\/display\/plan/]; +const designPageRegex = [/^\/design/, /^\/scriptDisplay/, /^\/publish/, /^\/orderauthor/, /^\/system/, /^\/iscs/, /^\/display\/record/, /^\/display\/manage/, /^\/apply/, /^\/plan/, /^\/display\/plan/]; function isDesignPage(toRoutePath) { return designPageRegex.some(item => { @@ -34,7 +34,7 @@ const loginHydPage = whiteList[7]; const loginDesignPageMenu = { design: loginDesignPage, designxty: loginDesignXtyPage, - designgzb: loginDesignGzbPage, + designgzb: loginDesignGzbPage }; const loginPageMenu = { login: loginPage, diff --git a/src/router/index.js b/src/router/index.js index 6247a7f89..c2079e5ee 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -785,27 +785,27 @@ export const asyncRouter = [ i18n: 'router.ibpDraw' } }, - { - path:'iscs/design', - component: IscsDesign, - meta: { - i18n: 'router.iscsDraw' - }, - children: [ - { - path: 'edit/:id/:mode', - component: IscsDraw, - hidden: true - } - ] - }, - { - path: 'iscs/system', - component: IscsSystem, - meta: { - i18n: 'router.iscsSystem' - } - }, + // { + // path:'iscs/design', + // component: IscsDesign, + // meta: { + // i18n: 'router.iscsDraw' + // }, + // children: [ + // { + // path: 'edit/:id/:mode', + // component: IscsDraw, + // hidden: true + // } + // ] + // }, + // { + // path: 'iscs/system', + // component: IscsSystem, + // meta: { + // i18n: 'router.iscsSystem' + // } + // }, { path: 'dictionary', component: Dictionary, @@ -970,6 +970,37 @@ export const asyncRouter = [ ] } ] + }, + { // iscs系统 + path: '/iscs', + component: Layout, + meta: { + i18n: 'router.iscsSystem', + roles: [admin] + }, + children: [ + { + path:'design', + component: IscsDesign, + meta: { + i18n: 'router.iscsDraw' + }, + children: [ + { + path: 'edit/:id/:mode', + component: IscsDraw, + hidden: true + } + ] + }, + { + path: 'system', + component: IscsSystem, + meta: { + i18n: 'router.iscsSystem' + } + } + ] } ]; diff --git a/src/views/system/iscsDesign/demonList.vue b/src/views/system/iscsDesign/demonList.vue index 20486c838..42159fbde 100644 --- a/src/views/system/iscsDesign/demonList.vue +++ b/src/views/system/iscsDesign/demonList.vue @@ -131,7 +131,7 @@ export default { case 'system' : break; case 'interface': - this.$router.push({ path: `/system/iscs/design/edit/${obj.id}/${obj.mode}` }); + this.$router.push({ path: `/iscs/design/edit/${obj.id}/${obj.mode}` }); break; } }, diff --git a/src/views/system/iscsSystem/index.vue b/src/views/system/iscsSystem/index.vue index a1182c110..9b5bd1239 100644 --- a/src/views/system/iscsSystem/index.vue +++ b/src/views/system/iscsSystem/index.vue @@ -2,7 +2,8 @@
- + +
@@ -11,13 +12,13 @@