|
@@ -20,7 +20,7 @@
|
20
|
20
|
</el-table-column>
|
21
|
21
|
<el-table-column align="center" label="操作">
|
22
|
22
|
<template slot-scope="scope">
|
23
|
|
- <el-button type="primary" size="mini" @click="handlePage(scope.row)">查看</el-button>
|
|
23
|
+ <el-button type="primary" size="mini" @click="handleDialog(scope.row)">查看</el-button>
|
24
|
24
|
</template>
|
25
|
25
|
</el-table-column>
|
26
|
26
|
</el-table>
|
|
@@ -58,7 +58,7 @@
|
58
|
58
|
</template>
|
59
|
59
|
|
60
|
60
|
<script>
|
61
|
|
-import { fetchList } from '@/api/gambleGameBucket'
|
|
61
|
+import { fetchList, fetchDetail } from '@/api/gambleGameBucket'
|
62
|
62
|
|
63
|
63
|
export default {
|
64
|
64
|
data() {
|
|
@@ -100,11 +100,29 @@ export default {
|
100
|
100
|
closeDialog() {
|
101
|
101
|
this.dialogVisible = false
|
102
|
102
|
},
|
103
|
|
- handlePage(row) {
|
|
103
|
+ handleDialog(row) {
|
104
|
104
|
this.temp = Object.assign({}, row) // copy obj
|
|
105
|
+ fetchDetail(row).then(response => {
|
|
106
|
+ console.log(response.data)
|
|
107
|
+ })
|
105
|
108
|
// router.push({ path: '/gambleGameBucket/index/detail' })
|
106
|
109
|
this.dialogVisible = true
|
107
|
110
|
},
|
|
111
|
+ objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
112
|
+ if (columnIndex === 0) {
|
|
113
|
+ if (rowIndex % 3 === 0) {
|
|
114
|
+ return {
|
|
115
|
+ rowspan: 3,
|
|
116
|
+ colspan: 1
|
|
117
|
+ };
|
|
118
|
+ } else {
|
|
119
|
+ return {
|
|
120
|
+ rowspan: 0,
|
|
121
|
+ colspan: 0
|
|
122
|
+ };
|
|
123
|
+ }
|
|
124
|
+ }
|
|
125
|
+ },
|
108
|
126
|
handleFilter() {
|
109
|
127
|
this.listQuery.page = 1
|
110
|
128
|
this.getList()
|