Browse Source

fix detail createTime

ethan 6 years ago
parent
commit
065b264eea
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/gambleGameBucket/detail/index.vue

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

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