|
|
@@ -1,11 +1,9 @@
|
|
1
|
1
|
<template lang="pug">
|
|
2
|
|
-sidebar
|
|
|
2
|
+sidebar(@updatePid="setPid")
|
|
3
|
3
|
main.f-col.start.w-full
|
|
4
|
4
|
article#home(v-if='!loading')
|
|
5
|
5
|
h1(v-if='user') {{ user.user_name }}
|
|
6
|
6
|
profile-card-list(:profiles='swipables' :pid='parseInt(mypid)' @reloadQueue='getQueue')
|
|
7
|
|
- input(v-model='mypid')
|
|
8
|
|
- button(@click='getQueue') Submit
|
|
9
|
7
|
p(v-else) Loading...
|
|
10
|
8
|
main-nav
|
|
11
|
9
|
</template>
|
|
|
@@ -29,14 +27,11 @@ export default {
|
|
29
|
27
|
mypid: null,
|
|
30
|
28
|
loading: true
|
|
31
|
29
|
}),
|
|
32
|
|
- async created() {
|
|
33
|
|
- // this.mypid = auth.currentUser?.mypid || "99999";
|
|
34
|
|
- this.mypid = 45
|
|
35
|
|
- // Uncomment below to use for batch file data
|
|
36
|
|
- // this.processProfilesFromBatch(this.parseBatch([batch_10, batch_20, batch_30]))
|
|
37
|
|
- this.getQueue()
|
|
38
|
|
- },
|
|
39
|
30
|
methods: {
|
|
|
31
|
+ setPid(pid) {
|
|
|
32
|
+ this.mypid = pid
|
|
|
33
|
+ this.getQueue()
|
|
|
34
|
+ },
|
|
40
|
35
|
async getQueue() {
|
|
41
|
36
|
this.loading = true
|
|
42
|
37
|
const queueList = await fetchQueueByProfileId(this.mypid)
|
|
|
@@ -53,8 +48,6 @@ export default {
|
|
53
|
48
|
}
|
|
54
|
49
|
formattedList.push(formatted)
|
|
55
|
50
|
})
|
|
56
|
|
- console.log('formattedList', formattedList)
|
|
57
|
|
- // formattedList.reverse()
|
|
58
|
51
|
this.swipables = formattedList
|
|
59
|
52
|
},
|
|
60
|
53
|
// For Batch Data Parsing & Processing
|
|
|
@@ -93,7 +86,6 @@ export default {
|
|
93
|
86
|
})
|
|
94
|
87
|
this.swipables.push(p)
|
|
95
|
88
|
})
|
|
96
|
|
- console.log('swipables', this.swipables)
|
|
97
|
89
|
},
|
|
98
|
90
|
},
|
|
99
|
91
|
}
|