From 29820dc106c33c0dcd680f685c7b4d1babaeab76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cls=5F=E5=AE=81=E6=B3=A2=E6=9C=AC=E6=9C=BA?= <908705107@qq.com> Date: Wed, 10 Jun 2026 08:13:30 +0800 Subject: [PATCH] Add AI confirmation center --- backend-fastapi/db_init.json | 45 ++++ .../src/api/ai-platform/ai-platform.ts | 1 + web/apps/web-ele/src/router/access.ts | 1 + .../_core/ai-confirmation-center/index.vue | 237 ++++++++++++++++++ 4 files changed, 284 insertions(+) create mode 100644 web/apps/web-ele/src/views/_core/ai-confirmation-center/index.vue diff --git a/backend-fastapi/db_init.json b/backend-fastapi/db_init.json index 88ffef6..8d378d2 100644 --- a/backend-fastapi/db_init.json +++ b/backend-fastapi/db_init.json @@ -6758,6 +6758,51 @@ "sys_dept_id": null } }, + { + "model": "core.menu.model.Menu", + "pk": "ai-agent-admin-ai-confirmation-center", + "fields": { + "application_id": null, + "is_system": true, + "parent_id": null, + "name": "AIConfirmationCenter", + "title": "AI ????", + "authCode": null, + "path": "/ai-confirmation-center", + "type": "menu", + "component": "/_core/ai-confirmation-center/index", + "redirect": null, + "activePath": null, + "query": null, + "noBasicLayout": false, + "icon": "lucide:clipboard-check", + "activeIcon": null, + "order": 32, + "hideInMenu": false, + "hideChildrenInMenu": false, + "hideInBreadcrumb": false, + "hideInTab": false, + "affixTab": false, + "affixTabOrder": null, + "keepAlive": false, + "maxNumOfOpenTab": null, + "fullPathKey": true, + "link": null, + "iframeSrc": null, + "openInNewWindow": false, + "badge": null, + "badgeType": null, + "badgeVariants": null, + "id": "ai-agent-admin-ai-confirmation-center", + "sort": 32, + "is_deleted": false, + "sys_create_datetime": "2026-06-10T00:00:00.000000", + "sys_update_datetime": "2026-06-10T00:00:00.000000", + "sys_creator_id": null, + "sys_modifier_id": null, + "sys_dept_id": null + } + }, { "model": "core.menu.model.Menu", "pk": "ai-agent-admin-application-management", diff --git a/web/apps/web-ele/src/api/ai-platform/ai-platform.ts b/web/apps/web-ele/src/api/ai-platform/ai-platform.ts index 1964509..0bcbf2c 100644 --- a/web/apps/web-ele/src/api/ai-platform/ai-platform.ts +++ b/web/apps/web-ele/src/api/ai-platform/ai-platform.ts @@ -983,6 +983,7 @@ export async function getWorkflowRunsApi( /** 获取全局工作流运行记录 */ export async function getAllWorkflowRunsApi(params?: { + applicationId?: string; page?: number; pageSize?: number; workflowId?: string; diff --git a/web/apps/web-ele/src/router/access.ts b/web/apps/web-ele/src/router/access.ts index a9e029d..43a1e8f 100644 --- a/web/apps/web-ele/src/router/access.ts +++ b/web/apps/web-ele/src/router/access.ts @@ -16,6 +16,7 @@ const forbiddenComponent = () => import('#/views/_core/fallback/forbidden.vue'); async function generateAccess(options: GenerateMenuAndRoutesOptions) { const pageMap: ComponentRecordType = import.meta.glob([ '../views/_core/agent-chat/**/*.vue', + '../views/_core/ai-confirmation-center/index.vue', '../views/_core/announcement/index.vue', '../views/_core/announcement/list.vue', '../views/_core/application/index.vue', diff --git a/web/apps/web-ele/src/views/_core/ai-confirmation-center/index.vue b/web/apps/web-ele/src/views/_core/ai-confirmation-center/index.vue new file mode 100644 index 0000000..9e9a4f0 --- /dev/null +++ b/web/apps/web-ele/src/views/_core/ai-confirmation-center/index.vue @@ -0,0 +1,237 @@ + + + + + + + AI 确认中心 + + 刷新 + + + + + + + + + {{ row.trigger_type }} + + + + + {{ formatTime(row.started_at) }} + + + + 等待确认 + + + + + + 处理 + + + + + + + + + + 共 {{ total }} 条 + + + + + + {{ currentRun.workflow_name }} + + 当前节点:{{ currentRun.current_node_id || '-' }} + + + + + {{ promptText() }} + + + + + {{ option.label }} + + + + + + + + 关闭 + + {{ waitingConfig.cancel_text || '拒绝' }} + + + {{ interactionType === 'confirm' ? (waitingConfig.confirm_text || '确认') : '提交' }} + + + + +