소스 검색

判断条件修改

duy 3 일 전
부모
커밋
eb88cab9c7
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      src/views/formula/component/funComponent/ifelse.vue

+ 10 - 1
src/views/formula/component/funComponent/ifelse.vue

@@ -580,8 +580,15 @@ export default {
     }
     if(this.isMore){
       this.symbol = 'more';
+
       console.log( this.moreConditions,' this.moreConditions;');
-       this.result = '1';
+      const {formula1,formula2}=this.moreConditions[0];
+      if(formula1.length>1 || formula2>1){
+        this.result = '2';
+      }else{
+        this.result = '1';
+      }
+     
       this.conditionList = this.moreConditions.map(item => this.clearTagsIfHasValue(item));
 
        
@@ -1642,6 +1649,7 @@ export default {
           this.formulainfo.arguments[0] = arr;
         }
       } else if(this.symbol == 'more'){
+        this.result='1'
         // 处理多条件情况
         this.formulainfo.arguments[0] = this.conditionList.map(condition => ({
           formulaIfElse: condition.formulaIfElse.map(inner => ({
@@ -1816,6 +1824,7 @@ export default {
       
       this.conditionList[conditionIndex].formulaIfElse.splice(innerIndex + 1, 0, newInnerItem);
       this.setCondition();
+
     },
 
     // 删除内部条件项