step db request ok

This commit is contained in:
ogerly 2021-08-09 13:00:52 +02:00
parent d61b7d36d1
commit b48bbbb711
2 changed files with 12 additions and 8 deletions

View File

@ -147,8 +147,11 @@ export default {
async updateGdt() {
const result2 = await communityAPI.transactionsgdt(this.$store.state.sessionId)
console.log(' communityAPI.transactionsgdt')
console.log(result2)
console.log(result2.result)
console.log(result2.result.data.gdtEntries)
this.transactionsGdt = result2.result.data.gdtEntries
this.transactionGdtCount = result2.result.data.count
/*
this.transactionsGdt =
{
state: 'success',
@ -209,7 +212,8 @@ export default {
transactionGdtExecutingCount: 4500,
count: 4,
}
this.transactionGdtCount = this.transactionsGdt.count
*/
//this.transactionGdtCount = this.transactionsGdt.count
// console.log('transactionGdtCount', this.transactionGdtCount)
},
updateBalance(ammount) {

View File

@ -14,18 +14,18 @@
amount2,
factor2,
gdt,
} in this.transactionsGdt.gdt"
} in this.transactionsGdt"
:key="id"
>
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">{{ id }}: {{ email }}</h5>
<h5 class="mb-1"> Gradido Transform (GDT) erhalten {{ comment ? ': '+comment : '' }}</h5>
<small>{{ $d($moment(date), 'long') }} {{ $i18n.locale === 'de' ? 'Uhr' : '' }}</small>
</div>
{{ gdt_entry_type_id === 7 ? 'GDT in Euro gekauft' : 'GDT von gradido bekommen' }}
<div v-if="gdt_entry_type_id === 7">{{ amount }} GDT {{ amount / factor }}</div>
<div v-else>{{ amount }} GDT</div>
<div v-if="gdt_entry_type_id === 7">{{ amount }} GDT * {{factor}} = {{gdt}}</div>
<div v-else>{{ amount }} {{ gdt}} GDT</div>
<small>
{{ id }} {{ amount }} {{ date }} {{ email }} {{ comment }} {{ coupon_code }}
{{ gdt_entry_type_id }} {{ factor }} {{ amount2 }} {{ factor2 }} {{ gdt }}