|
@@ -24,32 +24,32 @@
|
24
|
24
|
<span>{{scope.$index === 0 ?"點數":"門主"}}</span>
|
25
|
25
|
</template>
|
26
|
26
|
</el-table-column>
|
27
|
|
- <el-table-column label="第一門">
|
|
27
|
+ <el-table-column label="第一門" :label-class-name="initDoor(1)">
|
28
|
28
|
<template slot-scope="scope">
|
29
|
29
|
<span>{{doorTableSwitch(scope.$index, 0)}}</span>
|
30
|
30
|
</template>
|
31
|
31
|
</el-table-column>
|
32
|
|
- <el-table-column label="第二門">
|
|
32
|
+ <el-table-column label="第二門" :label-class-name="initDoor(2)">
|
33
|
33
|
<template slot-scope="scope">
|
34
|
34
|
<span>{{doorTableSwitch(scope.$index, 1)}}</span>
|
35
|
35
|
</template>
|
36
|
36
|
</el-table-column>
|
37
|
|
- <el-table-column label="第三門">
|
|
37
|
+ <el-table-column label="第三門" :label-class-name="initDoor(3)">
|
38
|
38
|
<template slot-scope="scope">
|
39
|
39
|
<span>{{doorTableSwitch(scope.$index, 2)}}</span>
|
40
|
40
|
</template>
|
41
|
41
|
</el-table-column>
|
42
|
|
- <el-table-column label="第四門">
|
|
42
|
+ <el-table-column label="第四門" :label-class-name="initDoor(4)">
|
43
|
43
|
<template slot-scope="scope">
|
44
|
44
|
<span>{{doorTableSwitch(scope.$index, 3)}}</span>
|
45
|
45
|
</template>
|
46
|
46
|
</el-table-column>
|
47
|
|
- <el-table-column label="第五門">
|
|
47
|
+ <el-table-column label="第五門" :label-class-name="initDoor(5)">
|
48
|
48
|
<template slot-scope="scope">
|
49
|
49
|
<span>{{doorTableSwitch(scope.$index, 4)}}</span>
|
50
|
50
|
</template>
|
51
|
51
|
</el-table-column>
|
52
|
|
- <el-table-column label="第六門">
|
|
52
|
+ <el-table-column label="第六門" :label-class-name="initDoor(6)">
|
53
|
53
|
<template slot-scope="scope">
|
54
|
54
|
<span>{{doorTableSwitch(scope.$index, 5)}}</span>
|
55
|
55
|
</template>
|
|
@@ -138,7 +138,7 @@
|
138
|
138
|
<script>
|
139
|
139
|
|
140
|
140
|
import { mapGetters, mapActions } from 'vuex'
|
141
|
|
-import { fetchDetails, fetchRoundCount, fetchDealingRecords, fetchMemberRecords } from '@/api/gambleGameBucket'
|
|
141
|
+import { fetchDetails, fetchRoundCount, fetchDealingRecords, fetchMemberRecords, fetchRoundRecord } from '@/api/gambleGameBucket'
|
142
|
142
|
import { fetchGambleMemberList } from '@/api/gambleMember'
|
143
|
143
|
import { ponitTransform } from '@/utils/point'
|
144
|
144
|
import _ from 'lodash'
|
|
@@ -161,7 +161,8 @@ export default {
|
161
|
161
|
members: [],
|
162
|
162
|
dealing: [],
|
163
|
163
|
bookie: [],
|
164
|
|
- memberRecord: []
|
|
164
|
+ memberRecord: [],
|
|
165
|
+ initialDoor: 0,
|
165
|
166
|
}
|
166
|
167
|
},
|
167
|
168
|
created() {
|
|
@@ -296,6 +297,10 @@ export default {
|
296
|
297
|
this.func = eval(`(function() {${this.statement}})`)
|
297
|
298
|
})
|
298
|
299
|
|
|
300
|
+ fetchRoundRecord(this.data.secondLayer, this.query.secondLayer).then(response => {
|
|
301
|
+ this.initialDoor = response.data.initialDoor
|
|
302
|
+ })
|
|
303
|
+
|
299
|
304
|
this.listLoading = false
|
300
|
305
|
},
|
301
|
306
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
@@ -352,6 +357,10 @@ export default {
|
352
|
357
|
},
|
353
|
358
|
point(dealingRecord) {
|
354
|
359
|
return ponitTransform(dealingRecord)
|
|
360
|
+ },
|
|
361
|
+ initDoor(index) {
|
|
362
|
+ console.log(index===this.initialDoor)
|
|
363
|
+ return this.initialDoor === index ? `init` : ''
|
355
|
364
|
}
|
356
|
365
|
},
|
357
|
366
|
destroyed() {
|
|
@@ -359,3 +368,8 @@ export default {
|
359
|
368
|
}
|
360
|
369
|
}
|
361
|
370
|
</script>
|
|
371
|
+<style>
|
|
372
|
+ .el-table-column .init {
|
|
373
|
+ color: #F56C6C;
|
|
374
|
+ }
|
|
375
|
+</style>
|