|  | @@ -6,27 +6,67 @@
 | 
	
		
			
			| 6 | 6 |          </el-option>
 | 
	
		
			
			| 7 | 7 |        </el-select>
 | 
	
		
			
			| 8 | 8 |    </div>
 | 
	
		
			
			|  | 9 | +    <el-table :data="dealing" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
 | 
	
		
			
			|  | 10 | +      style="width: 100%">
 | 
	
		
			
			|  | 11 | +      <el-table-column label="本期開獎" align="center">      
 | 
	
		
			
			|  | 12 | +        <el-table-column label="第一門">
 | 
	
		
			
			|  | 13 | +          <template slot-scope="scope">
 | 
	
		
			
			|  | 14 | +            <span>{{`${scope.row.point1_0} | ${scope.row.point2_0} / ${scope.row.totalPoints_0}`}}</span>
 | 
	
		
			
			|  | 15 | +          </template>
 | 
	
		
			
			|  | 16 | +        </el-table-column>
 | 
	
		
			
			|  | 17 | +        <el-table-column label="第二門">
 | 
	
		
			
			|  | 18 | +          <template slot-scope="scope">
 | 
	
		
			
			|  | 19 | +            <span>{{`${scope.row.point1_1} | ${scope.row.point2_1} / ${scope.row.totalPoints_1}`}}</span>
 | 
	
		
			
			|  | 20 | +          </template>
 | 
	
		
			
			|  | 21 | +        </el-table-column>
 | 
	
		
			
			|  | 22 | +        <el-table-column label="第三門">
 | 
	
		
			
			|  | 23 | +          <template slot-scope="scope">
 | 
	
		
			
			|  | 24 | +            <span>{{`${scope.row.point1_2} | ${scope.row.point2_2} / ${scope.row.totalPoints_2}`}}</span>
 | 
	
		
			
			|  | 25 | +          </template>
 | 
	
		
			
			|  | 26 | +        </el-table-column>
 | 
	
		
			
			|  | 27 | +        <el-table-column label="第四門">
 | 
	
		
			
			|  | 28 | +          <template slot-scope="scope">
 | 
	
		
			
			|  | 29 | +            <span>{{`${scope.row.point1_3} | ${scope.row.point2_3} / ${scope.row.totalPoints_3}`}}</span>
 | 
	
		
			
			|  | 30 | +          </template>
 | 
	
		
			
			|  | 31 | +        </el-table-column>
 | 
	
		
			
			|  | 32 | +        <el-table-column label="第五門">
 | 
	
		
			
			|  | 33 | +          <template slot-scope="scope">
 | 
	
		
			
			|  | 34 | +            <span>{{`${scope.row.point1_4} | ${scope.row.point2_4} / ${scope.row.totalPoints_4}`}}</span>
 | 
	
		
			
			|  | 35 | +          </template>
 | 
	
		
			
			|  | 36 | +        </el-table-column>
 | 
	
		
			
			|  | 37 | +        <el-table-column label="第六門">
 | 
	
		
			
			|  | 38 | +          <template slot-scope="scope">
 | 
	
		
			
			|  | 39 | +            <span>{{`${scope.row.point1_5} | ${scope.row.point2_5} / ${scope.row.totalPoints_5}`}}</span>
 | 
	
		
			
			|  | 40 | +          </template>
 | 
	
		
			
			|  | 41 | +        </el-table-column>
 | 
	
		
			
			|  | 42 | +      </el-table-column>      
 | 
	
		
			
			|  | 43 | +    </el-table>
 | 
	
		
			
			| 9 | 44 |      <el-table :data="detail" :span-method="objectSpanMethod"  v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
 | 
	
		
			
			| 10 | 45 |        style="width: 100%">
 | 
	
		
			
			| 11 |  | -      <el-table-column prop="MemberRecord.GambleMember.name" label="玩家" width="180">
 | 
	
		
			
			| 12 |  | -      </el-table-column>
 | 
	
		
			
			| 13 |  | -      <el-table-column  label="押">
 | 
	
		
			
			| 14 |  | -        <template slot-scope="scope">
 | 
	
		
			
			| 15 |  | -          <span>{{`${scope.row.MemberRecord.door} / ${scope.row.MemberRecord.wager}`}}</span>
 | 
	
		
			
			| 16 |  | -        </template>
 | 
	
		
			
			| 17 |  | -      </el-table-column>
 | 
	
		
			
			| 18 |  | -      <el-table-column prop="DealingRecord.totalPoints" label="點數">
 | 
	
		
			
			| 19 |  | -      </el-table-column>
 | 
	
		
			
			| 20 |  | -      <el-table-column prop="MemberRecord.earned" label="輸贏">
 | 
	
		
			
			| 21 |  | -      </el-table-column>
 | 
	
		
			
			| 22 |  | -      <el-table-column prop="amount3" label="抽水">
 | 
	
		
			
			| 23 |  | -      </el-table-column>
 | 
	
		
			
			| 24 |  | -      <el-table-column prop="Membehips" label="輸贏合計">
 | 
	
		
			
			| 25 |  | -      </el-table-column>
 | 
	
		
			
			| 26 |  | -      <el-table-column prop="amount3" label="福利">
 | 
	
		
			
			| 27 |  | -      </el-table-column>
 | 
	
		
			
			| 28 |  | -      <el-table-column prop="MemberRecord.GambleMember.chips" label="最終積分">
 | 
	
		
			
			| 29 |  | -      </el-table-column>
 | 
	
		
			
			|  | 46 | +      <el-table-column label="此輪結果" align="center">
 | 
	
		
			
			|  | 47 | +        <el-table-column prop="MemberRecord.GambleMember.name" label="玩家" width="180">
 | 
	
		
			
			|  | 48 | +        </el-table-column>
 | 
	
		
			
			|  | 49 | +        <el-table-column  label="押">
 | 
	
		
			
			|  | 50 | +          <template slot-scope="scope">
 | 
	
		
			
			|  | 51 | +            <span>{{`${scope.row.MemberRecord.door} / ${scope.row.MemberRecord.wager}`}}</span>
 | 
	
		
			
			|  | 52 | +          </template>
 | 
	
		
			
			|  | 53 | +        </el-table-column>
 | 
	
		
			
			|  | 54 | +        <el-table-column prop="DealingRecord.totalPoints" label="點數">
 | 
	
		
			
			|  | 55 | +          <template slot-scope="scope">
 | 
	
		
			
			|  | 56 | +            <span>{{`${scope.row.DealingRecord.point1} | ${scope.row.DealingRecord.point2} / ${scope.row.DealingRecord.totalPoints}`}}</span>
 | 
	
		
			
			|  | 57 | +          </template>
 | 
	
		
			
			|  | 58 | +        </el-table-column>
 | 
	
		
			
			|  | 59 | +        <el-table-column prop="MemberRecord.earned" label="輸贏">
 | 
	
		
			
			|  | 60 | +        </el-table-column>
 | 
	
		
			
			|  | 61 | +        <el-table-column prop="MemberRecord.serviceFees" label="抽水">
 | 
	
		
			
			|  | 62 | +        </el-table-column>
 | 
	
		
			
			|  | 63 | +        <el-table-column prop="Membehips" label="輸贏合計">
 | 
	
		
			
			|  | 64 | +        </el-table-column>
 | 
	
		
			
			|  | 65 | +        <el-table-column prop="ass" label="福利">
 | 
	
		
			
			|  | 66 | +        </el-table-column>
 | 
	
		
			
			|  | 67 | +        <el-table-column prop="MemberRecord.GambleMember.chips" label="最終積分">
 | 
	
		
			
			|  | 68 | +        </el-table-column>
 | 
	
		
			
			|  | 69 | +      </el-table-column>      
 | 
	
		
			
			| 30 | 70 |      </el-table>
 | 
	
		
			
			| 31 | 71 |  
 | 
	
		
			
			| 32 | 72 |  
 | 
	
	
		
			
			|  | @@ -57,7 +97,7 @@
 | 
	
		
			
			| 57 | 97 |  <script>
 | 
	
		
			
			| 58 | 98 |  
 | 
	
		
			
			| 59 | 99 |  import { mapGetters, mapActions } from 'vuex'
 | 
	
		
			
			| 60 |  | -import { fetchDetails, fetchRoundCount } from '@/api/gambleGameBucket'
 | 
	
		
			
			|  | 100 | +import { fetchDetails, fetchRoundCount, fetchDealingRecords } from '@/api/gambleGameBucket'
 | 
	
		
			
			| 61 | 101 |  import { fetchList } from '@/api/gambleMember'
 | 
	
		
			
			| 62 | 102 |  import _ from 'lodash'
 | 
	
		
			
			| 63 | 103 |  
 | 
	
	
		
			
			|  | @@ -78,7 +118,8 @@ export default {
 | 
	
		
			
			| 78 | 118 |        rowIndex: 0,
 | 
	
		
			
			| 79 | 119 |        colIndex: 0,
 | 
	
		
			
			| 80 | 120 |        roundOptions: [],
 | 
	
		
			
			| 81 |  | -      members: []
 | 
	
		
			
			|  | 121 | +      members: [],
 | 
	
		
			
			|  | 122 | +      dealing: []
 | 
	
		
			
			| 82 | 123 |      }
 | 
	
		
			
			| 83 | 124 |    },
 | 
	
		
			
			| 84 | 125 |    props: ['bucket'],
 | 
	
	
		
			
			|  | @@ -126,10 +167,51 @@ export default {
 | 
	
		
			
			| 126 | 167 |      ]),
 | 
	
		
			
			| 127 | 168 |      getList() {
 | 
	
		
			
			| 128 | 169 |        this.listLoading = true
 | 
	
		
			
			| 129 |  | -      let detailTemp
 | 
	
		
			
			|  | 170 | +      let detailTemp, dealingTemp
 | 
	
		
			
			| 130 | 171 |        this.detail = []
 | 
	
		
			
			| 131 |  | -      fetchDetails(this.bucket, this.listQuery).then(reponse => {
 | 
	
		
			
			| 132 |  | -        detailTemp = reponse.data.rows.filter(record => {
 | 
	
		
			
			|  | 172 | +      fetchDealingRecords(this.bucket, this.listQuery).then(response => {
 | 
	
		
			
			|  | 173 | +        dealingTemp = response.data.rows.filter(record => {
 | 
	
		
			
			|  | 174 | +          return record.door !== -1
 | 
	
		
			
			|  | 175 | +        })
 | 
	
		
			
			|  | 176 | +        let deal = {}   
 | 
	
		
			
			|  | 177 | +        dealingTemp.map((record, index) => {
 | 
	
		
			
			|  | 178 | +          if (index % 6 === 0) {
 | 
	
		
			
			|  | 179 | +            deal.door_0 = record.door
 | 
	
		
			
			|  | 180 | +            deal.point1_0 = record.point1
 | 
	
		
			
			|  | 181 | +            deal.point2_0 = record.point2
 | 
	
		
			
			|  | 182 | +            deal.totalPoints_0 = record.totalPoints
 | 
	
		
			
			|  | 183 | +          } else if (index % 6 === 1) {
 | 
	
		
			
			|  | 184 | +            deal.door_1 = record.door
 | 
	
		
			
			|  | 185 | +            deal.point1_1 = record.point1
 | 
	
		
			
			|  | 186 | +            deal.point2_1 = record.point2
 | 
	
		
			
			|  | 187 | +            deal.totalPoints_1 = record.totalPoints
 | 
	
		
			
			|  | 188 | +          }else if (index % 6 === 2) {
 | 
	
		
			
			|  | 189 | +            deal.door_2 = record.door
 | 
	
		
			
			|  | 190 | +            deal.point1_2 = record.point1
 | 
	
		
			
			|  | 191 | +            deal.point2_2 = record.point2
 | 
	
		
			
			|  | 192 | +            deal.totalPoints_2 = record.totalPoints
 | 
	
		
			
			|  | 193 | +          }else if (index % 6 === 3) {
 | 
	
		
			
			|  | 194 | +            deal.door_3 = record.door
 | 
	
		
			
			|  | 195 | +            deal.point1_3 = record.point1
 | 
	
		
			
			|  | 196 | +            deal.point2_3 = record.point2
 | 
	
		
			
			|  | 197 | +            deal.totalPoints_3 = record.totalPoints
 | 
	
		
			
			|  | 198 | +          }else if (index % 6 === 4) {
 | 
	
		
			
			|  | 199 | +            deal.door_4 = record.door
 | 
	
		
			
			|  | 200 | +            deal.point1_4 = record.point1
 | 
	
		
			
			|  | 201 | +            deal.point2_4 = record.point2
 | 
	
		
			
			|  | 202 | +            deal.totalPoints_4 = record.totalPoints
 | 
	
		
			
			|  | 203 | +          } else if (index % 6 === 5) {
 | 
	
		
			
			|  | 204 | +            deal.door_5 = record.door
 | 
	
		
			
			|  | 205 | +            deal.point1_5 = record.point1
 | 
	
		
			
			|  | 206 | +            deal.point2_5 = record.point2
 | 
	
		
			
			|  | 207 | +            deal.totalPoints_5 = record.totalPoints
 | 
	
		
			
			|  | 208 | +            this.dealing.push(deal)
 | 
	
		
			
			|  | 209 | +            deal = {}
 | 
	
		
			
			|  | 210 | +          }
 | 
	
		
			
			|  | 211 | +        })
 | 
	
		
			
			|  | 212 | +      })
 | 
	
		
			
			|  | 213 | +      fetchDetails(this.bucket, this.listQuery).then(response => {
 | 
	
		
			
			|  | 214 | +        detailTemp = response.data.rows.filter(record => {
 | 
	
		
			
			| 133 | 215 |            return record.DealingRecord.door !== -1 &&
 | 
	
		
			
			| 134 | 216 |              record.MemberRecord.door !== -1 &&
 | 
	
		
			
			| 135 | 217 |              record.MemberRecord.door === record.DealingRecord.door
 | 
	
	
		
			
			|  | @@ -194,6 +276,7 @@ export default {
 | 
	
		
			
			| 194 | 276 |        }
 | 
	
		
			
			| 195 | 277 |      },
 | 
	
		
			
			| 196 | 278 |      handleFilter() {
 | 
	
		
			
			|  | 279 | +      this.dealing = []
 | 
	
		
			
			| 197 | 280 |        this.getList()
 | 
	
		
			
			| 198 | 281 |      }
 | 
	
		
			
			| 199 | 282 |    },
 |