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
8 changes: 4 additions & 4 deletions ui/src/views/home/components/HomeQuickCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ onMounted(() =>
<MkIcon name="icon_creat-robot_colorful" :size="24" />
<div class="min-w-0 flex-1">
<h6>创建智能体</h6>
<p class="text-sm text-N600">从模板或空白创建</p>
<p class="text-sm text-N600">手动搭建、AI 生成或导入创建</p>
</div>
<MkIcon name="icon_down_outlined" />
</div>
Expand All @@ -66,7 +66,7 @@ onMounted(() =>
<MkIcon name="icon_creat-book_colorful" :size="24" />
<div class="min-w-0 flex-1">
<h6>创建知识库</h6>
<p class="text-sm text-N600">上传文档或 web 站点</p>
<p class="text-sm text-N600">从本地文档、web网站等多来源创建</p>
</div>
<MkIcon name="icon_down_outlined" />
</div>
Expand All @@ -81,7 +81,7 @@ onMounted(() =>
<MkIcon name="icon_creat-busy_colorful" :size="24" />
<div class="min-w-0 flex-1">
<h6>创建工具</h6>
<p class="text-sm text-N600">脚本工具或工作流工具</p>
<p class="text-sm text-N600">创建或接入脚本、工作流、MCP 等工具</p>
</div>
<MkIcon name="icon_down_outlined" />
</div>
Expand All @@ -97,7 +97,7 @@ onMounted(() =>
<MkIcon name="icon_creat-model_colorful" :size="24" />
<div class="min-w-0 flex-1">
<h6>添加模型</h6>
<p class="text-sm text-N600">配置大语言/向量等模型</p>
<p class="text-sm text-N600">配置大语言向量等模型</p>
</div>
</div>
</el-card>
Expand Down
24 changes: 19 additions & 5 deletions ui/src/views/system/chat-management/users/UserListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,16 @@ onMounted(() => loadChatUsers())
<el-table-column label="操作" width="160" fixed="right">
<template #default="{ row }">
<div class="flex-align-center gap-3">
<span @click.stop>
<el-switch v-model="row.is_active" size="small" :disabled="!perm.system.chatUser.edit()" :before-change="() => handleChangeStatus(row)" />
</span>
<!-- 修改状态 -->
<el-switch
v-model="row.is_active"
size="small"
:disabled="!perm.system.chatUser.edit()"
:before-change="() => handleChangeStatus(row)"
/>

<el-divider direction="vertical" />

<div class="flex">
<!-- 编辑 -->
<MkTooltip content="编辑" placement="top" v-if="perm.system.chatUser.edit()">
Expand Down Expand Up @@ -240,9 +246,17 @@ onMounted(() => loadChatUsers())

<template #footer-batch-actions>
<!-- 批量设置用户组 -->
<ButtonBatchSetUserGroup v-if="perm.system.chatUser.userGroup()" :user-ids="batchSelectedUsers.map(({ id }) => id)" @refresh="loadChatUsers(false)" />
<ButtonBatchSetUserGroup
v-if="perm.system.chatUser.userGroup()"
:user-ids="batchSelectedUsers.map(({ id }) => id)"
@refresh="loadChatUsers(false)"
/>
<!-- 批量配额设置-->
<ButtonQuotaSettings v-if="perm.system.chatUser.quotaSetting()" :user-ids="batchSelectedUsers.map(({ id }) => id)" @refresh="loadChatUsers()" />
<ButtonQuotaSettings
v-if="perm.system.chatUser.quotaSetting()"
:user-ids="batchSelectedUsers.map(({ id }) => id)"
@refresh="loadChatUsers()"
/>
<!-- 批量删除-->
<el-button v-if="perm.system.chatUser.delete()" type="danger" plain @click="handleBatchDelete">删除</el-button>
</template>
Expand Down
18 changes: 8 additions & 10 deletions ui/src/views/system/identity/users/UserListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,14 @@ onMounted(() => loadSystemUsers())
<el-table-column label="操作" width="160" fixed="right">
<template #default="{ row }">
<div class="flex-align-center gap-3">
<span @click.stop>
<el-switch
v-model="row.is_active"
:disabled="row.role === ROLE_TYPE.ADMIN || row.id === user.userInfo?.id || !perm.system.user.edit()"
:before-change="() => handleChangeStatus(row)"
size="small"
class="mr-3"
/>
<el-divider direction="vertical" />
</span>
<!-- 修改状态 -->
<el-switch
v-model="row.is_active"
:disabled="row.role === ROLE_TYPE.ADMIN || row.id === user.userInfo?.id || !perm.system.user.edit()"
:before-change="() => handleChangeStatus(row)"
size="small"
/>
<el-divider direction="vertical" />

<div class="flex">
<!-- 编辑 -->
Expand Down
22 changes: 11 additions & 11 deletions ui/src/views/trigger/TriggerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,12 @@ onMounted(() => loadTriggers())
>
<el-table-column type="selection" width="48" reserve-selection />
<el-table-column prop="name" label="名称" min-width="220" show-overflow-tooltip>
<template #default="{ row }"
><div class="flex-align-center gap-2">
<TriggerIcon :type="row.trigger_type" :size="24" /><span>{{ row.name }}</span>
</div></template
>
<template #default="{ row }">
<div class="flex-align-center gap-2">
<TriggerIcon :type="row.trigger_type" :size="24" />
<span>{{ row.name }}</span>
</div>
</template>
</el-table-column>
<el-table-column prop="trigger_type" label="类型" width="120">
<template #default="{ row }">{{ triggerTypeLabels[row.trigger_type as TriggerType] || row.trigger_type }}</template>
Expand All @@ -202,14 +203,13 @@ onMounted(() => loadTriggers())
<template #default="{ row }">
<div class="flex-align-center gap-3">
<!-- 修改触发器状态 -->
<span @click.stop>
<el-switch v-model="row.is_active" :disabled="!perm.trigger.edit()" :before-change="() => handleChangeStatus(row)" size="small" class="mr-3" />
<el-divider direction="vertical" />
</span>

<el-switch v-model="row.is_active" :disabled="!perm.trigger.edit()" :before-change="() => handleChangeStatus(row)" size="small" />
<el-divider direction="vertical" />

<div class="flex">
<!-- 编辑当前触发器 -->
<MkTooltip content="编辑" placement="top" v-if="perm.trigger.edit()" >
<MkTooltip content="编辑" placement="top" v-if="perm.trigger.edit()">
<el-button type="primary" text @click.stop="handleOpenTriggerDrawer(row)">
<MkIcon name="icon_edit_outlined" />
</el-button>
Expand All @@ -223,7 +223,7 @@ onMounted(() => loadTriggers())
</MkTooltip>

<!-- 删除当前触发器 -->
<MkTooltip content="删除" placement="top" v-if="perm.trigger.delete()" >
<MkTooltip content="删除" placement="top" v-if="perm.trigger.delete()">
<el-button type="primary" text @click.stop="handleDeleteTrigger(row)">
<MkIcon name="icon_delete-trash_outlined" />
</el-button>
Expand Down
Loading