sadmin权限配置
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2024-05-22 09:40:04 +08:00
parent 6437c46fc2
commit be5a0efb45
3 changed files with 5 additions and 3 deletions

View File

@ -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" });

View File

@ -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']"

View File

@ -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>