crc权限配置
parent
d509c8125c
commit
7420e26c53
|
@ -284,7 +284,7 @@ export default {
|
|||
this.$router.replace({ path: res[0].path });
|
||||
return;
|
||||
}
|
||||
if (this.hasPermi(["role:pm"])) {
|
||||
if (this.hasPermi(["role:pm",'role:crc'])) {
|
||||
this.$router.replace({ path: "/trials/trials-inspection" });
|
||||
} else if (this.hasPermi(["role:oa"])) {
|
||||
this.$router.replace({ path: "/system" });
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<!-- 工作台 -->
|
||||
<!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span>
|
||||
</el-menu-item> -->
|
||||
<el-menu-item v-if="hasPermi(['role:pm'])" index="1">
|
||||
<el-menu-item v-if="hasPermi(['role:pm','role:crc'])" index="1">
|
||||
<i class="el-icon-odometer" />
|
||||
<!-- 检查 -->
|
||||
<span slot="title">{{ $t("trials:menuTitle:inspection") }}</span>
|
||||
|
|
Loading…
Reference in New Issue