mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
changes update form data
This commit is contained in:
parent
5152d96b82
commit
ec476f435c
@ -54,8 +54,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
editAutomaticContributionData(data) {
|
editAutomaticContributionData(data) {
|
||||||
console.log('start methodes editAutomaticContributionData')
|
|
||||||
console.log(typeof data)
|
|
||||||
if (!this.visible) this.$root.$emit('bv::toggle::collapse', 'newContribution')
|
if (!this.visible) this.$root.$emit('bv::toggle::collapse', 'newContribution')
|
||||||
this.automaticContributionData = data
|
this.automaticContributionData = data
|
||||||
},
|
},
|
||||||
|
|||||||
@ -131,12 +131,12 @@ export default {
|
|||||||
},
|
},
|
||||||
min: new Date(),
|
min: new Date(),
|
||||||
cycle: [
|
cycle: [
|
||||||
{ value: 'no cycle', text: 'null' },
|
{ value: 'none', text: 'no cycle' },
|
||||||
{ value: 'stündlich', text: 'stündlich' },
|
{ value: 'hourly', text: 'stündlich' },
|
||||||
{ value: 'täglich', text: 'täglich' },
|
{ value: 'daily', text: 'täglich' },
|
||||||
{ value: 'wöchentlich', text: 'wöchentlich' },
|
{ value: 'weekly', text: 'wöchentlich' },
|
||||||
{ value: 'monatlich', text: 'monatlich' },
|
{ value: 'monthly', text: 'monatlich' },
|
||||||
{ value: 'jährlich', text: 'jährlich' },
|
{ value: 'yearly', text: 'jährlich' },
|
||||||
],
|
],
|
||||||
repetition: [
|
repetition: [
|
||||||
{ value: '1', text: '1 mal' },
|
{ value: '1', text: '1 mal' },
|
||||||
@ -196,5 +196,18 @@ export default {
|
|||||||
return this.automaticContributionData
|
return this.automaticContributionData
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
automaticContributionData() {
|
||||||
|
alert('change automaticContributionData')
|
||||||
|
this.form.name = this.automaticContributionData.name
|
||||||
|
this.form.memo = this.automaticContributionData.memo
|
||||||
|
this.form.amount = this.automaticContributionData.amount
|
||||||
|
this.form.startDate = this.automaticContributionData.startDate
|
||||||
|
this.form.endDate = this.automaticContributionData.endDate
|
||||||
|
this.form.cycle = this.automaticContributionData.cycle
|
||||||
|
this.form.repetition = this.automaticContributionData.repetition
|
||||||
|
this.form.maxAmount = this.automaticContributionData.maxAmount
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -7,12 +7,12 @@
|
|||||||
</b-button>
|
</b-button>
|
||||||
</template>
|
</template>
|
||||||
<template #cell(edit)="data">
|
<template #cell(edit)="data">
|
||||||
<b-button variant="success" size="md" class="mr-2" @click="editAutomaticCreations(data)">
|
<b-button variant="success" size="md" class="mr-2" @click="editAutomaticCreations(data.item)">
|
||||||
<b-icon icon="pencil" variant="light"></b-icon>
|
<b-icon icon="pencil" variant="light"></b-icon>
|
||||||
</b-button>
|
</b-button>
|
||||||
</template>
|
</template>
|
||||||
<template #cell(show)="data">
|
<template #cell(show)="data">
|
||||||
<b-button variant="info" size="md" class="mr-2" @click="showAutomaticCreations(data)">
|
<b-button variant="info" size="md" class="mr-2" @click="showAutomaticCreations(data.item)">
|
||||||
<b-icon icon="eye" variant="light"></b-icon>
|
<b-icon icon="eye" variant="light"></b-icon>
|
||||||
</b-button>
|
</b-button>
|
||||||
</template>
|
</template>
|
||||||
@ -24,11 +24,11 @@
|
|||||||
<h6 class="mb-0">xxx</h6>
|
<h6 class="mb-0">xxx</h6>
|
||||||
</template>
|
</template>
|
||||||
<b-card-text>
|
<b-card-text>
|
||||||
daten + qrCode + link
|
|
||||||
{{ modalData }}
|
{{ modalData }}
|
||||||
|
<figure-qr-code :link="modalData ? modalData.link : ''" />
|
||||||
</b-card-text>
|
</b-card-text>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<em>link</em>
|
<em>{{ modalData ? modalData.link : '' }}</em>
|
||||||
</template>
|
</template>
|
||||||
</b-card>
|
</b-card>
|
||||||
</b-modal>
|
</b-modal>
|
||||||
@ -36,9 +36,13 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { deleteAutomaticCreation } from '@/graphql/deleteAutomaticCreation.js'
|
import { deleteAutomaticCreation } from '@/graphql/deleteAutomaticCreation.js'
|
||||||
|
import FigureQrCode from './FigureQrCode.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AutomaticCreationList',
|
name: 'AutomaticCreationList',
|
||||||
|
components: {
|
||||||
|
FigureQrCode,
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
items: { type: Array },
|
items: { type: Array },
|
||||||
},
|
},
|
||||||
@ -47,7 +51,7 @@ export default {
|
|||||||
fields: [
|
fields: [
|
||||||
'name',
|
'name',
|
||||||
'memo',
|
'memo',
|
||||||
'gdd',
|
'amount',
|
||||||
'cycle',
|
'cycle',
|
||||||
'repetition',
|
'repetition',
|
||||||
{ key: 'startDate', label: 'Start' },
|
{ key: 'startDate', label: 'Start' },
|
||||||
@ -57,6 +61,7 @@ export default {
|
|||||||
'show',
|
'show',
|
||||||
],
|
],
|
||||||
modalData: null,
|
modalData: null,
|
||||||
|
modalDataLink: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -81,7 +86,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
editAutomaticCreations(row) {
|
editAutomaticCreations(row) {
|
||||||
this.$emit('editAutomaticContributionData', row.item)
|
this.$emit('editAutomaticContributionData', row)
|
||||||
},
|
},
|
||||||
|
|
||||||
showAutomaticCreations(row) {
|
showAutomaticCreations(row) {
|
||||||
|
|||||||
@ -75,31 +75,37 @@ export default {
|
|||||||
id: 1,
|
id: 1,
|
||||||
name: 'Meditation',
|
name: 'Meditation',
|
||||||
memo: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l',
|
memo: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l',
|
||||||
gdd: '200',
|
amount: '200',
|
||||||
startDate: '2022-04-01',
|
startDate: '2022-04-01',
|
||||||
endDate: '2022-08-01',
|
endDate: '2022-08-01',
|
||||||
cycle: 'täglich',
|
cycle: 'täglich',
|
||||||
repetition: '3 mal',
|
repetition: '3',
|
||||||
|
maxAmount: 0,
|
||||||
|
link: 'https://localhost/redeem/1a2345678',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: 'Teamarbeit',
|
name: 'Teamarbeit',
|
||||||
memo: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt',
|
memo: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt',
|
||||||
gdd: '300',
|
amount: '300',
|
||||||
startDate: '2022-04-01',
|
startDate: '2022-04-01',
|
||||||
endDate: '2022-12-01',
|
endDate: '2022-12-01',
|
||||||
cycle: 'monatlich',
|
cycle: 'monatlich',
|
||||||
repetition: '1 mal',
|
repetition: '2',
|
||||||
|
maxAmount: 0,
|
||||||
|
link: 'https://localhost/redeem/1b2345678',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: 'Documenta Kassel 2022',
|
name: 'Documenta Kassel 2022',
|
||||||
memo: 'New Account Register by Documenta Kassel, Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt',
|
memo: 'New Account Register by Documenta Kassel, Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt',
|
||||||
gdd: '400',
|
amount: '400',
|
||||||
startDate: '2022-06-18',
|
startDate: '2022-06-18',
|
||||||
endDate: '2022-10-01',
|
endDate: '2022-10-01',
|
||||||
cycle: 'null',
|
cycle: 'null',
|
||||||
repetition: '1 mal',
|
repetition: '1',
|
||||||
|
maxAmount: 0,
|
||||||
|
link: 'https://localhost/redeem/1c2345678',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user