@@ -279,28 +178,6 @@ const agentList = computed(() => {
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
}
-
- .user-item {
- background: #1d222b;
- border-radius: 40px;
- padding-right: 12px;
- cursor: pointer;
- transition: all 0.25s ease;
- color: #969696;
-
- & + .user-item {
- margin-top: 8px;
- }
-
- &:hover {
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
- color: #b8b8b8;
- }
- }
-
- .active-card {
- border-left: none !important;
- }
}
#agent-repo {
diff --git a/src/layout/components/Main/TaskTemplate/TaskResult/index.vue b/src/layout/components/Main/TaskTemplate/TaskResult/index.vue
index e73cbb9..9e8acb1 100644
--- a/src/layout/components/Main/TaskTemplate/TaskResult/index.vue
+++ b/src/layout/components/Main/TaskTemplate/TaskResult/index.vue
@@ -63,10 +63,6 @@ function createInternalLine(id?: string) {
jsplumb.reset()
collaborationProcess.value.forEach((item) => {
// 创建左侧流程与产出的连线
- // jsplumb.connect(`task-results-${item.Id}-0`, `task-results-${item.Id}-1`, [
- // AnchorLocations.Left,
- // AnchorLocations.Left,
- // ])
arr.push({
sourceId: `task-results-${item.Id}-0`,
targetId: `task-results-${item.Id}-1`,
@@ -75,14 +71,6 @@ function createInternalLine(id?: string) {
collaborationProcess.value.forEach((jitem) => {
// 创建左侧产出与上一步流程的连线
if (item.InputObject_List!.includes(jitem.OutputObject ?? '')) {
- // jsplumb.connect(
- // `task-results-${jitem.Id}-1`,
- // `task-results-${item.Id}-0`,
- // [AnchorLocations.Left, AnchorLocations.Left],
- // {
- // type: 'output',
- // },
- // )
arr.push({
sourceId: `task-results-${jitem.Id}-1`,
targetId: `task-results-${item.Id}-0`,
@@ -96,8 +84,8 @@ function createInternalLine(id?: string) {
jitem.TaskProcess.forEach((i) => {
if (i.ImportantInput?.includes(`InputObject:${item.OutputObject}`)) {
const color = getActionTypeDisplay(i.ActionType)?.color ?? ''
- const sourceId = `task-results-${jitem.Id}-0-${i.ID}`
- const targetId = `task-results-${item.Id}-1`
+ const sourceId = `task-results-${item.Id}-1`
+ const targetId = `task-results-${jitem.Id}-0-${i.ID}`
arr.push({
sourceId,
targetId,
@@ -107,7 +95,7 @@ function createInternalLine(id?: string) {
[0, color],
[1, color],
],
- transparent: sourceId !== id,
+ transparent: targetId !== id,
},
})
}
@@ -122,8 +110,8 @@ function createInternalLine(id?: string) {
item.TaskProcess?.forEach((i2) => {
if (i.ImportantInput.includes(`ActionResult:${i2.ID}`)) {
const color = getActionTypeDisplay(i.ActionType)?.color ?? ''
- const sourceId = `task-results-${item.Id}-0-${i.ID}`
- const targetId = `task-results-${item.Id}-0-${i2.ID}`
+ const sourceId = `task-results-${item.Id}-0-${i2.ID}`
+ const targetId = `task-results-${item.Id}-0-${i.ID}`
arr.push({
sourceId,
targetId,
@@ -133,7 +121,7 @@ function createInternalLine(id?: string) {
[0, color],
[1, color],
],
- transparent: sourceId !== id,
+ transparent: targetId !== id,
},
})
}
diff --git a/src/layout/components/Main/TaskTemplate/index.vue b/src/layout/components/Main/TaskTemplate/index.vue
index d64850d..c13c8a7 100644
--- a/src/layout/components/Main/TaskTemplate/index.vue
+++ b/src/layout/components/Main/TaskTemplate/index.vue
@@ -32,7 +32,25 @@ const taskResultRef = ref<{
}>()
const taskResultJsplumb = new Jsplumb('task-template')
-function setCurrentTask(task: IRawStepTask) {
+
+function scrollToElementTop(elementId: string) {
+ 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)
+}
+
+function handleTaskResultCurrentTask(task: IRawStepTask) {
+ scrollToElementTop(`task-syllabus-flow-${task.Id}`)
agentsStore.setCurrentTask(task)
// 更新任务大纲内部的线
taskSyllabusRef.value?.changeTask(task, false)
@@ -64,7 +82,7 @@ defineExpose({
@@ -76,7 +94,7 @@ defineExpose({
@@ -84,7 +102,7 @@ defineExpose({