mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
78 lines
1.9 KiB
Vue
78 lines
1.9 KiB
Vue
<template>
|
|
<div>
|
|
<div>
|
|
<b-row>
|
|
<b-col class="col-6">
|
|
<b-row>
|
|
<b-col class="col-11 ml-2 p-3" style="background-color: #f0f0f0">
|
|
<status
|
|
class="gdd-status-gdd"
|
|
:pending="pending"
|
|
:balance="balance"
|
|
status-text="GDD"
|
|
/>
|
|
</b-col>
|
|
</b-row>
|
|
</b-col>
|
|
<b-col class="col-6 text-right">
|
|
<b-row>
|
|
<b-col class="p-3" style="background-color: #f0f0f0">
|
|
<status
|
|
class="gdd-status-gdt"
|
|
:pending="pending"
|
|
:balance="GdtBalance"
|
|
status-text="GDT"
|
|
/>
|
|
</b-col>
|
|
</b-row>
|
|
</b-col>
|
|
</b-row>
|
|
<br />
|
|
<gdd-transaction-list
|
|
:transactions="transactions"
|
|
:pageSize="5"
|
|
:timestamp="timestamp"
|
|
:transaction-count="transactionCount"
|
|
@update-transactions="updateTransactions"
|
|
/>
|
|
<gdd-transaction-list-footer :count="transactionCount" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import Status from '../../components/Status.vue'
|
|
import GddTransactionList from './AccountOverview/GddTransactionList.vue'
|
|
import GddTransactionListFooter from './AccountOverview/GddTransactionListFooter.vue'
|
|
|
|
export default {
|
|
name: 'Overview',
|
|
components: {
|
|
Status,
|
|
GddTransactionList,
|
|
GddTransactionListFooter,
|
|
},
|
|
data() {
|
|
return {
|
|
timestamp: Date.now(),
|
|
}
|
|
},
|
|
props: {
|
|
balance: { type: Number, default: 0 },
|
|
GdtBalance: { type: Number, default: 0 },
|
|
transactions: {
|
|
default: () => [],
|
|
},
|
|
transactionCount: { type: Number, default: 0 },
|
|
pending: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
},
|
|
methods: {
|
|
updateTransactions(pagination) {
|
|
this.$emit('update-transactions', pagination)
|
|
},
|
|
},
|
|
}
|
|
</script>
|