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,