nanjingliujinyu há 4 meses atrás
pai
commit
ae2e9e27d6
1 ficheiros alterados com 15 adições e 12 exclusões
  1. 15 12
      ruoyi-ui/src/views/standardization/modeling/index.vue

+ 15 - 12
ruoyi-ui/src/views/standardization/modeling/index.vue

@@ -991,7 +991,9 @@ function startTest(){
         item.data.outputDefs = paramEnd 
       }
     })
+    
     var a = JSON.parse(JSON.stringify(toObject()))
+    console.log(a)
     a.nodes.forEach(item=>{
       if(item.id==='1'){
         item.type = 'startNode'
@@ -1010,17 +1012,17 @@ function startTest(){
       // par.set(item.name,item.value)
       par.params[item.name] = item.value
     })
-    console.log(a)
-    runflow(par).then(res=>{
-      if(res.code === 200){
-        proxy.$message({
-            message: res.msg,
-            type: 'success'
-        });
-        dialogVisibleSart.value = true
-        outputData.value = JSON.stringify(res.data)
-      }
-    })
+    console.log(par)
+    // runflow(par).then(res=>{
+    //   if(res.code === 200){
+    //     proxy.$message({
+    //         message: res.msg,
+    //         type: 'success'
+    //     });
+    //     dialogVisibleSart.value = true
+    //     outputData.value = JSON.stringify(res.data)
+    //   }
+    // })
     
   }
   else if(tableDataCanStart.value.length===0){
@@ -1098,7 +1100,8 @@ function saveNode(){
   })
   nodes.value.forEach(item=>{
     if(item.id===parNodeid.value){
-      item.data = par
+      // console.log(item.id)
+      item.data.data = par.parameters
       item.data.service = serInfo.value
       item.data.service.params = parSerList.value
     }