Przeglądaj źródła

fix gamebuckect single data bug

EthnaYeh 7 lat temu
rodzic
commit
638ab4ca73
1 zmienionych plików z 7 dodań i 9 usunięć
  1. 7 9
      src/views/gambleGameBucket/detail/index.vue

+ 7 - 9
src/views/gambleGameBucket/detail/index.vue

276
               this.rowspan = ${this.group[i].length},
276
               this.rowspan = ${this.group[i].length},
277
               this.colspan = 1
277
               this.colspan = 1
278
             }`
278
             }`
279
-          } else if (i === this.group.length - 1) {
280
-            this.statement +=
281
-            `else if(this.rowIndex === ${this._sum(i)}){
282
-              this.rowspan = ${this.group[i].length},
283
-              this.colspan = 1
284
-            }else {
285
-              this.rowspan = 0,
286
-              this.colspan = 0
287
-            }`
288
           } else {
279
           } else {
289
             this.statement +=
280
             this.statement +=
290
             `else if(this.rowIndex === ${this._sum(i)}){
281
             `else if(this.rowIndex === ${this._sum(i)}){
292
               this.colspan = 1 
283
               this.colspan = 1 
293
             }`
284
             }`
294
           }
285
           }
286
+          if (i === this.group.length - 1) {
287
+            this.statement +=
288
+            `else {
289
+              this.rowspan = 0,
290
+              this.colspan = 0
291
+            }`
292
+          }
295
         }
293
         }
296
 
294
 
297
         this.func = eval(`(function() {${this.statement}})`)
295
         this.func = eval(`(function() {${this.statement}})`)