oa变更为sa
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
947c75a8ec
commit
d04b1b5e6f
|
|
@ -123,7 +123,7 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (
|
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.replaceState(null, null, '/trials/trials-inspection')
|
||||||
history.go(0)
|
history.go(0)
|
||||||
|
|
|
||||||
|
|
@ -221,11 +221,11 @@ export const constantRoutes = [
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: () => import('@/views/trials/trials-panel/setting/reading-unit/preview')
|
component: () => import('@/views/trials/trials-panel/setting/reading-unit/preview')
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
path: '/activate',
|
// path: '/activate',
|
||||||
component: () => import('@/views/trials/trials-list/components/activate-page.vue'),
|
// component: () => import('@/views/trials/trials-list/components/activate-page.vue'),
|
||||||
hidden: true
|
// hidden: true
|
||||||
},
|
// },
|
||||||
// {
|
// {
|
||||||
// path: '/audit',
|
// path: '/audit',
|
||||||
// name: 'audit',
|
// name: 'audit',
|
||||||
|
|
|
||||||
|
|
@ -418,7 +418,7 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (
|
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.replaceState(null, null, '/trials/trials-inspection')
|
||||||
history.go(0)
|
history.go(0)
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<el-input v-model.trim="hospital.HospitalName" :disabled="disabled" clearable />
|
<el-input v-model.trim="hospital.HospitalName" :disabled="disabled" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('system:hospital:code')" prop="HospitalCode">
|
<el-form-item :label="$t('system:hospital:code')" prop="HospitalCode">
|
||||||
<el-input v-model.trim="hospital.HospitalCode" :disabled="disabled || hasPermi(['role:oa'])"
|
<el-input v-model.trim="hospital.HospitalCode" :disabled="disabled || hasPermi(['role:sa'])"
|
||||||
clearable />
|
clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
<el-input v-model="hospital.Phone" :disabled="disabled" clearable />
|
<el-input v-model="hospital.Phone" :disabled="disabled" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('system:hospital:trialKeepCount')" prop="TrialKeepCount">
|
<el-form-item :label="$t('system:hospital:trialKeepCount')" prop="TrialKeepCount">
|
||||||
<el-input v-model="hospital.TrialKeepCount" :disabled="disabled || hasPermi(['role:oa'])"
|
<el-input v-model="hospital.TrialKeepCount" :disabled="disabled || hasPermi(['role:sa'])"
|
||||||
type="number" clearable />
|
type="number" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('system:hospital:isCanConnectInternet')"
|
<el-form-item :label="$t('system:hospital:isCanConnectInternet')"
|
||||||
|
|
|
||||||
|
|
@ -460,7 +460,7 @@ export default {
|
||||||
if (this.hasPermi(["role:admin"])) {
|
if (this.hasPermi(["role:admin"])) {
|
||||||
arr = [1];
|
arr = [1];
|
||||||
}
|
}
|
||||||
if (this.hasPermi(["role:oa"])) {
|
if (this.hasPermi(["role:sa"])) {
|
||||||
arr = [1, 2];
|
arr = [1, 2];
|
||||||
}
|
}
|
||||||
if (this.hasPermi(["role:pm"])) {
|
if (this.hasPermi(["role:pm"])) {
|
||||||
|
|
|
||||||
|
|
@ -260,7 +260,7 @@ export default {
|
||||||
getUserTypeList() {
|
getUserTypeList() {
|
||||||
getUserTypeListByUserType(0).then((res) => {
|
getUserTypeListByUserType(0).then((res) => {
|
||||||
let arr = [2, 4, 5, 8, 9, 12, 14, 35];
|
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];
|
arr = [4, 5, 8, 9, 12, 14, 35];
|
||||||
}
|
}
|
||||||
if (this.hasPermi(["role:ga"])) {
|
if (this.hasPermi(["role:ga"])) {
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
checkRole(UserTypeEnum) {
|
checkRole(UserTypeEnum) {
|
||||||
if (this.hasPermi(['role:ga']) && [14, 2].includes(UserTypeEnum)) return false
|
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
|
return true
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
|
|
||||||
|
|
@ -594,7 +594,7 @@ export default {
|
||||||
if (this.hasPermi(["role:admin"])) {
|
if (this.hasPermi(["role:admin"])) {
|
||||||
arr = [1];
|
arr = [1];
|
||||||
}
|
}
|
||||||
if (this.hasPermi(["role:oa"])) {
|
if (this.hasPermi(["role:sa"])) {
|
||||||
arr = [1, 2];
|
arr = [1, 2];
|
||||||
}
|
}
|
||||||
if (this.hasPermi(["role:pm"])) {
|
if (this.hasPermi(["role:pm"])) {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<!-- 工作台 -->
|
<!-- 工作台 -->
|
||||||
<!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span>
|
<!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span>
|
||||||
</el-menu-item> -->
|
</el-menu-item> -->
|
||||||
<el-menu-item v-if="hasPermi(['role:pm', 'role:oa', 'role:admin', 'role:dev', 'role:ga'])" index="1">
|
<el-menu-item v-if="hasPermi(['role:pm', 'role:sa', 'role:admin', 'role:dev', 'role:ga'])" index="1">
|
||||||
<i class="el-icon-odometer" />
|
<i class="el-icon-odometer" />
|
||||||
<!-- 检查 -->
|
<!-- 检查 -->
|
||||||
<span slot="title">{{ $t('trials:menuTitle:inspection') }}</span>
|
<span slot="title">{{ $t('trials:menuTitle:inspection') }}</span>
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
$t('trials:trials-myinfo:title:accountInfo')
|
$t('trials:trials-myinfo:title:accountInfo')
|
||||||
}}</el-menu-item>
|
}}</el-menu-item>
|
||||||
<!-- 管理后台 -->
|
<!-- 管理后台 -->
|
||||||
<el-menu-item v-if="hasPermi(['role:dev', 'role:oa', 'role:admin', 'role:ga'])" index="4-4">{{
|
<el-menu-item v-if="hasPermi(['role:dev', 'role:sa', 'role:admin', 'role:ga'])" index="4-4">{{
|
||||||
$t('trials:trials-myinfo:title:system') }}</el-menu-item>
|
$t('trials:trials-myinfo:title:system') }}</el-menu-item>
|
||||||
<!-- 切换角色 -->
|
<!-- 切换角色 -->
|
||||||
<el-menu-item index="4-5" v-if="hasRole">{{
|
<el-menu-item index="4-5" v-if="hasRole">{{
|
||||||
|
|
@ -176,7 +176,7 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (
|
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.replaceState(null, null, '/trials/trials-inspection')
|
||||||
history.go(0)
|
history.go(0)
|
||||||
|
|
|
||||||
|
|
@ -578,7 +578,7 @@ export default {
|
||||||
if (this.hasPermi(["role:admin"])) {
|
if (this.hasPermi(["role:admin"])) {
|
||||||
arr = [1, 35];
|
arr = [1, 35];
|
||||||
}
|
}
|
||||||
if (this.hasPermi(["role:oa"])) {
|
if (this.hasPermi(["role:sa"])) {
|
||||||
arr = [1, 2, 35];
|
arr = [1, 2, 35];
|
||||||
}
|
}
|
||||||
if (this.hasPermi(["role:pm"])) {
|
if (this.hasPermi(["role:pm"])) {
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,7 @@ export default {
|
||||||
if (this.hasPermi(['role:admin'])) {
|
if (this.hasPermi(['role:admin'])) {
|
||||||
arr = [1]
|
arr = [1]
|
||||||
}
|
}
|
||||||
if (this.hasPermi(['role:oa'])) {
|
if (this.hasPermi(['role:sa'])) {
|
||||||
arr = [1, 2]
|
arr = [1, 2]
|
||||||
}
|
}
|
||||||
if (this.hasPermi(['role:pm'])) {
|
if (this.hasPermi(['role:pm'])) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue