|
@@ -19,7 +19,7 @@
|
19
|
19
|
</el-table-column>
|
20
|
20
|
<el-table-column align="center" label="操作">
|
21
|
21
|
<template slot-scope="scope">
|
22
|
|
- <el-button type="primary" size="mini" @click="handleView(scope.row)">查看</el-button>
|
|
22
|
+ <el-button type="primary" size="mini" @click="handleDialog(scope.row)">查看</el-button>
|
23
|
23
|
</template>
|
24
|
24
|
</el-table-column>
|
25
|
25
|
</el-table>
|
|
@@ -30,6 +30,34 @@
|
30
|
30
|
</el-pagination>
|
31
|
31
|
</div>
|
32
|
32
|
|
|
33
|
+ <el-dialog title="詳細" :visible.sync="dialogVisible">
|
|
34
|
+ <el-table :data="list" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
|
|
35
|
+ style="width: 100%">
|
|
36
|
+ <el-table-column label="ID">
|
|
37
|
+ <template slot-scope="scope">
|
|
38
|
+ {{scope.row.id}}
|
|
39
|
+ </template>
|
|
40
|
+ </el-table-column>
|
|
41
|
+ <el-table-column prop="GambleMember.name" label="莊家" width="200" align="center">
|
|
42
|
+ <!-- <template slot-scope="scope">
|
|
43
|
+ <span>{{scope.row.GambleMember.id}}</span>
|
|
44
|
+ </template> -->
|
|
45
|
+ </el-table-column>
|
|
46
|
+ <el-table-column align="center" label="時間" width="200">
|
|
47
|
+ <template slot-scope="scope">
|
|
48
|
+ <span>{{scope.row.createdAt}}</span>
|
|
49
|
+ </template>
|
|
50
|
+ </el-table-column>
|
|
51
|
+ <el-table-column align="center" label="操作">
|
|
52
|
+ <template slot-scope="scope">
|
|
53
|
+ <el-button type="primary" size="mini" @click="handleView(scope.row)">查看</el-button>
|
|
54
|
+ </template>
|
|
55
|
+ </el-table-column>
|
|
56
|
+ </el-table>
|
|
57
|
+ <div slot="footer" align="center" class="dialog-footer">
|
|
58
|
+ <el-button type="primary" @click="closeDialog">確 定</el-button>
|
|
59
|
+ </div>
|
|
60
|
+ </el-dialog>
|
33
|
61
|
</div>
|
34
|
62
|
</template>
|
35
|
63
|
|
|
@@ -58,6 +86,8 @@ export default {
|
58
|
86
|
chips: '',
|
59
|
87
|
depositChips: ''
|
60
|
88
|
},
|
|
89
|
+ dialogVisible: false,
|
|
90
|
+ dialogStatus: ''
|
61
|
91
|
}
|
62
|
92
|
},
|
63
|
93
|
created() {
|
|
@@ -72,6 +102,13 @@ export default {
|
72
|
102
|
this.listLoading = false
|
73
|
103
|
})
|
74
|
104
|
},
|
|
105
|
+ closeDialog() {
|
|
106
|
+ this.dialogVisible = false
|
|
107
|
+ },
|
|
108
|
+ handleDialog(row) {
|
|
109
|
+ this.temp = Object.assign({}, row) // copy obj
|
|
110
|
+ this.dialogVisible = true
|
|
111
|
+ },
|
75
|
112
|
handleFilter() {
|
76
|
113
|
this.listQuery.page = 1
|
77
|
114
|
this.getList()
|