diff --git a/src/App.vue b/src/App.vue index 3307b0f..2ab9232 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,12 +1,8 @@ - + \ No newline at end of file diff --git a/src/views/connection/nodePanel.vue b/src/views/connection/nodePanel.vue index bb92e56..7021e8b 100644 --- a/src/views/connection/nodePanel.vue +++ b/src/views/connection/nodePanel.vue @@ -84,12 +84,12 @@ const list2 = reactive([ const updateNode = (nodes) => { let nds = nodes.nodes.map(d => d.properties.node); - list2.forEach(d => { - d.show = nds.indexOf(d.id) == -1 - }) - list1.forEach(d => { - d.show = nds.indexOf(d.id) == -1 - }) + if(info.all){ + info.all.forEach(d => { + d.show = nds.indexOf(d.id) == -1 + }); + } + } const doEdit=(nd)=>{ @@ -98,6 +98,7 @@ const doEdit=(nd)=>{ if(tmps.length>0){ tmps[0].inputParams=nd.inputParams; tmps[0].outputParams=nd.inputParams; + tmps[0].process=nd.process; } } defineExpose({ @@ -111,8 +112,12 @@ const initData = () => { it.show = true; it.text = it.operator_name; it.id = it.operator_id - it.inputParams=""; - it.outputParams=""; + it.inputParams={ + a:10,b:20,c:30,d:40,e:50, + a2:10,b2:20,c2:30,d2:40,e2:50, + }; + it.outputParams={}; + it.process={}; return it; }); info.all=tmps;