huangxingxing 11 months ago
parent
commit
cedaa20494
1 changed files with 14 additions and 3 deletions
  1. 14 3
      src/views/home.vue

+ 14 - 3
src/views/home.vue

@@ -1823,6 +1823,11 @@ console.log(activeIndex2.value);
       for (let i = 0; i < tableData.value.length; i++) {
       const values1 = Object.values(tableData.value[i]);
       console.log(values1);
+       for (let j = 0; j < values1.length; j++) {
+              if(values1[j]==""){
+                values1[j]=" ";
+              }
+          }
       let valuesWithSemiColons1 = values1.join(',');
       conlist.value+= valuesWithSemiColons1 + ';';
     };
@@ -1831,9 +1836,15 @@ console.log(activeIndex2.value);
     }else if(activeIndex2.value==2){
       funlist.value='';
       for (let i = 0; i < eloptimize.value.length; i++) {
-      const values2 = Object.values(eloptimize.value[i]);
-      let valuesWithSemiColons2 = values2.join(',');
-      funlist.value+= valuesWithSemiColons2 + ';';
+        const values2 = Object.values(eloptimize.value[i]);
+        console.log(values2);
+          for (let j = 0; j < values2.length; j++) {
+              if(values2[j]==""){
+                values2[j]=" ";
+              }
+          }
+        let valuesWithSemiColons2 = values2.join(',');
+        funlist.value+= valuesWithSemiColons2 + ';';
     };
     console.log(conlist.value);
       funlistaa();