nanjingliujinyu преди 4 месеца
родител
ревизия
791ac94e84
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      ruoyi-ui/src/views/standardization/modeling/index.vue

+ 4 - 1
ruoyi-ui/src/views/standardization/modeling/index.vue

@@ -717,6 +717,7 @@ const formAdd = ref({
     appTitle: '',
     appNote: '',
 });
+const parSerList = ref([])
 const tableDataCanStart = ref([])
 const dialogVisibleSart = ref(false)
 const testAttention = ref()
@@ -1085,10 +1086,11 @@ function saveNode(){
   nodes.value.forEach(item=>{
     if(item.id===parNodeid.value){
       item.data.data = par
+      item.data.service.params = parSerList.value
     }
   })
   console.log(toObject())
-  nodeDeSer.value = false
+  // nodeDeSer.value = false
   // const node = findNode(parNodeid.value)
   // node.data.data = par
   // updateNode(node.id, { data: { ...node.data, ...par } });
@@ -1341,6 +1343,7 @@ onNodeClick(({event, node}) => {
       serviceRqtype.value = res.data.ptService.rqtype
       servieName.value = res.data.ptService.name
       tableDataCan.value = res.data.list
+      parSerList.value = JSON.parse(JSON.stringify(res.data.list))
       var par1 =  parseJSONWithComments(res.data.ptService.rpcontent)
       var parShu = Object.keys((par1))
       console.log(parShu)