geer-builder 1.2.874 → 1.2.875
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 +5 -10
- package/package.json +1 -1
|
@@ -12,7 +12,6 @@
|
|
|
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>
|
|
16
15
|
<div class="flex-item">{{field.slot_code}}</div>
|
|
17
16
|
<div class="flex-item" v-if="field.membership">{{field.membership.membership_name}}</div>
|
|
18
17
|
<div class="flex-item" v-if="field.rank">{{field.rank.rank_name}}</div>
|
|
@@ -101,24 +100,20 @@ export default {
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
this.user_data = data[0];
|
|
104
|
-
let ctr = 1;
|
|
105
103
|
if(this.user_data)
|
|
106
104
|
{
|
|
107
105
|
if(this.user_data.hasOwnProperty('slot_owned') && this.user_data.slot_owned > 0)
|
|
108
106
|
{
|
|
109
|
-
let get_slot_lists = await new this.db_slot.collection().where('owner', '==', this.user_data.id).orderBy('created_date', 'desc')
|
|
110
107
|
let arr = []
|
|
111
|
-
for (let slot of
|
|
108
|
+
for (let slot of this.user_data.slot_list)
|
|
112
109
|
{
|
|
113
|
-
let data_get = slot.data();
|
|
114
110
|
let temp = {};
|
|
115
111
|
let qwe= {};
|
|
116
|
-
|
|
117
|
-
qwe.
|
|
118
|
-
qwe.
|
|
119
|
-
qwe.
|
|
112
|
+
temp = await this.db_slot.doc(slot).get();
|
|
113
|
+
qwe.slot_code = slot;
|
|
114
|
+
qwe.membership = temp.data().membership;
|
|
115
|
+
qwe.rank = temp.data().rank;
|
|
120
116
|
arr.push(qwe);
|
|
121
|
-
ctr++;
|
|
122
117
|
}
|
|
123
118
|
|
|
124
119
|
this.user_data.slot_list = arr;
|