mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add CreationsTransaction List Icon und Component and function, example list data
This commit is contained in:
parent
659d966a68
commit
5f2537b08d
61
admin/src/components/CreationTransactionListFormular.vue
Normal file
61
admin/src/components/CreationTransactionListFormular.vue
Normal file
@ -0,0 +1,61 @@
|
||||
<template>
|
||||
<div class="component-creation-transaction-list">
|
||||
Alle Geschöpften Transaktionen für den User
|
||||
<b-table striped hover :items="items"></b-table>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
// import { verifyLogin } from '../graphql/verifyLogin'
|
||||
// import { createPendingCreation } from '../graphql/createPendingCreation'
|
||||
export default {
|
||||
name: 'CreationTransactionList',
|
||||
data() {
|
||||
return {
|
||||
items: [
|
||||
{
|
||||
gdd: 700,
|
||||
date: '16.11.2021',
|
||||
memo: 'klaljk jakldasjd lajlaldjalajsd aasj asdl jaljaldj aa jda l jdla jda',
|
||||
moderator: 'Moderator Eins',
|
||||
},
|
||||
{
|
||||
gdd: 800,
|
||||
date: '23.10.2021',
|
||||
memo: 'jij ijdas ijad sa jsd a ijaojodjajd jiaojdja dij aij doa aojd ao jd',
|
||||
moderator: 'Moderator Eins',
|
||||
},
|
||||
{
|
||||
gdd: 1000,
|
||||
date: '13.09.2021',
|
||||
memo: 'asdd d adad adsdadda dsdadadasds asdadada da dadadad adadada d',
|
||||
moderator: 'Moderator Eins',
|
||||
},
|
||||
{
|
||||
gdd: 400,
|
||||
date: '03.07.2021',
|
||||
memo: 'casc acas ac acacacs cac acacac acc acac ca cacac',
|
||||
moderator: 'Moderator Zwei',
|
||||
},
|
||||
{
|
||||
gdd: 210,
|
||||
date: '04.06.2021',
|
||||
memo: 'asc dfdvdvdf vfvd vdfvdff vdvdfvd vff dvfd vdfv dfv dfvdf vdfvdfv',
|
||||
moderator: 'Moderator Eins',
|
||||
},
|
||||
{
|
||||
gdd: 890,
|
||||
date: '07.05.2021',
|
||||
memo: 'reett ttertt etet et et ertetetet et ert et ertertertet',
|
||||
moderator: 'Moderator Eins',
|
||||
},
|
||||
{
|
||||
gdd: 380,
|
||||
date: '22.04.2021',
|
||||
memo: 'bnnbnbbncvbcv bcbcbc bcb cbc bcb cvb cbccvvbcvb bvbcbcbcbc bcb cb',
|
||||
moderator: 'Moderator Zwei',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@ -81,6 +81,18 @@
|
||||
</b-button>
|
||||
</template>
|
||||
|
||||
<template #cell(transactions_list)="row">
|
||||
<b-button
|
||||
variant="warning"
|
||||
size="md"
|
||||
:ref="'showing_transactions_list_' + row.detailsShowing"
|
||||
@click="rowDetailsToogleTransactionsList(row, row.detailsShowing)"
|
||||
class="mr-2"
|
||||
>
|
||||
<b-icon icon="list"></b-icon>
|
||||
</b-button>
|
||||
</template>
|
||||
|
||||
<template #row-details="row">
|
||||
<b-card class="shadow-lg pl-3 pr-3 mb-5 bg-white rounded">
|
||||
<b-row class="mb-2">
|
||||
@ -110,10 +122,13 @@
|
||||
/>
|
||||
</div>
|
||||
<confirm-register-mail-formular
|
||||
v-if="showConfirmRegisterMailFormular"
|
||||
:email="row.item.email"
|
||||
:dateLastSend="$moment().subtract(1, 'month').format('dddd, DD.MMMM.YYYY HH:mm'),"
|
||||
/>
|
||||
|
||||
<creation-transaction-list-formular v-if="showCreationTransactionListFormular" />
|
||||
|
||||
<b-button size="sm" @click="row.toggleDetails">
|
||||
<b-icon
|
||||
:icon="type === 'PageCreationConfirm' ? 'x' : 'eye-slash-fill'"
|
||||
@ -164,6 +179,8 @@
|
||||
import CreationFormular from '../components/CreationFormular.vue'
|
||||
import EditCreationFormular from '../components/EditCreationFormular.vue'
|
||||
import ConfirmRegisterMailFormular from '../components/ConfirmRegisterMailFormular.vue'
|
||||
import CreationTransactionListFormular from '../components/CreationTransactionListFormular.vue'
|
||||
|
||||
import { confirmPendingCreation } from '../graphql/confirmPendingCreation'
|
||||
|
||||
export default {
|
||||
@ -195,10 +212,13 @@ export default {
|
||||
CreationFormular,
|
||||
EditCreationFormular,
|
||||
ConfirmRegisterMailFormular,
|
||||
CreationTransactionListFormular,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showCreationFormular: null,
|
||||
showConfirmRegisterMailFormular: null,
|
||||
showCreationTransactionListFormular: null,
|
||||
creationUserData: {},
|
||||
overlay: false,
|
||||
overlayBookmarkType: '',
|
||||
@ -216,13 +236,20 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
rowDetailsToogle(row, details) {
|
||||
if (this.showCreationFormular === false) {
|
||||
if (
|
||||
this.showConfirmRegisterMailFormular === true ||
|
||||
this.showCreationTransactionListFormular === true
|
||||
) {
|
||||
this.showCreationFormular = true
|
||||
this.showConfirmRegisterMailFormular = false
|
||||
this.showCreationTransactionListFormular = false
|
||||
return
|
||||
}
|
||||
if (details) {
|
||||
row.toggleDetails()
|
||||
this.showCreationFormular = null
|
||||
this.showConfirmRegisterMailFormular = null
|
||||
this.showCreationTransactionListFormular = null
|
||||
}
|
||||
if (!details) {
|
||||
row.toggleDetails()
|
||||
@ -234,21 +261,47 @@ export default {
|
||||
},
|
||||
|
||||
rowDetailsToogleRegisterMail(row, details) {
|
||||
if (this.showCreationFormular === true) {
|
||||
if (this.showCreationFormular === true || this.showCreationTransactionListFormular === true) {
|
||||
this.showCreationFormular = false
|
||||
this.showConfirmRegisterMailFormular = true
|
||||
this.showCreationTransactionListFormular = false
|
||||
return
|
||||
}
|
||||
if (details) {
|
||||
row.toggleDetails()
|
||||
this.showCreationFormular = null
|
||||
this.showConfirmRegisterMailFormular = null
|
||||
this.showCreationTransactionListFormular = null
|
||||
}
|
||||
if (!details) {
|
||||
row.toggleDetails()
|
||||
this.showConfirmRegisterMailFormular = true
|
||||
if (this.$refs.showing_registermail_detals_true !== undefined) {
|
||||
this.$refs.showing_registermail_detals_true.click()
|
||||
}
|
||||
}
|
||||
},
|
||||
rowDetailsToogleTransactionsList(row, details) {
|
||||
if (this.showCreationFormular === true || this.showConfirmRegisterMailFormular === true) {
|
||||
this.showCreationFormular = false
|
||||
this.showConfirmRegisterMailFormular = false
|
||||
this.showCreationTransactionListFormular = true
|
||||
return
|
||||
}
|
||||
if (details) {
|
||||
row.toggleDetails()
|
||||
this.showCreationFormular = null
|
||||
this.showConfirmRegisterMailFormular = null
|
||||
this.showCreationTransactionListFormular = null
|
||||
}
|
||||
if (!details) {
|
||||
row.toggleDetails()
|
||||
this.showCreationTransactionListFormular = true
|
||||
if (this.$refs.showing_transactions_list_true !== undefined) {
|
||||
this.$refs.showing_transactions_list_true.click()
|
||||
}
|
||||
}
|
||||
},
|
||||
overlayShow(bookmarkType, item) {
|
||||
this.overlay = true
|
||||
this.overlayBookmarkType = bookmarkType
|
||||
|
||||
@ -48,6 +48,7 @@ export default {
|
||||
},
|
||||
{ key: 'show_details', label: 'Details' },
|
||||
{ key: 'confirm_mail', label: 'Mail' },
|
||||
{ key: 'transactions_list', label: 'Transaction' },
|
||||
],
|
||||
searchResult: [],
|
||||
massCreation: [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user