sadmin权限配置
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6437c46fc2
commit
be5a0efb45
|
@ -284,7 +284,9 @@ export default {
|
|||
this.$router.replace({ path: res[0].path });
|
||||
return;
|
||||
}
|
||||
if (this.hasPermi(["role:pm",'role:oa','role:admin'])) {
|
||||
if (
|
||||
this.hasPermi(["role:pm", "role:oa", "role:admin", "role:dev"])
|
||||
) {
|
||||
this.$router.replace({ path: "/trials/trials-inspection" });
|
||||
} else if (this.hasPermi(["role:oa"])) {
|
||||
this.$router.replace({ path: "/system" });
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Description" prop="Description" min-width="220" show-overflow-tooltip />
|
||||
<el-table-column label="Action" width="280">
|
||||
<el-table-column label="Action" width="280" v-if="hasPermi(['system:role:edit','system:role:delete'])">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-hasPermi="['system:role:edit']"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<!-- 工作台 -->
|
||||
<!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span>
|
||||
</el-menu-item> -->
|
||||
<el-menu-item v-if="hasPermi(['role:pm','role:oa','role:admin'])" index="1">
|
||||
<el-menu-item v-if="hasPermi(['role:pm','role:oa','role:admin','role:dev'])" index="1">
|
||||
<i class="el-icon-odometer" />
|
||||
<!-- 检查 -->
|
||||
<span slot="title">{{ $t("trials:menuTitle:inspection") }}</span>
|
||||
|
|
Loading…
Reference in New Issue