From 029df6b5a5ff720a5484fadcf63d05467e266e53 Mon Sep 17 00:00:00 2001
From: liailing1026 <1815388873@qq.com>
Date: Wed, 14 Jan 2026 17:54:00 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E6=B8=85=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/layout/components/Main/Task.vue | 13 +-
.../Main/TaskTemplate/AgentRepo/index.vue | 61 +--
.../TaskTemplate/TaskProcess/ProcessCard.vue | 10 +-
.../TaskProcess/components/PlanTask.vue | 372 +++++-------------
.../TaskProcess/components/TaskButton.vue | 12 +-
.../Main/TaskTemplate/TaskResult/Iod.vue | 2 +-
.../Main/TaskTemplate/TaskResult/index.vue | 33 +-
.../TaskSyllabus/Branch/PlanModification.vue | 248 +++++++-----
.../Branch/components/RootNode.vue | 2 +-
.../Branch/components/TaskNode.vue | 2 +-
.../components/AssignmentButton.vue | 2 +-
.../TaskSyllabus/components/BranchButton.vue | 5 +-
.../Main/TaskTemplate/TaskSyllabus/index.vue | 13 +-
13 files changed, 290 insertions(+), 485 deletions(-)
diff --git a/frontend/src/layout/components/Main/Task.vue b/frontend/src/layout/components/Main/Task.vue
index f2bd701..e2985d1 100644
--- a/frontend/src/layout/components/Main/Task.vue
+++ b/frontend/src/layout/components/Main/Task.vue
@@ -16,8 +16,8 @@ const configStore = useConfigStore()
const searchValue = ref('')
const triggerOnFocus = ref(true)
const isFocus = ref(false)
-const hasAutoSearched = ref(false) // 防止重复自动搜索
-const isExpanded = ref(false) // 控制搜索框是否展开
+const hasAutoSearched = ref(false)
+const isExpanded = ref(false)
// 解析URL参数
function getUrlParam(param: string): string | null {
@@ -29,7 +29,6 @@ const planReady = computed(() => {
return agentsStore.agentRawPlan.data !== undefined
})
const openAgentAllocationDialog = () => {
- console.log('打开智能体分配弹窗')
agentsStore.openAgentAllocationDialog()
}
// 自动搜索函数
@@ -70,12 +69,12 @@ function handleBlur() {
// 重置文本区域高度到最小行数
function resetTextareaHeight() {
nextTick(() => {
- // 修复:使用更可靠的方式获取textarea元素
+ // 获取textarea元素
const textarea =
document.querySelector('#task-container .el-textarea__inner') ||
document.querySelector('#task-container textarea')
- if (textarea) {
+ if (textarea instanceof HTMLElement) {
// 强制设置最小高度
textarea.style.height = 'auto'
textarea.style.minHeight = '56px'
@@ -100,7 +99,7 @@ async function handleSearch() {
})
data['Collaboration Process'] = changeBriefs(data['Collaboration Process'])
agentsStore.setAgentRawPlan({ data })
- console.log('agentsStore.agentRawPlan', agentsStore.agentRawPlan)
+
emit('search', searchValue.value)
} finally {
triggerOnFocus.value = true
@@ -182,7 +181,7 @@ onMounted(() => {
/>
-
+
diff --git a/frontend/src/layout/components/Main/TaskTemplate/AgentRepo/index.vue b/frontend/src/layout/components/Main/TaskTemplate/AgentRepo/index.vue
index ec23364..80faa61 100644
--- a/frontend/src/layout/components/Main/TaskTemplate/AgentRepo/index.vue
+++ b/frontend/src/layout/components/Main/TaskTemplate/AgentRepo/index.vue
@@ -1,10 +1,8 @@