Sfoglia il codice sorgente

need fetchQueueByProfileId but need data structure info

tags/0.0.1
diaseu 4 anni fa
parent
commit
d0e4ee9b21
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5
    1
      frontend/src/views/home.vue

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

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