+ Update Schöpfung ({{ type }},{{ pagetype }})
+ {{ creationUserData }}
+
+
+ > ' + this.item.first_name + '')
- // $store - offene Schöpfungen hochzählen
- this.$store.commit('openCreationsPlus', 1)
+
+ if (this.pagetype === 'PageCreationConfirm') {
+ // hinweis das eine ein einzelne Schöpfung abgesendet wird an (email)
+ alert('UPDATE EINZEL SCHÖPFUNG ABSENDEN FÜR >> ')
+ // umschreiben, update eine bestehende Schöpfung eine
+
+ this.creationUserData.datum = this.radioSelected.long
+ this.creationUserData.creation_gdd = this.value
+ this.creationUserData.text = this.text
+
+ // this.$store.commit('update-creation-user-data', this.submitObj)
+ } else {
+ // hinweis das eine ein einzelne Schöpfung abgesendet wird an (email)
+ alert('EINZEL SCHÖPFUNG ABSENDEN FÜR >> ' + this.item.first_name + '')
+ // $store - offene Schöpfungen hochzählen
+ this.$store.commit('openCreationsPlus', 1)
+ }
}
// das absendeergebniss im string ansehen
diff --git a/admin/src/components/NavBar.spec.js b/admin/src/components/NavBar.spec.js
index 55998bddd..1d68b16ad 100644
--- a/admin/src/components/NavBar.spec.js
+++ b/admin/src/components/NavBar.spec.js
@@ -6,11 +6,7 @@ const localVue = global.localVue
const mocks = {
$store: {
state: {
-<<<<<<< HEAD
openCreations: 1,
-=======
- openCreations: 0,
->>>>>>> ddaaab9c (add Tests, CreationFormular.spec.js, NavBar.spec.js, UserTable.spec.js)
},
},
}
@@ -19,11 +15,7 @@ describe('NavBar', () => {
let wrapper
const Wrapper = () => {
-<<<<<<< HEAD
- return mount(NavBar, { localVue, mocks })
-=======
return mount(NavBar, { mocks, localVue })
->>>>>>> ddaaab9c (add Tests, CreationFormular.spec.js, NavBar.spec.js, UserTable.spec.js)
}
describe('mount', () => {
diff --git a/admin/src/components/UserTable.spec.js b/admin/src/components/UserTable.spec.js
index e1d6e7bdd..a87497d81 100644
--- a/admin/src/components/UserTable.spec.js
+++ b/admin/src/components/UserTable.spec.js
@@ -7,24 +7,10 @@ describe('UserTable', () => {
let wrapper
const propsData = {
-<<<<<<< HEAD
type: 'Type',
itemsUser: [],
fieldsTable: [],
creation: {},
-=======
- type: 'TableName',
- itemUser: [
- {
- id: 1,
- email: 'dickerson@web.de',
- first_name: 'Dickerson',
- last_name: 'Macdonald',
- creation: '450,200,700',
- },
- ],
- creation: [null, null, null],
->>>>>>> ddaaab9c (add Tests, CreationFormular.spec.js, NavBar.spec.js, UserTable.spec.js)
}
const Wrapper = () => {
diff --git a/admin/src/components/UserTable.vue b/admin/src/components/UserTable.vue
index b4b173782..d96438bcb 100644
--- a/admin/src/components/UserTable.vue
+++ b/admin/src/components/UserTable.vue
@@ -37,7 +37,12 @@
stacked="md"
>
-
+
@@ -58,8 +63,11 @@
@@ -141,6 +149,7 @@ export default {
},
data() {
return {
+ creationData: [],
overlay: false,
overlayBookmarkType: '',
overlayItem: [],
@@ -200,17 +209,27 @@ export default {
}
if (this.type === 'PageCreationConfirm') {
- this.$emit('update-confirm-result', item, 'remove')
+ this.$emit('remove-confirm-result', item, 'remove')
}
},
bookmarkConfirm(item) {
alert('die schöpfung bestätigen und abschließen')
alert(JSON.stringify(item))
- this.$emit('update-confirm-result', item, 'remove')
+ this.$emit('remove-confirm-result', item, 'remove')
},
getCreationInMonths(creation) {
return creation.split(',')
},
+ editCreationUserTable(row, rowItem) {
+ alert('editCreationUserTable')
+ if (!row.detailsShowing) {
+ alert('offen edit loslegen')
+ // this.item = rowItem
+ this.creationData = rowItem
+ // alert(this.creationData)
+ }
+ row.toggleDetails()
+ },
},
}
diff --git a/admin/src/views/CreationConfirm.vue b/admin/src/views/CreationConfirm.vue
index c0b970d12..a35bfb98c 100644
--- a/admin/src/views/CreationConfirm.vue
+++ b/admin/src/views/CreationConfirm.vue
@@ -8,9 +8,8 @@
class="mt-4"
type="PageCreationConfirm"
:itemsUser="confirmResult"
- :creation="creation"
:fieldsTable="fields"
- @update-confirm-result="updateConfirmResult"
+ @remove-confirm-result="removeConfirmResult"
/>
@@ -30,9 +29,21 @@ export default {
{ key: 'email', label: 'Email' },
{ key: 'first_name', label: 'Vorname' },
{ key: 'last_name', label: 'Nachname' },
- { key: 'creation_gdd', label: 'GDD' },
+ {
+ key: 'creation_gdd',
+ label: 'Schöpfung',
+ formatter: (value) => {
+ return value + ' GDD'
+ },
+ },
{ key: 'text', label: 'Text' },
- { key: 'creation_date', label: 'Datum' },
+ {
+ key: 'creation_date',
+ label: 'Datum',
+ formatter: (value) => {
+ return value.long
+ },
+ },
{ key: 'creation_moderator', label: 'Moderator' },
{ key: 'edit_creation', label: 'ändern' },
{ key: 'confirm', label: 'speichern' },
@@ -47,7 +58,10 @@ export default {
creation_gdd: '1000',
text: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam ',
- creation_date: '01/11/2021',
+ creation_date: {
+ short: 'November',
+ long: '22/11/2021',
+ },
creation_moderator: 'Manuela Gast',
},
{
@@ -59,7 +73,10 @@ export default {
creation_gdd: '1000',
text: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam ',
- creation_date: '01/11/2021',
+ creation_date: {
+ short: 'November',
+ long: '03/11/2021',
+ },
creation_moderator: 'Manuela Gast',
},
{
@@ -70,7 +87,10 @@ export default {
creation: '350,200,900',
creation_gdd: '1000',
text: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam',
- creation_date: '01/11/2021',
+ creation_date: {
+ short: 'September',
+ long: '27/09/2021',
+ },
creation_moderator: 'Manuela Gast',
},
{
@@ -80,8 +100,10 @@ export default {
last_name: 'Takker',
creation_gdd: '500',
text: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo ',
-
- creation_date: '01/10/2021',
+ creation_date: {
+ short: 'Oktober',
+ long: '12/10/2021',
+ },
creation_moderator: 'Evelyn Roller',
},
{
@@ -92,16 +114,18 @@ export default {
creation: '100,400,800',
creation_gdd: '200',
text: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At',
- creation_date: '01/09/2021',
+ creation_date: {
+ short: 'September',
+ long: '05/09/2021',
+ },
creation_moderator: 'Manuela Gast',
},
],
- creation: [null, null, null],
}
},
methods: {
- updateConfirmResult(e, event) {
+ removeConfirmResult(e, event) {
if (event === 'remove') {
let index = 0
let findArr = {}