Bläddra i källkod

公式参数为空,写入单引号''

gangyj 2 år sedan
förälder
incheckning
874346136d

+ 1 - 1
src/views/formula/edit.vue

@@ -426,7 +426,7 @@ export default {
         // '去重':'datas-repeat',
         // '去空':'datas-reme',
         '下标取数':'datas-getlist',
-        '数组转字符串':"datas-join",
+        // '数组转字符串':"datas-join",
         '判断':'ifelse'
       },
 

+ 2 - 2
src/views/formula/formulaArrayToString.js

@@ -92,12 +92,12 @@ function transformArguments(children,curEle,eleMap){
             }else if(a && a.type){
               fcText += a.name;
             }else{
-              fcText += a?a:'""';
+              fcText += a?a:"''";
             }
           })
 
         }else{
-          fcText += arg?arg:'""';
+          fcText += arg?arg:"''";
         }
 
       }else{

+ 1 - 1
src/views/formula/formulaStringToArray.js

@@ -384,7 +384,7 @@ export const formulaStringToArray = (text,elemap,formulaMap) => {
       //匹配文本
       let word = nuText.match(wordReg)[0];
       console.log('匹配文本',word)
-      if(word == '""'){
+      if(word == "''"){
         word = "";
       }