Quellcode durchsuchen

fix display bug

ethan vor 6 Jahren
Ursprung
Commit
58fc7346e0
1 geänderte Dateien mit 24 neuen und 23 gelöschten Zeilen
  1. 24 23
      src/views/gambleGameBucket/detail/index.vue

+ 24 - 23
src/views/gambleGameBucket/detail/index.vue

@@ -1,6 +1,10 @@
1 1
 <template >
2 2
 <div class="app-container calendar-list-container">
3
-  <div class="app-container">
3
+ <el-dialog
4
+    :visible.sync="dialogVisible"
5
+    fullscreen="true"
6
+    :before-close="handleClose">
7
+    <div class="app-container">
4 8
      <div class="block">
5 9
       <el-row :gutter="20">
6 10
         <el-col :span="6">
@@ -9,14 +13,13 @@
9 13
           <el-option v-for="item in roundOptions" :key="item.label" :label="item.label" :value="item.key">
10 14
           </el-option>
11 15
         </el-select>
12
-        </el-col >
13
-        <el-col :offset="10" :span="8">
14
-          <span @click="dialogVisible = true" class="demonstration">時間 : {{moment(this.roundTime)}}</span>
15
-        </el-col>
16
-      </el-row>
16
+          </el-col >
17
+          <el-col :offset="10" :span="8">
18
+            <span @click="dialogVisible = false" class="demonstration">時間 : {{moment(this.roundTime)}}</span>
19
+          </el-col>
20
+        </el-row>
21
+      </div>
17 22
     </div>
18
-  </div>
19
-  
20 23
     <el-table header-row-class-name="init" :data="bookie" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
21 24
       style="width: 100%">      
22 25
       <el-table-column label="本期開獎" lable-className="title" align="center">   
@@ -186,14 +189,10 @@
186 189
         </el-table-column>
187 190
         </el-table-column>      
188 191
     </el-table>
192
+    </el-dialog>
189 193
 
190 194
 
191
-
192
-  <el-dialog
193
-    :visible.sync="dialogVisible"
194
-    fullscreen="true"
195
-    :before-close="handleClose">
196
-    <div class="app-container">
195
+  <div class="app-container">
197 196
      <div class="block">
198 197
       <el-row :gutter="20">
199 198
         <el-col :span="6">
@@ -202,13 +201,14 @@
202 201
           <el-option v-for="item in roundOptions" :key="item.label" :label="item.label" :value="item.key">
203 202
           </el-option>
204 203
         </el-select>
205
-          </el-col >
206
-          <el-col :offset="10" :span="8">
207
-            <span @click="dialogVisible = false" class="demonstration">時間 : {{moment(this.roundTime)}}</span>
208
-          </el-col>
209
-        </el-row>
210
-      </div>
204
+        </el-col >
205
+        <el-col :offset="10" :span="8">
206
+          <span @click="dialogVisible = true" class="demonstration">時間 : {{moment(this.roundTime)}}</span>
207
+        </el-col>
208
+      </el-row>
211 209
     </div>
210
+  </div>
211
+  
212 212
     <el-table header-row-class-name="init" :data="bookie" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
213 213
       style="width: 100%">      
214 214
       <el-table-column label="本期開獎" lable-className="title" align="center">   
@@ -378,7 +378,8 @@
378 378
         </el-table-column>
379 379
         </el-table-column>      
380 380
     </el-table>
381
-    </el-dialog>
381
+
382
+
382 383
 </div>
383 384
 </template>
384 385
 
@@ -450,7 +451,7 @@ export default {
450 451
       'SetData',
451 452
       // 'SetQuery'
452 453
     ]),
453
-    getList() {
454
+    async getList() {
454 455
       this.listLoading = true
455 456
       let detailTemp, dealingTemp, memberRecordTemp
456 457
       this.detail = []
@@ -483,7 +484,7 @@ export default {
483 484
         })
484 485
         this.memberRecord = Object.values(memberRecordTemp )
485 486
       })
486
-      fetchDetails(this.data.secondLayer, this.listQuery).then(response => {
487
+      await fetchDetails(this.data.secondLayer, this.listQuery).then(response => {
487 488
         detailTemp = response.data.rows.filter(record => {
488 489
           return record.DealingRecord.door !== -1 &&
489 490
             record.MemberRecord.door !== -1 &&