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() { async updateGdt() {
const result2 = await communityAPI.transactionsgdt(this.$store.state.sessionId) const result2 = await communityAPI.transactionsgdt(this.$store.state.sessionId)
console.log(' communityAPI.transactionsgdt') 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 = this.transactionsGdt =
{ {
state: 'success', state: 'success',
@ -209,7 +212,8 @@ export default {
transactionGdtExecutingCount: 4500, transactionGdtExecutingCount: 4500,
count: 4, count: 4,
} }
this.transactionGdtCount = this.transactionsGdt.count */
//this.transactionGdtCount = this.transactionsGdt.count
// console.log('transactionGdtCount', this.transactionGdtCount) // console.log('transactionGdtCount', this.transactionGdtCount)
}, },
updateBalance(ammount) { updateBalance(ammount) {

View File

@ -14,18 +14,18 @@
amount2, amount2,
factor2, factor2,
gdt, gdt,
} in this.transactionsGdt.gdt" } in this.transactionsGdt"
:key="id" :key="id"
> >
<div class="d-flex w-100 justify-content-between"> <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> <small>{{ $d($moment(date), 'long') }} {{ $i18n.locale === 'de' ? 'Uhr' : '' }}</small>
</div> </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> <small>
{{ id }} {{ amount }} {{ date }} {{ email }} {{ comment }} {{ coupon_code }} {{ id }} {{ amount }} {{ date }} {{ email }} {{ comment }} {{ coupon_code }}
{{ gdt_entry_type_id }} {{ factor }} {{ amount2 }} {{ factor2 }} {{ gdt }} {{ gdt_entry_type_id }} {{ factor }} {{ amount2 }} {{ factor2 }} {{ gdt }}