Pārlūkot izejas kodu

fix detail createTime

ethan 6 gadi atpakaļ
vecāks
revīzija
065b264eea
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/views/gambleGameBucket/detail/index.vue

+ 4 - 1
src/views/gambleGameBucket/detail/index.vue

@@ -11,7 +11,7 @@
11 11
         </el-select>
12 12
         </el-col >
13 13
         <el-col :offset="10" :span="8">
14
-            <span class="demonstration">時間 : {{moment(this.data.secondLayer.createdAt)}}</span>
14
+            <span class="demonstration">時間 : {{moment(this.roundTime)}}</span>
15 15
         </el-col>
16 16
       </el-row>
17 17
     </div>
@@ -211,10 +211,12 @@ export default {
211 211
       punishmentRecord: [],
212 212
       memberRecordTemp: [],
213 213
       wagerRecord: [],
214
+      roundTime: 0,
214 215
     }
215 216
   },
216 217
   created() {
217 218
     fetchRoundRecord(this.data.secondLayer, this.listQuery).then(response => {
219
+      this.roundTime = response.data.createdAt
218 220
       this.door = response.data.initialDoor
219 221
     })
220 222
     // fetchGameBid(this.data.secondLayer).then(response => {
@@ -400,6 +402,7 @@ export default {
400 402
     },
401 403
     handleFilter() {
402 404
       fetchRoundRecord(this.data.secondLayer, this.listQuery).then(response => {
405
+      this.roundTime = response.data.createdAt        
403 406
         this.door = response.data.initialDoor
404 407
       })
405 408
       // this.SetQuery({layer:2, query: {round: this.query.secondLayer.round}})