@@ -1266,11 +1296,24 @@ defineExpose({
:disabled="agentsStore.executePlan.length === 0"
@mouseenter="handleRefreshMouseEnter"
@click="handleRefresh"
- style="order: 0"
+ style="order: 1"
>
重置
+
+
+
+ 导出
+
任务过程
diff --git a/frontend/src/layout/components/Main/TaskTemplate/index.vue b/frontend/src/layout/components/Main/TaskTemplate/index.vue
index 818ba69..a561e07 100644
--- a/frontend/src/layout/components/Main/TaskTemplate/index.vue
+++ b/frontend/src/layout/components/Main/TaskTemplate/index.vue
@@ -3,6 +3,7 @@ import AgentRepo from './AgentRepo/index.vue'
import TaskSyllabus from './TaskSyllabus/index.vue'
import TaskResult from './TaskResult/index.vue'
import HistoryList from './HistoryList/index.vue'
+import ExportList from './ExportList/index.vue'
import SvgIcon from '@/components/SvgIcon/index.vue'
import { Jsplumb } from './utils.ts'
import { type IRawStepTask, useAgentsStore } from '@/stores'
@@ -24,11 +25,19 @@ const agentsStore = useAgentsStore()
// 历史记录弹窗控制
const historyDialogVisible = ref(false)
+// 导出弹窗控制
+const exportDialogVisible = ref(false)
+
// 打开历史记录弹窗
const openHistoryDialog = () => {
historyDialogVisible.value = true
}
+// 打开导出弹窗
+const openExportDialog = () => {
+ exportDialogVisible.value = true
+}
+
// 处理历史任务恢复
const handleRestorePlan = (plan: any) => {
// 关闭弹窗
@@ -102,6 +111,7 @@ function clear() {
defineExpose({
openHistoryDialog,
+ openExportDialog,
changeTask,
resetAgentRepoLine,
clear
@@ -133,6 +143,7 @@ defineExpose({
:TaskID="props.TaskID"
@refresh-line="taskResultJsplumb.repaintEverything"
@set-current-task="handleTaskResultCurrentTask"
+ @open-export="openExportDialog"
/>
@@ -151,6 +162,22 @@ defineExpose({
+
+
+