Browse Source

fix display bug

ethan 6 years ago
parent
commit
58fc7346e0
1 changed files with 24 additions and 23 deletions
  1. 24 23
      src/views/gambleGameBucket/detail/index.vue

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

1
 <template >
1
 <template >
2
 <div class="app-container calendar-list-container">
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
      <div class="block">
8
      <div class="block">
5
       <el-row :gutter="20">
9
       <el-row :gutter="20">
6
         <el-col :span="6">
10
         <el-col :span="6">
9
           <el-option v-for="item in roundOptions" :key="item.label" :label="item.label" :value="item.key">
13
           <el-option v-for="item in roundOptions" :key="item.label" :label="item.label" :value="item.key">
10
           </el-option>
14
           </el-option>
11
         </el-select>
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
     </div>
22
     </div>
18
-  </div>
19
-  
20
     <el-table header-row-class-name="init" :data="bookie" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
23
     <el-table header-row-class-name="init" :data="bookie" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
21
       style="width: 100%">      
24
       style="width: 100%">      
22
       <el-table-column label="本期開獎" lable-className="title" align="center">   
25
       <el-table-column label="本期開獎" lable-className="title" align="center">   
186
         </el-table-column>
189
         </el-table-column>
187
         </el-table-column>      
190
         </el-table-column>      
188
     </el-table>
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
      <div class="block">
196
      <div class="block">
198
       <el-row :gutter="20">
197
       <el-row :gutter="20">
199
         <el-col :span="6">
198
         <el-col :span="6">
202
           <el-option v-for="item in roundOptions" :key="item.label" :label="item.label" :value="item.key">
201
           <el-option v-for="item in roundOptions" :key="item.label" :label="item.label" :value="item.key">
203
           </el-option>
202
           </el-option>
204
         </el-select>
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
     </div>
209
     </div>
210
+  </div>
211
+  
212
     <el-table header-row-class-name="init" :data="bookie" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
212
     <el-table header-row-class-name="init" :data="bookie" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
213
       style="width: 100%">      
213
       style="width: 100%">      
214
       <el-table-column label="本期開獎" lable-className="title" align="center">   
214
       <el-table-column label="本期開獎" lable-className="title" align="center">   
378
         </el-table-column>
378
         </el-table-column>
379
         </el-table-column>      
379
         </el-table-column>      
380
     </el-table>
380
     </el-table>
381
-    </el-dialog>
381
+
382
+
382
 </div>
383
 </div>
383
 </template>
384
 </template>
384
 
385
 
450
       'SetData',
451
       'SetData',
451
       // 'SetQuery'
452
       // 'SetQuery'
452
     ]),
453
     ]),
453
-    getList() {
454
+    async getList() {
454
       this.listLoading = true
455
       this.listLoading = true
455
       let detailTemp, dealingTemp, memberRecordTemp
456
       let detailTemp, dealingTemp, memberRecordTemp
456
       this.detail = []
457
       this.detail = []
483
         })
484
         })
484
         this.memberRecord = Object.values(memberRecordTemp )
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
         detailTemp = response.data.rows.filter(record => {
488
         detailTemp = response.data.rows.filter(record => {
488
           return record.DealingRecord.door !== -1 &&
489
           return record.DealingRecord.door !== -1 &&
489
             record.MemberRecord.door !== -1 &&
490
             record.MemberRecord.door !== -1 &&