Unknown 7 years ago
parent
commit
890a5f335e
1 changed files with 12 additions and 12 deletions
  1. 12 12
      src/views/gambleGameBucket/detail/index.vue

+ 12 - 12
src/views/gambleGameBucket/detail/index.vue

48
       detail: [],
48
       detail: [],
49
       group: [],
49
       group: [],
50
       statement: '',
50
       statement: '',
51
-      row: 0,
52
-      col: 0,
51
+      rowspan: 0,
52
+      colspan: 0,
53
       func: '',
53
       func: '',
54
       rowIndex: 0,
54
       rowIndex: 0,
55
       colIndex: 0,
55
       colIndex: 0,
102
           if (i === 0) {
102
           if (i === 0) {
103
             this.statement =
103
             this.statement =
104
             `if(this.rowIndex === ${i}){
104
             `if(this.rowIndex === ${i}){
105
-              this.row = ${this.group[i].length},
106
-              this.col = 1
105
+              this.rowspan = ${this.group[i].length},
106
+              this.colspan = 1
107
             }`
107
             }`
108
           } else if (i === this.group.length - 1) {
108
           } else if (i === this.group.length - 1) {
109
             this.statement +=
109
             this.statement +=
110
             `else if(this.rowIndex === ${sum(i)}){
110
             `else if(this.rowIndex === ${sum(i)}){
111
-              this.row = ${this.group[i].length},
112
-              this.col = 1
111
+              this.rowspan = ${this.group[i].length},
112
+              this.colspan = 1
113
             }else {
113
             }else {
114
-              this.row = 0,
115
-              this.col = 0
114
+              this.rowspan = 0,
115
+              this.colspan = 0
116
             }`
116
             }`
117
           } else {
117
           } else {
118
             this.statement +=
118
             this.statement +=
119
             `else if(this.rowIndex === ${sum(i)}){
119
             `else if(this.rowIndex === ${sum(i)}){
120
-              this.row = ${this.group[i].length},
121
-              this.col = 1 
120
+              this.rowspan = ${this.group[i].length},
121
+              this.colspan = 1 
122
             }`
122
             }`
123
           }
123
           }
124
         }
124
         }
139
 
139
 
140
         this.func()
140
         this.func()
141
         return {
141
         return {
142
-          rowspan: this.row,
143
-          colspan: this.col
142
+          rowspan: this.rowspan,
143
+          colspan: this.colspan
144
         }
144
         }
145
       }
145
       }
146
     },
146
     },