Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions ui/src/views/application-detail/chat-user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ defineOptions({ name: 'ApplicationChatUserListView' })
defineProps<ResourceDetailPageProps>()
defineExpose({ hideHeader: true })

type ApplicationChatUserPermissionMethod =
| 'chatUserEdit'
function applicationchatUserPermission(method: ApplicationChatUserPermissionMethod): boolean{
type ApplicationChatUserPermissionMethod = 'chatUserEdit'
function applicationchatUserPermission(method: ApplicationChatUserPermissionMethod): boolean {
if (isSystemResource()) return Boolean(perm.application.system[method]())
return Boolean(perm.application.workspace[method](applicationId.value))
}
Expand Down Expand Up @@ -226,7 +225,7 @@ onMounted(() => loadChatUserGroups())
<MkTable
v-model:pagination-config="paginationConfig"
:data="chatUsers"
:max-table-height="350"
:max-table-height="230"
@size-change="refreshChatUsers"
@current-change="refreshChatUsers"
>
Expand All @@ -241,7 +240,13 @@ onMounted(() => loadChatUserGroups())
<el-table-column :width="140" align="center">
<template #header>
<!-- 批量设置当前页授权 -->
<el-checkbox v-if="applicationchatUserPermission('chatUserEdit')" :model-value="allChecked" :indeterminate="allIndeterminate" :disabled="authorizationDisabled" @change="handleCheckAll">
<el-checkbox
v-if="applicationchatUserPermission('chatUserEdit')"
:model-value="allChecked"
:indeterminate="allIndeterminate"
:disabled="authorizationDisabled"
@change="handleCheckAll"
>
授权
</el-checkbox>
</template>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/knowledge-detail/chat-user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ onMounted(() => loadChatUserGroups())
<MkTable
v-model:pagination-config="paginationConfig"
:data="chatUsers"
:max-table-height="350"
:max-table-height="230"
@size-change="refreshChatUsers"
@current-change="refreshChatUsers"
>
Expand Down
Loading