diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 087a987..358068d 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -123,7 +123,7 @@ export default { return } if ( - this.hasPermi(['role:pm', 'role:oa', 'role:admin', 'role:dev', 'role:ga']) + this.hasPermi(['role:pm', 'role:sa', 'role:admin', 'role:dev', 'role:ga']) ) { history.replaceState(null, null, '/trials/trials-inspection') history.go(0) diff --git a/src/router/index.js b/src/router/index.js index ebcb086..f2d54e8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -221,11 +221,11 @@ export const constantRoutes = [ hidden: true, component: () => import('@/views/trials/trials-panel/setting/reading-unit/preview') }, - { - path: '/activate', - component: () => import('@/views/trials/trials-list/components/activate-page.vue'), - hidden: true - }, + // { + // path: '/activate', + // component: () => import('@/views/trials/trials-list/components/activate-page.vue'), + // hidden: true + // }, // { // path: '/audit', // name: 'audit', diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 8ece88e..1b1a054 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -418,7 +418,7 @@ export default { return } if ( - this.hasPermi(['role:pm', 'role:oa', 'role:admin', 'role:dev', 'role:ga']) + this.hasPermi(['role:pm', 'role:sa', 'role:admin', 'role:dev', 'role:ga']) ) { history.replaceState(null, null, '/trials/trials-inspection') history.go(0) diff --git a/src/views/system/hospital/components/form.vue b/src/views/system/hospital/components/form.vue index 675cb14..1d9a1f6 100644 --- a/src/views/system/hospital/components/form.vue +++ b/src/views/system/hospital/components/form.vue @@ -9,7 +9,7 @@ - @@ -33,7 +33,7 @@ - { let arr = [2, 4, 5, 8, 9, 12, 14, 35]; - if (this.hasPermi(["role:oa"])) { + if (this.hasPermi(["role:sa"])) { arr = [4, 5, 8, 9, 12, 14, 35]; } if (this.hasPermi(["role:ga"])) { diff --git a/src/views/system/user/components/roleList.vue b/src/views/system/user/components/roleList.vue index 51e1bd4..5471840 100644 --- a/src/views/system/user/components/roleList.vue +++ b/src/views/system/user/components/roleList.vue @@ -112,7 +112,7 @@ export default { methods: { checkRole(UserTypeEnum) { if (this.hasPermi(['role:ga']) && [14, 2].includes(UserTypeEnum)) return false - if (this.hasPermi(['role:oa']) && [2].includes(UserTypeEnum)) return false + if (this.hasPermi(['role:sa']) && [2].includes(UserTypeEnum)) return false return true }, cancel() { diff --git a/src/views/system/user/list/index.vue b/src/views/system/user/list/index.vue index bfa37ae..21cf5d4 100644 --- a/src/views/system/user/list/index.vue +++ b/src/views/system/user/list/index.vue @@ -594,7 +594,7 @@ export default { if (this.hasPermi(["role:admin"])) { arr = [1]; } - if (this.hasPermi(["role:oa"])) { + if (this.hasPermi(["role:sa"])) { arr = [1, 2]; } if (this.hasPermi(["role:pm"])) { diff --git a/src/views/trials/trials-layout/components/trialsNavbar.vue b/src/views/trials/trials-layout/components/trialsNavbar.vue index b62598d..6858869 100644 --- a/src/views/trials/trials-layout/components/trialsNavbar.vue +++ b/src/views/trials/trials-layout/components/trialsNavbar.vue @@ -22,7 +22,7 @@ - + {{ $t('trials:menuTitle:inspection') }} @@ -61,7 +61,7 @@ $t('trials:trials-myinfo:title:accountInfo') }} - {{ + {{ $t('trials:trials-myinfo:title:system') }} {{ @@ -176,7 +176,7 @@ export default { return } if ( - this.hasPermi(['role:pm', 'role:oa', 'role:admin', 'role:dev', 'role:ga']) + this.hasPermi(['role:pm', 'role:sa', 'role:admin', 'role:dev', 'role:ga']) ) { history.replaceState(null, null, '/trials/trials-inspection') history.go(0) diff --git a/src/views/trials/trials-panel/setting/personnel-manage/components/staff.vue b/src/views/trials/trials-panel/setting/personnel-manage/components/staff.vue index 90a92dc..93c5107 100644 --- a/src/views/trials/trials-panel/setting/personnel-manage/components/staff.vue +++ b/src/views/trials/trials-panel/setting/personnel-manage/components/staff.vue @@ -578,7 +578,7 @@ export default { if (this.hasPermi(["role:admin"])) { arr = [1, 35]; } - if (this.hasPermi(["role:oa"])) { + if (this.hasPermi(["role:sa"])) { arr = [1, 2, 35]; } if (this.hasPermi(["role:pm"])) { diff --git a/src/views/trials/trials-panel/trial-summary/download-record/index.vue b/src/views/trials/trials-panel/trial-summary/download-record/index.vue index 2fece3a..269bfdc 100644 --- a/src/views/trials/trials-panel/trial-summary/download-record/index.vue +++ b/src/views/trials/trials-panel/trial-summary/download-record/index.vue @@ -267,7 +267,7 @@ export default { if (this.hasPermi(['role:admin'])) { arr = [1] } - if (this.hasPermi(['role:oa'])) { + if (this.hasPermi(['role:sa'])) { arr = [1, 2] } if (this.hasPermi(['role:pm'])) {