Browse Source

need fetchQueueByProfileId but need data structure info

tags/0.0.1
diaseu 4 years ago
parent
commit
d0e4ee9b21
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      frontend/src/views/home.vue

+ 5
- 1
frontend/src/views/home.vue View File

@@ -11,6 +11,7 @@ main.f-col.start.w-full
11 11
 import sidebar from '../components/Sidebar.vue'
12 12
 import mainNav from '../components/MainNav.vue'
13 13
 import profileCardList from '../components/ProfileCardList.vue'
14
+import { fetchSurveyByProfileId } from '../services'
14 15
 
15 16
 import batch_10 from '../../../backend/db/generated/_batch_10.js.ref'
16 17
 import batch_20 from '../../../backend/db/generated/_batch_20.js.ref'
@@ -28,6 +29,7 @@ export default {
28 29
         // this.mypid = auth.currentUser?.mypid || "99999";
29 30
         this.mypid = 21
30 31
         this.processProfiles()
32
+        // this.queueList = fetchQueueByProfileId(mypid)
31 33
     },
32 34
     methods: {
33 35
         parseBatch(allBatches) {
@@ -41,10 +43,12 @@ export default {
41 43
                 finished.users = [...p.users, ...finished.users]
42 44
                 finished.responses = [...p.responses, ...finished.responses]
43 45
             })
46
+            // console.log('parsed batch', finished)
44 47
             return finished
45 48
         },
46 49
         processProfiles() {
47 50
             const parsed = this.parseBatch([batch_10, batch_20, batch_30])
51
+            // const parsed = 
48 52
             const findUser = profile => {
49 53
                 return parsed.users.filter(u => u.user_id == profile.user_id)[0]
50 54
             }
@@ -65,7 +69,7 @@ export default {
65 69
                 })
66 70
                 this.swipables.push(p)
67 71
             })
68
-            console.log(this.swipables)
72
+            console.log('swipables', this.swipables)
69 73
         },
70 74
     },
71 75
 }

Loading…
Cancel
Save