mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
pull dario
This commit is contained in:
parent
79f80e2af8
commit
c17871f82b
@ -342,7 +342,7 @@ Ein GDT Eintrag sieht so aus:
|
|||||||
```
|
```
|
||||||
{
|
{
|
||||||
"id": 8857,
|
"id": 8857,
|
||||||
"amount": 1000, // = 10,00 Euro
|
"amount": 1000, // GDT
|
||||||
"date": "2020-06-17T14:12:00+00:00",
|
"date": "2020-06-17T14:12:00+00:00",
|
||||||
"email": "foerderkreis-1@gradido.org",
|
"email": "foerderkreis-1@gradido.org",
|
||||||
"comment": null,
|
"comment": null,
|
||||||
@ -379,8 +379,10 @@ Bis zum 5. (Bernd ist 2.)
|
|||||||
Diese Beziehung wird durch die connectEntries dargestellt.
|
Diese Beziehung wird durch die connectEntries dargestellt.
|
||||||
Insbesondere durch den publishersPath, connect enthält einfach nur alle mögliche Daten.
|
Insbesondere durch den publishersPath, connect enthält einfach nur alle mögliche Daten.
|
||||||
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
TODO: Update GDT-Server um paging und Zugriff auf alle Einträge zu erhalten, optimierter Zugriff
|
TODO: Update GDT-Server um paging und Zugriff auf alle Einträge zu erhalten, optimierter Zugriff
|
||||||
GET https://staging.gradido.net/state-balances/ajaxGdtTransactions
|
GET https://staging.gradido.net/state-balances/ajaxGdtTransactions
|
||||||
Liefert wenn alles in Ordnung ist:
|
Liefert wenn alles in Ordnung ist:
|
||||||
|
|
||||||
|
wenn nicht type 7 dann "amount" in euro ansonsten in GDT
|
||||||
@ -45,9 +45,9 @@ const communityAPI = {
|
|||||||
`${CONFIG.COMMUNITY_API_URL}state-balances/ajaxGdtOverview/${firstPage}/${items}/${order}/${sessionId}`,
|
`${CONFIG.COMMUNITY_API_URL}state-balances/ajaxGdtOverview/${firstPage}/${items}/${order}/${sessionId}`,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
//http://localhost/vue/public/json-example/admin_transactionGdt_list.json
|
/* http://localhost/vue/public/json-example/admin_transactionGdt_list.json
|
||||||
//http://localhost/state-balances/ajaxGdtOverview
|
http://localhost/state-balances/ajaxGdtOverview
|
||||||
/* create: async (sessionId, email, amount, memo, target_date = new Date() ) => {
|
create: async (sessionId, email, amount, memo, target_date = new Date() ) => {
|
||||||
const payload = {
|
const payload = {
|
||||||
sessionId,
|
sessionId,
|
||||||
email,
|
email,
|
||||||
|
|||||||
@ -49,7 +49,6 @@
|
|||||||
|
|
||||||
<div @click="$sidebar.displaySidebar(false)">
|
<div @click="$sidebar.displaySidebar(false)">
|
||||||
<fade-transition :duration="200" origin="center top" mode="out-in">
|
<fade-transition :duration="200" origin="center top" mode="out-in">
|
||||||
<!-- your content here -->
|
|
||||||
<router-view
|
<router-view
|
||||||
:balance="balance"
|
:balance="balance"
|
||||||
:gdt-balance="GdtBalance"
|
:gdt-balance="GdtBalance"
|
||||||
@ -60,12 +59,10 @@
|
|||||||
@update-transactions="updateTransactions"
|
@update-transactions="updateTransactions"
|
||||||
@updateGdt="updateGdt"
|
@updateGdt="updateGdt"
|
||||||
:transactionsGdt="transactionsGdt"
|
:transactionsGdt="transactionsGdt"
|
||||||
|
|
||||||
></router-view>
|
></router-view>
|
||||||
</fade-transition>
|
</fade-transition>
|
||||||
</div>
|
</div>
|
||||||
<content-footer v-if="!$route.meta.hideFooter"></content-footer>
|
<content-footer v-if="!$route.meta.hideFooter"></content-footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -75,11 +72,9 @@ import 'perfect-scrollbar/css/perfect-scrollbar.css'
|
|||||||
import loginAPI from '../../apis/loginAPI'
|
import loginAPI from '../../apis/loginAPI'
|
||||||
|
|
||||||
import ContentFooter from './ContentFooter.vue'
|
import ContentFooter from './ContentFooter.vue'
|
||||||
// import DashboardContent from './Content.vue';
|
|
||||||
import { FadeTransition } from 'vue2-transitions'
|
import { FadeTransition } from 'vue2-transitions'
|
||||||
import communityAPI from '../../apis/communityAPI'
|
import communityAPI from '../../apis/communityAPI'
|
||||||
import VueQrcode from 'vue-qrcode'
|
import VueQrcode from 'vue-qrcode'
|
||||||
//import { gdt } from '../../../public/json-example/admin_transactionGdt_list.json'
|
|
||||||
|
|
||||||
function hasElement(className) {
|
function hasElement(className) {
|
||||||
return document.getElementsByClassName(className).length > 0
|
return document.getElementsByClassName(className).length > 0
|
||||||
@ -148,59 +143,58 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async updateGdt() {
|
async updateGdt() {
|
||||||
//this.transactionsGdt = gdt
|
|
||||||
// const result = await communityAPI.transactionsGdt(
|
// const result = await communityAPI.transactionsGdt(
|
||||||
// this.$store.state.sessionId
|
// this.$store.state.sessionId
|
||||||
// )
|
// )
|
||||||
|
|
||||||
this.transactionsGdt = [{"state":"success", "gdt":
|
this.transactionsGdt = [
|
||||||
[
|
|
||||||
{
|
{
|
||||||
"id": 8821,
|
state: 'success',
|
||||||
"amount": 1000,
|
gdt: [
|
||||||
"date": "2020-08-12T14:12:00+00:00",
|
{
|
||||||
"email": "foerderkreis-1@gradido.org",
|
id: 8821,
|
||||||
"comment": null,
|
amount: 1000,
|
||||||
"coupon_code": "",
|
date: '2020-08-12T14:12:00+00:00',
|
||||||
"gdt_entry_type_id": 4,
|
email: 'foerderkreis-1@gradido.org',
|
||||||
"factor": "20.0000",
|
comment: null,
|
||||||
"amount2": 0,
|
coupon_code: '',
|
||||||
"factor2": "0.0500",
|
gdt_entry_type_id: 4,
|
||||||
"gdt": 1000
|
factor: '20.0000',
|
||||||
|
amount2: 0,
|
||||||
|
factor2: '0.0500',
|
||||||
|
gdt: 1000,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 8552,
|
id: 8552,
|
||||||
"amount": 1000,
|
amount: 1000,
|
||||||
"date": "2020-06-17T14:12:00+00:00",
|
date: '2020-06-17T14:12:00+00:00',
|
||||||
"email": "foerderkreis-1@gradido.org",
|
email: 'foerderkreis-1@gradido.org',
|
||||||
"comment": null,
|
comment: null,
|
||||||
"coupon_code": "",
|
coupon_code: '',
|
||||||
"gdt_entry_type_id": 4,
|
gdt_entry_type_id: 4,
|
||||||
"factor": "20.0000",
|
factor: '20.0000',
|
||||||
"amount2": 0,
|
amount2: 0,
|
||||||
"factor2": "0.0500",
|
factor2: '0.0500',
|
||||||
"gdt": 1000
|
gdt: 1000,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 8317,
|
id: 8317,
|
||||||
"amount": 1000,
|
amount: 1000,
|
||||||
"date": "2020-03-16T14:12:00+00:00",
|
date: '2020-03-16T14:12:00+00:00',
|
||||||
"email": "foerderkreis-1@gradido.org",
|
email: 'foerderkreis-1@gradido.org',
|
||||||
"comment": null,
|
comment: null,
|
||||||
"coupon_code": "",
|
coupon_code: '',
|
||||||
"gdt_entry_type_id": 4,
|
gdt_entry_type_id: 4,
|
||||||
"factor": "20.0000",
|
factor: '20.0000',
|
||||||
"amount2": 0,
|
amount2: 0,
|
||||||
"factor2": "0.0500",
|
factor2: '0.0500',
|
||||||
"gdt": 1000
|
gdt: 1000,
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
"transactionGdtExecutingCount": 3000,
|
transactionGdtExecutingCount: 3000,
|
||||||
"count": 3
|
count: 3,
|
||||||
}]
|
},
|
||||||
|
]
|
||||||
//console.log("DashboardLayout_gdd.vue")
|
|
||||||
//console.log(this.result)
|
|
||||||
},
|
},
|
||||||
updateBalance(ammount) {
|
updateBalance(ammount) {
|
||||||
this.balance -= ammount
|
this.balance -= ammount
|
||||||
@ -209,7 +203,6 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.initScrollbar()
|
this.initScrollbar()
|
||||||
this.updateGdt()
|
this.updateGdt()
|
||||||
console.log(this.transactionsGdt)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,12 +1,23 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="gdd-transaction-gtd-list">
|
<div class="gdd-transaction-gtd-list">
|
||||||
<hr>
|
<hr />
|
||||||
{{ transactionsGdt[0].gdt }}
|
{{ transactionsGdt[0].gdt }}
|
||||||
<b-list-group>
|
<b-list-group>
|
||||||
<b-list-group-item
|
<b-list-group-item
|
||||||
v-for="{ id, amount, date, email, comment, coupon_code, gdt_entry_type_id, factor, amount2, factor2, gdt } in transactionsGdt"
|
v-for="{
|
||||||
|
id,
|
||||||
|
amount,
|
||||||
|
date,
|
||||||
|
email,
|
||||||
|
comment,
|
||||||
|
coupon_code,
|
||||||
|
gdt_entry_type_id,
|
||||||
|
factor,
|
||||||
|
amount2,
|
||||||
|
factor2,
|
||||||
|
gdt,
|
||||||
|
} in transactionsGdt[0].gdt"
|
||||||
:key="id"
|
:key="id"
|
||||||
|
|
||||||
>
|
>
|
||||||
<div>id: {{ id }}</div>
|
<div>id: {{ id }}</div>
|
||||||
<div>amount: {{ amount }}</div>
|
<div>amount: {{ amount }}</div>
|
||||||
@ -19,7 +30,6 @@
|
|||||||
<div>amount2: {{ amount2 }}</div>
|
<div>amount2: {{ amount2 }}</div>
|
||||||
<div>factor2: {{ factor2 }}</div>
|
<div>factor2: {{ factor2 }}</div>
|
||||||
<div>gdt: {{ gdt }}</div>
|
<div>gdt: {{ gdt }}</div>
|
||||||
|
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
</b-list-group>
|
</b-list-group>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<b-container fluid>
|
<b-container>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col class="order-xl-1">
|
<b-col class="order-xl-1">
|
||||||
<gdd-transaction-list
|
<gdd-transaction-list
|
||||||
@ -10,7 +10,11 @@
|
|||||||
:show-pagination="true"
|
:show-pagination="true"
|
||||||
@update-transactions="updateTransactions"
|
@update-transactions="updateTransactions"
|
||||||
/>
|
/>
|
||||||
<gdd-transaction-gdt-list :timestamp="timestamp" :transactionsGdt="transactionsGdt" @update-gdt="updateGdt"/>
|
<gdd-transaction-gdt-list
|
||||||
|
:timestamp="timestamp"
|
||||||
|
:transactionsGdt="transactionsGdt"
|
||||||
|
@update-gdt="updateGdt"
|
||||||
|
/>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
</b-container>
|
</b-container>
|
||||||
@ -24,7 +28,7 @@ export default {
|
|||||||
name: 'UserProfileTransactionList',
|
name: 'UserProfileTransactionList',
|
||||||
components: {
|
components: {
|
||||||
GddTransactionList,
|
GddTransactionList,
|
||||||
GddTransactionGdtList
|
GddTransactionGdtList,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
transactions: {
|
transactions: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user