| 
				
			 | 
			
			
				@@ -49,11 +49,11 @@ 
			 | 
		
	
		
			
			| 
				49
			 | 
			
				49
			 | 
			
			
				         </el-table-column>       
			 | 
		
	
		
			
			| 
				50
			 | 
			
				50
			 | 
			
			
				       </el-table> 
			 | 
		
	
		
			
			| 
				51
			 | 
			
				51
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				52
			 | 
			
				
			 | 
			
			
				-      <div v-show="!listLoading" class="pagination-container"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				52
			 | 
			
			
				+      <!-- <div v-show="!listLoading" class="pagination-container"> 
			 | 
		
	
		
			
			| 
				53
			 | 
			
				53
			 | 
			
			
				         <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="listQuery.page" 
			 | 
		
	
		
			
			| 
				54
			 | 
			
				54
			 | 
			
			
				           :page-sizes="[10,20,30, 50]" :page-size="listQuery.limit" layout="total, sizes, prev, pager, next, jumper" :total="total"> 
			 | 
		
	
		
			
			| 
				55
			 | 
			
				55
			 | 
			
			
				         </el-pagination> 
			 | 
		
	
		
			
			| 
				56
			 | 
			
				
			 | 
			
			
				-      </div> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				56
			 | 
			
			
				+      </div> --> 
			 | 
		
	
		
			
			| 
				57
			 | 
			
				57
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				58
			 | 
			
				58
			 | 
			
			
				       <el-dialog title="個人詳細資料" :visible.sync="dialogFormVisible" width="75%" center> 
			 | 
		
	
		
			
			| 
				59
			 | 
			
				59
			 | 
			
			
				         <el-table :data="dialogList" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -96,7 +96,7 @@ 
			 | 
		
	
		
			
			| 
				96
			 | 
			
				96
			 | 
			
			
				 <script> 
			 | 
		
	
		
			
			| 
				97
			 | 
			
				97
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				98
			 | 
			
				98
			 | 
			
			
				 import { mapActions, mapGetters } from 'vuex' 
			 | 
		
	
		
			
			| 
				99
			 | 
			
				
			 | 
			
			
				-import { fetchGameHistory, fetchChipsHistory, fetchPersonGameDetail } from '@/api/gambleMember' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				99
			 | 
			
			
				+import { fetchGameHistory, fetchChipsHistory, fetchPersonGameDetail, fetchPunishment } from '@/api/gambleMember' 
			 | 
		
	
		
			
			| 
				100
			 | 
			
				100
			 | 
			
			
				 import { fetchCurrentChips } from '@/api/gambleGameBucket' 
			 | 
		
	
		
			
			| 
				101
			 | 
			
				101
			 | 
			
			
				 import waves from '@/directive/waves' // 水波纹指令 
			 | 
		
	
		
			
			| 
				102
			 | 
			
				102
			 | 
			
			
				 import moment from 'moment-timezone' 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -117,7 +117,7 @@ export default { 
			 | 
		
	
		
			
			| 
				117
			 | 
			
				117
			 | 
			
			
				       listLoading: true, 
			 | 
		
	
		
			
			| 
				118
			 | 
			
				118
			 | 
			
			
				       listQuery: {  
			 | 
		
	
		
			
			| 
				119
			 | 
			
				119
			 | 
			
			
				         page: 1,  
			 | 
		
	
		
			
			| 
				120
			 | 
			
				
			 | 
			
			
				-        limit: 20,  
			 | 
		
	
		
			
			| 
				
			 | 
			
				120
			 | 
			
			
				+        limit: 9999999999,  
			 | 
		
	
		
			
			| 
				121
			 | 
			
				121
			 | 
			
			
				         startAt: null,  
			 | 
		
	
		
			
			| 
				122
			 | 
			
				122
			 | 
			
			
				         endAt: null  
			 | 
		
	
		
			
			| 
				123
			 | 
			
				123
			 | 
			
			
				       },  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -168,6 +168,7 @@ export default { 
			 | 
		
	
		
			
			| 
				168
			 | 
			
				168
			 | 
			
			
				       this.listLoading = true 
			 | 
		
	
		
			
			| 
				169
			 | 
			
				169
			 | 
			
			
				       //this.list = [] 
			 | 
		
	
		
			
			| 
				170
			 | 
			
				170
			 | 
			
			
				       await fetchGameHistory(this.data.thirdLayer, this.listQuery).then(response => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				171
			 | 
			
			
				+        this.list = [] 
			 | 
		
	
		
			
			| 
				171
			 | 
			
				172
			 | 
			
			
				         this.chipLogList = response.data 
			 | 
		
	
		
			
			| 
				172
			 | 
			
				173
			 | 
			
			
				         this.tempCurrentChips = [] 
			 | 
		
	
		
			
			| 
				173
			 | 
			
				174
			 | 
			
			
				         this.chipLogList.map((item) => { 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -204,6 +205,17 @@ export default { 
			 | 
		
	
		
			
			| 
				204
			 | 
			
				205
			 | 
			
			
				           }) 
			 | 
		
	
		
			
			| 
				205
			 | 
			
				206
			 | 
			
			
				         }) 
			 | 
		
	
		
			
			| 
				206
			 | 
			
				207
			 | 
			
			
				       }) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				208
			 | 
			
			
				+      await fetchPunishment(this.data.thirdLayer).then(response => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				209
			 | 
			
			
				+          response.data.map(item => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				210
			 | 
			
			
				+            this.list.unshift({ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				211
			 | 
			
			
				+              id: item.id, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				212
			 | 
			
			
				+              createdAt: item.createdAt, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				213
			 | 
			
			
				+              type: item.rule, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				214
			 | 
			
			
				+              amount: item.chips, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				215
			 | 
			
			
				+              wallet: ` ` 
			 | 
		
	
		
			
			| 
				
			 | 
			
				216
			 | 
			
			
				+            }) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				217
			 | 
			
			
				+          }) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				218
			 | 
			
			
				+      }) 
			 | 
		
	
		
			
			| 
				207
			 | 
			
				219
			 | 
			
			
				       this.list.sort(function compare(a, b) { 
			 | 
		
	
		
			
			| 
				208
			 | 
			
				220
			 | 
			
			
				         const dateA = new Date(a.createdAt); 
			 | 
		
	
		
			
			| 
				209
			 | 
			
				221
			 | 
			
			
				         const dateB = new Date(b.createdAt); 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -216,6 +228,8 @@ export default { 
			 | 
		
	
		
			
			| 
				216
			 | 
			
				228
			 | 
			
			
				       this.listLoading = true 
			 | 
		
	
		
			
			| 
				217
			 | 
			
				229
			 | 
			
			
				       this.dialogFormVisible = true 
			 | 
		
	
		
			
			| 
				218
			 | 
			
				230
			 | 
			
			
				       fetchPersonGameDetail(this.data.thirdLayer.id, row.id).then(response => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				231
			 | 
			
			
				+        console.log('params', this.data.thirdLayer.id, row.id) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				232
			 | 
			
			
				+        console.log('rows', response.data.rows) 
			 | 
		
	
		
			
			| 
				219
			 | 
			
				233
			 | 
			
			
				         this.dialogList = response.data.rows 
			 | 
		
	
		
			
			| 
				220
			 | 
			
				234
			 | 
			
			
				         this.listLoading = false 
			 | 
		
	
		
			
			| 
				221
			 | 
			
				235
			 | 
			
			
				       }) 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -227,7 +241,7 @@ export default { 
			 | 
		
	
		
			
			| 
				227
			 | 
			
				241
			 | 
			
			
				       this.SetData({layer:4, data: temp}) 
			 | 
		
	
		
			
			| 
				228
			 | 
			
				242
			 | 
			
			
				     }, 
			 | 
		
	
		
			
			| 
				229
			 | 
			
				243
			 | 
			
			
				     handleFilter() { 
			 | 
		
	
		
			
			| 
				230
			 | 
			
				
			 | 
			
			
				-      this.listQuery.page = 1  
			 | 
		
	
		
			
			| 
				
			 | 
			
				244
			 | 
			
			
				+      // this.listQuery.page = 1  
			 | 
		
	
		
			
			| 
				231
			 | 
			
				245
			 | 
			
			
				       if (this.date) {  
			 | 
		
	
		
			
			| 
				232
			 | 
			
				246
			 | 
			
			
				         this.listQuery.startAt = moment.utc(this.date[0]).format()  
			 | 
		
	
		
			
			| 
				233
			 | 
			
				247
			 | 
			
			
				         this.listQuery.endAt = moment.utc(this.date[1]).format()   
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -237,14 +251,14 @@ export default { 
			 | 
		
	
		
			
			| 
				237
			 | 
			
				251
			 | 
			
			
				       } 
			 | 
		
	
		
			
			| 
				238
			 | 
			
				252
			 | 
			
			
				       this.getList() 
			 | 
		
	
		
			
			| 
				239
			 | 
			
				253
			 | 
			
			
				     }, 
			 | 
		
	
		
			
			| 
				240
			 | 
			
				
			 | 
			
			
				-    handleSizeChange(val) { 
			 | 
		
	
		
			
			| 
				241
			 | 
			
				
			 | 
			
			
				-      this.listQuery.limit = val 
			 | 
		
	
		
			
			| 
				242
			 | 
			
				
			 | 
			
			
				-      this.getList() 
			 | 
		
	
		
			
			| 
				243
			 | 
			
				
			 | 
			
			
				-    }, 
			 | 
		
	
		
			
			| 
				244
			 | 
			
				
			 | 
			
			
				-    handleCurrentChange(val) { 
			 | 
		
	
		
			
			| 
				245
			 | 
			
				
			 | 
			
			
				-      this.listQuery.page = val 
			 | 
		
	
		
			
			| 
				246
			 | 
			
				
			 | 
			
			
				-      this.getList() 
			 | 
		
	
		
			
			| 
				247
			 | 
			
				
			 | 
			
			
				-    }, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				254
			 | 
			
			
				+    // handleSizeChange(val) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				255
			 | 
			
			
				+    //   this.listQuery.limit = val 
			 | 
		
	
		
			
			| 
				
			 | 
			
				256
			 | 
			
			
				+    //   this.getList() 
			 | 
		
	
		
			
			| 
				
			 | 
			
				257
			 | 
			
			
				+    // }, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				258
			 | 
			
			
				+    // handleCurrentChange(val) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				259
			 | 
			
			
				+    //   this.listQuery.page = val 
			 | 
		
	
		
			
			| 
				
			 | 
			
				260
			 | 
			
			
				+    //   this.getList() 
			 | 
		
	
		
			
			| 
				
			 | 
			
				261
			 | 
			
			
				+    // }, 
			 | 
		
	
		
			
			| 
				248
			 | 
			
				262
			 | 
			
			
				     moment(time) { 
			 | 
		
	
		
			
			| 
				249
			 | 
			
				263
			 | 
			
			
				       return moment(time).tz('Asia/Taipei').format('YYYY-MM-DD HH:mm:ss') 
			 | 
		
	
		
			
			| 
				250
			 | 
			
				264
			 | 
			
			
				     }, 
			 |