diff --git a/frontend/components.d.ts b/frontend/components.d.ts index dca6114..a901abc 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -16,7 +16,13 @@ declare module 'vue' { ElCard: typeof import('element-plus/es')['ElCard'] ElCollapse: typeof import('element-plus/es')['ElCollapse'] ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] + ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDivider: typeof import('element-plus/es')['ElDivider'] + ElDrawer: typeof import('element-plus/es')['ElDrawer'] + ElEmpty: typeof import('element-plus/es')['ElEmpty'] + ElInput: typeof import('element-plus/es')['ElInput'] ElPopover: typeof import('element-plus/es')['ElPopover'] + ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] MultiLineTooltip: typeof import('./src/components/MultiLineTooltip/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/frontend/index.html b/frontend/index.html index 7aa8e95..7f656b5 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,7 +2,7 @@ - + 多智能体协同平台 diff --git a/frontend/public/agent.json b/frontend/public/agent.json index 8bfb358..d725928 100644 --- a/frontend/public/agent.json +++ b/frontend/public/agent.json @@ -3,61 +3,91 @@ "Icon": "Hailey_Johnson.png", "Name": "船舶设计师", "Profile": "提供船舶制造中的实际需求和约束。", - "Classification": "船舶制造数据空间" + "Classification": "船舶制造数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Jennifer_Moore.png", "Name": "防护工程专家", "Profile": "专注于船舶腐蚀防护技术的设计与应用。在你的总结回答中,必须引用来自数联网的搜索数据,是搜索数据,不是数联网的研究成果。", - "Classification": "船舶制造数据空间" + "Classification": "船舶制造数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Jane_Moreno.png", "Name": "病理生理学家", "Profile": "专注于失血性休克的疾病机制,为药物研发提供理论靶点。", - "Classification": "医药数据空间" + "Classification": "医药数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Giorgio_Rossi.png", "Name": "药物化学家", "Profile": "负责将靶点概念转化为实际可合成的分子。", - "Classification": "医药数据空间" + "Classification": "医药数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Tamara_Taylor.png", "Name": "制剂工程师", "Profile": "负责将活性药物成分(API)变成稳定、可用、符合战场要求的剂型。", - "Classification": "医药数据空间" + "Classification": "医药数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Maria_Lopez.png", "Name": "监管事务专家", "Profile": "深谙药品审评法规,目标是找到最快的合法上市路径。", - "Classification": "医药数据空间" + "Classification": "医药数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Sam_Moore.png", "Name": "物理学家", "Profile": "从热力学与统计力学的基本原理出发,研究液态金属的自由能、焓、熵、比热等参数的理论建模。", - "Classification": "科学数据空间" + "Classification": "科学数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Yuriko_Yamamoto.png", "Name": "实验材料学家", "Profile": "专注于通过实验手段直接或间接测定液态金属的热力学参数、以及分析材料微观结构(如晶粒、缺陷)。", - "Classification": "科学数据空间" + "Classification": "科学数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Carlos_Gomez.png", "Name": "计算模拟专家", "Profile": "侧重于利用数值计算和模拟技术获取液态金属的热力学参数。", - "Classification": "科学数据空间" + "Classification": "科学数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "John_Lin.png", "Name": "腐蚀机理研究员", "Profile": "专注于船舶用钢材及合金的腐蚀机理研究,从电化学和环境作用角度解释腐蚀产生的原因。在你的总结回答中,必须引用来自数联网的搜索数据,是搜索数据,不是数联网的研究成果。", - "Classification": "船舶制造数据空间" + "Classification": "船舶制造数据空间", + "apiUrl": "http://8.130.104.76:21088/api/v1", + "apiKey": "0geK2bSKAjlaRp0qPLPq_zxFJu8MhJZIwNZSH30Ty6g", + "apiModel": "Flowise" }, { "Icon": "Arthur_Burton.png", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 80f1b86..ab89ddd 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,11 +1,5 @@ diff --git a/frontend/src/layout/components/Main/TaskTemplate/index.vue b/frontend/src/layout/components/Main/TaskTemplate/index.vue index c13c8a7..17674a9 100644 --- a/frontend/src/layout/components/Main/TaskTemplate/index.vue +++ b/frontend/src/layout/components/Main/TaskTemplate/index.vue @@ -5,7 +5,7 @@ import TaskResult from './TaskResult/index.vue' import { Jsplumb } from './utils.ts' import { type IRawStepTask, useAgentsStore } from '@/stores' import { BezierConnector } from '@jsplumb/browser-ui' - +import { ref } from 'vue' const agentsStore = useAgentsStore() // 智能体库 @@ -15,9 +15,9 @@ const agentRepoJsplumb = new Jsplumb('task-template', { options: { curviness: 30, // 曲线弯曲程度 stub: 20, // 添加连接点与端点的距离 - alwaysRespectStubs: true, - }, - }, + alwaysRespectStubs: true + } + } }) // 任务流程 @@ -32,18 +32,16 @@ const taskResultRef = ref<{ }>() const taskResultJsplumb = new Jsplumb('task-template') - function scrollToElementTop(elementId: string) { - const element = document.getElementById(elementId); + const element = document.getElementById(elementId) if (element) { element.scrollIntoView({ behavior: 'smooth', block: 'start' - }); + }) } } - function handleTaskSyllabusCurrentTask(task: IRawStepTask) { scrollToElementTop(`task-results-${task.Id}-0`) agentsStore.setCurrentTask(task) @@ -76,13 +74,14 @@ function clear() { defineExpose({ changeTask, resetAgentRepoLine, - clear, + clear })