From ed68d6425eb333e34059c86f954260de41cd8c98 Mon Sep 17 00:00:00 2001 From: haha Date: Sat, 3 Aug 2024 23:08:28 +0800 Subject: [PATCH] update code --- src/views/connection/edit.vue | 1 + src/views/connection/editFlow.vue | 10 +++++++++- src/views/connection/index.vue | 1 + src/views/simulationEvaluation/addStep2.vue | 9 ++++----- src/views/simulationEvaluation/addStep3.vue | 4 +--- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/views/connection/edit.vue b/src/views/connection/edit.vue index 45599d7..8309d59 100644 --- a/src/views/connection/edit.vue +++ b/src/views/connection/edit.vue @@ -380,6 +380,7 @@ const initEditData = () => { upForm.connection_name = info.connInfo.connection_name; upForm.connection_label = ""; upForm.connection_desc = info.connInfo.connection_desc; + edFlow.value.showFlow(info.connInfo) }); } const initData = () => { diff --git a/src/views/connection/editFlow.vue b/src/views/connection/editFlow.vue index 85d82f1..ccdf281 100644 --- a/src/views/connection/editFlow.vue +++ b/src/views/connection/editFlow.vue @@ -142,10 +142,18 @@ const updateNode = (info, node) => { data: info }) } +const showFlow = d => { + let info = d.operator_node_data + let data = { nodes: info.nodes, edges: info.edges }; + lf.value.render(data) + setTimeout(() => { + doUpdateState(); + }, 400) +} defineExpose({ doEdit, getFlowData, - updateNode + updateNode, showFlow })