duy 2 years ago
parent
commit
ef170eb5a3
1 changed files with 9 additions and 6 deletions
  1. 9 6
      src/views/formula/edit1.vue

+ 9 - 6
src/views/formula/edit1.vue

@@ -896,6 +896,8 @@ export default {
 
     //选择公式处理
     handleSelect(index,indexPath) {
+      //console.log(index,'index')
+      //console.log(indexPath,'indexPath')
       if(this.operationVisible){
         this.openerationSelect(index,indexPath)
       }else{
@@ -986,12 +988,13 @@ export default {
       if (this.itemList.length <= 0) {
          this.eleAddFormulaHandle(this.formulaMap[operator]);
       }
-     this.itemList.forEach((item,index)=>{
-           this.eleAddFormulaHandle(item);
-        if(index!=this.itemList.length-1){
-          this.eleAddFormulaHandle(this.formulaMap[operator]);
-        }
-     })
+      
+      this.itemList.forEach(e => {
+         this.eleAddFormulaHandle(e);
+        this.eleAddFormulaHandle(this.formulaMap[operator]);
+       
+      })
+   
      
       this.itemList=[]
     },