diff --git a/ui/src/views/system/user-manage/index.vue b/ui/src/views/system/user-manage/index.vue
index e92cfe180..99599a794 100644
--- a/ui/src/views/system/user-manage/index.vue
+++ b/ui/src/views/system/user-manage/index.vue
@@ -3,7 +3,12 @@
- {{
+ {{
$t('views.userManage.createUser')
}}
@@ -124,11 +129,13 @@
size="small"
v-model="row.is_active"
:before-change="() => changeState(row)"
+ v-if="hasPermission([RoleConst.ADMIN,PermissionConst.USER_EDIT],'OR')"
/>
-
+
@@ -139,6 +146,7 @@
text
@click.stop="editPwdUser(row)"
:title="$t('views.userManage.setting.updatePwd')"
+ v-if="hasPermission([RoleConst.ADMIN,PermissionConst.USER_EDIT],'OR')"
>
@@ -150,6 +158,7 @@
text
@click.stop="deleteUserManage(row)"
:title="$t('common.delete')"
+ v-if="hasPermission([RoleConst.ADMIN,PermissionConst.USER_DELETE],'OR')"
>
@@ -173,6 +182,8 @@ import {MsgSuccess, MsgConfirm} from '@/utils/message'
import {t} from '@/locales'
import {ValidCount, ValidType} from "@/enums/common.ts";
import useStore from "@/stores";
+import { PermissionConst, RoleConst } from '@/utils/permission/data'
+import {hasPermission} from '@/utils/permission/index'
const {user, common} = useStore()
const search_type = ref('username')