Skip to content

Commit e8d29e2

Browse files
committed
style: role member table
1 parent 8e89658 commit e8d29e2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ui/src/views/system/role/component/Member.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
@click="handleAdd"
77
v-hasPermission="
88
new ComplexPermission(
9-
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE],
10-
[PermissionConst.WORKSPACE_ROLE_ADD_MEMBER, PermissionConst.ROLE_ADD_MEMBER],
11-
[],
12-
'OR',
9+
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE],
10+
[PermissionConst.WORKSPACE_ROLE_ADD_MEMBER, PermissionConst.ROLE_ADD_MEMBER],
11+
[],
12+
'OR',
1313
)"
1414
>
1515
{{ $t('views.role.member.add') }}
@@ -29,7 +29,7 @@
2929
</div>
3030
</div>
3131
<app-table
32-
class="member-table mt-16"
32+
:class="`${props.currentRole?.type !== RoleTypeEnum.ADMIN ? 'member-table' : ''} mt-16`"
3333
:data="tableData"
3434
:pagination-config="paginationConfig"
3535
@sizeChange="handleSizeChange"
@@ -57,11 +57,11 @@
5757
@click.stop="handleDelete(row)"
5858
v-hasPermission="
5959
new ComplexPermission(
60-
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE],
61-
[PermissionConst.ROLE_REMOVE_MEMBER, PermissionConst.WORKSPACE_ROLE_REMOVE_MEMBER],
62-
[],
63-
'OR',
64-
)
60+
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE],
61+
[PermissionConst.ROLE_REMOVE_MEMBER, PermissionConst.WORKSPACE_ROLE_REMOVE_MEMBER],
62+
[],
63+
'OR',
64+
)
6565
"
6666
>
6767
<AppIcon iconName="app-delete-users"></AppIcon>

0 commit comments

Comments
 (0)