fix: 禁止admin修改菜单分配
This commit is contained in:
@@ -940,6 +940,7 @@ onMounted(() => {
|
|||||||
v-if="
|
v-if="
|
||||||
dict.sysNormalDisable.length > 0 &&
|
dict.sysNormalDisable.length > 0 &&
|
||||||
record.roleId !== '1' &&
|
record.roleId !== '1' &&
|
||||||
|
record.roleKey !== 'admin' &&
|
||||||
hasPermissions(['system:role:edit'])
|
hasPermissions(['system:role:edit'])
|
||||||
"
|
"
|
||||||
v-model:checked="record.status"
|
v-model:checked="record.status"
|
||||||
@@ -968,7 +969,9 @@ onMounted(() => {
|
|||||||
<template #icon><ProfileOutlined /></template>
|
<template #icon><ProfileOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip v-if="record.roleId !== '1'">
|
<a-tooltip
|
||||||
|
v-if="record.roleId !== '1' && record.roleKey !== 'admin'"
|
||||||
|
>
|
||||||
<template #title>{{ t('common.editText') }}</template>
|
<template #title>{{ t('common.editText') }}</template>
|
||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@@ -978,7 +981,9 @@ onMounted(() => {
|
|||||||
<template #icon><FormOutlined /></template>
|
<template #icon><FormOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip v-if="record.roleId !== '1'">
|
<a-tooltip
|
||||||
|
v-if="record.roleId !== '1' && record.roleKey !== 'admin'"
|
||||||
|
>
|
||||||
<template #title>{{ t('common.deleteText') }}</template>
|
<template #title>{{ t('common.deleteText') }}</template>
|
||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@@ -1000,7 +1005,7 @@ onMounted(() => {
|
|||||||
<template #icon><SecurityScanOutlined /></template>
|
<template #icon><SecurityScanOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip placement="topRight" v-if="record.roleId !== '1'">
|
<a-tooltip placement="topRight" v-if="false">
|
||||||
<template #title>{{
|
<template #title>{{
|
||||||
t('views.system.role.distributeUser')
|
t('views.system.role.distributeUser')
|
||||||
}}</template>
|
}}</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user