|
@@ -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=[]
|
|
|
},
|