geer-builder 1.2.873 → 1.2.874
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dialogs/ChooseSlotDialog.vue +10 -5
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
<div v-if="!is_load">
|
|
13
13
|
<div class="flex-slot" v-if="user_data">
|
|
14
14
|
<div id="choose-slot" tabindex="0" v-for="(field, i) in user_data.slot_list" :key="i" class="slot-holder" @click="chooseSlot(i)">
|
|
15
|
+
<div class="flex-item">{{field.ctr}}</div>
|
|
15
16
|
<div class="flex-item">{{field.slot_code}}</div>
|
|
16
17
|
<div class="flex-item" v-if="field.membership">{{field.membership.membership_name}}</div>
|
|
17
18
|
<div class="flex-item" v-if="field.rank">{{field.rank.rank_name}}</div>
|
|
@@ -100,20 +101,24 @@ export default {
|
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
this.user_data = data[0];
|
|
104
|
+
let ctr = 1;
|
|
103
105
|
if(this.user_data)
|
|
104
106
|
{
|
|
105
107
|
if(this.user_data.hasOwnProperty('slot_owned') && this.user_data.slot_owned > 0)
|
|
106
108
|
{
|
|
109
|
+
let get_slot_lists = await new this.db_slot.collection().where('owner', '==', this.user_data.id).orderBy('created_date', 'desc')
|
|
107
110
|
let arr = []
|
|
108
|
-
for (let slot of
|
|
111
|
+
for (let slot of get_slot_lists.docs)
|
|
109
112
|
{
|
|
113
|
+
let data_get = slot.data();
|
|
110
114
|
let temp = {};
|
|
111
115
|
let qwe= {};
|
|
112
|
-
|
|
113
|
-
qwe.
|
|
114
|
-
qwe.
|
|
115
|
-
qwe.
|
|
116
|
+
qwe.slot_code = data_get.slot_code;
|
|
117
|
+
qwe.membership = data_get.membership;
|
|
118
|
+
qwe.rank = data_get.rank;
|
|
119
|
+
qwe.ctr = ctr;
|
|
116
120
|
arr.push(qwe);
|
|
121
|
+
ctr++;
|
|
117
122
|
}
|
|
118
123
|
|
|
119
124
|
this.user_data.slot_list = arr;
|