style: role member table

This commit is contained in:
teukkk 2025-06-30 10:26:07 +08:00
parent 8e89658b04
commit e8d29e2cef

View File

@ -6,10 +6,10 @@
@click="handleAdd" @click="handleAdd"
v-hasPermission=" v-hasPermission="
new ComplexPermission( new ComplexPermission(
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE], [RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE],
[PermissionConst.WORKSPACE_ROLE_ADD_MEMBER, PermissionConst.ROLE_ADD_MEMBER], [PermissionConst.WORKSPACE_ROLE_ADD_MEMBER, PermissionConst.ROLE_ADD_MEMBER],
[], [],
'OR', 'OR',
)" )"
> >
{{ $t('views.role.member.add') }} {{ $t('views.role.member.add') }}
@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<app-table <app-table
class="member-table mt-16" :class="`${props.currentRole?.type !== RoleTypeEnum.ADMIN ? 'member-table' : ''} mt-16`"
:data="tableData" :data="tableData"
:pagination-config="paginationConfig" :pagination-config="paginationConfig"
@sizeChange="handleSizeChange" @sizeChange="handleSizeChange"
@ -57,11 +57,11 @@
@click.stop="handleDelete(row)" @click.stop="handleDelete(row)"
v-hasPermission=" v-hasPermission="
new ComplexPermission( new ComplexPermission(
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE], [RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE],
[PermissionConst.ROLE_REMOVE_MEMBER, PermissionConst.WORKSPACE_ROLE_REMOVE_MEMBER], [PermissionConst.ROLE_REMOVE_MEMBER, PermissionConst.WORKSPACE_ROLE_REMOVE_MEMBER],
[], [],
'OR', 'OR',
) )
" "
> >
<AppIcon iconName="app-delete-users"></AppIcon> <AppIcon iconName="app-delete-users"></AppIcon>