Unknown 7 years ago
parent
commit
8c16d8f439
2 changed files with 15 additions and 4 deletions
  1. 10 2
      src/api/gambleGameBucket.js
  2. 5 2
      src/views/gambleGameBucket/index.vue

+ 10 - 2
src/api/gambleGameBucket.js

@@ -14,10 +14,18 @@ export function fetchList(query) {
14 14
   })
15 15
 }
16 16
 
17
-export function fetchDetail(data) {
17
+export function fetchMemberRecords(data) {
18 18
   const round = 1
19 19
   return request({
20
-    url: `/gambleGameBuckets/${data.id}/round/${round}/detail`,
20
+    url: `/gambleGameBuckets/${data.id}/round/${round}/memberRecords`,
21
+    method: 'get'
22
+  })
23
+}
24
+
25
+export function fetchDealingRecords(data) {
26
+  const round = 1
27
+  return request({
28
+    url: `/gambleGameBuckets/${data.id}/round/${round}/dealingRecords`,
21 29
     method: 'get'
22 30
   })
23 31
 }

+ 5 - 2
src/views/gambleGameBucket/index.vue

@@ -58,7 +58,7 @@
58 58
 </template>
59 59
 
60 60
 <script>
61
-import { fetchList, fetchDetail } from '@/api/gambleGameBucket'
61
+import { fetchList, fetchMemberRecords, fetchDealingRecords } from '@/api/gambleGameBucket'
62 62
 
63 63
 export default {
64 64
   data() {
@@ -102,7 +102,10 @@ export default {
102 102
     },
103 103
     handleDialog(row) {
104 104
       this.temp = Object.assign({}, row) // copy obj
105
-      fetchDetail(row).then(response => {
105
+      fetchMemberRecords(row).then(response => {
106
+        console.log(response.data)
107
+      })
108
+      fetchDealingRecords(row).then(response => {
106 109
         console.log(response.data)
107 110
       })
108 111
       // router.push({ path: '/gambleGameBucket/index/detail' })