From 2ff0befdd4e4a5ec062d0b584b40b900c2e623b2 Mon Sep 17 00:00:00 2001 From: leipu <200684632@qq.com> Date: Wed, 19 Mar 2025 10:38:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0PH=E5=87=BD=E6=95=B0,?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E5=BD=93=E5=89=8D=E6=8C=89=E9=92=AE=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pms/user/index.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/pms/user/index.vue b/src/views/pms/user/index.vue index 2f99afc..f1e7066 100644 --- a/src/views/pms/user/index.vue +++ b/src/views/pms/user/index.vue @@ -219,7 +219,7 @@ const columns = [ { title: '操作', key: 'actions', - width: 320, + width: 380, align: 'right', fixed: 'right', hideInExcel: true, @@ -233,11 +233,25 @@ const columns = [ secondary: true, onClick: () => handleOpenRolesSet(row), }, + { + default: () => '超管专属', + icon: () => h('i', { class: 'i-carbon:user-role text-14' }), + }, + 'superAdmin', + ), + h( + NButton, + { + size: 'small', + type: 'primary', + class: 'ml-12px', + secondary: true, + onClick: () => handleOpenRolesSet(row), + }, { default: () => '分配角色', icon: () => h('i', { class: 'i-carbon:user-role text-14' }), }, - 'setRole', ), h( NButton,