add usersearch in usertable und masscreation

This commit is contained in:
ogerly 2021-11-24 09:01:04 +01:00
parent dc1715eea0
commit 8f99a971ae
5 changed files with 10 additions and 14 deletions

View File

@ -5,7 +5,7 @@
{{
this.type === 'singleCreation'
? 'Einzelschöpfung für ' + item.firstName + ' ' + item.lastName + ''
: 'Massenschöpfung für ' + Object.keys(this.itemsMassCreation).length + ' Mitglieder'
: 'Mehrfachschöpfung für ' + Object.keys(this.itemsMassCreation).length + ' Mitglieder'
}}
{{ item }}
</h3>
@ -180,7 +180,7 @@ export default {
methods: {
// Auswählen eines Zeitraumes
updateRadioSelected(name, index, openCreation) {
// Wenn Massenschöpfung
// Wenn Mehrfachschöpfung
if (this.type === 'massCreation') {
// An Creation.vue emitten und radioSelectedMass aktualisieren
this.$emit('update-radio-selected', [name, index])
@ -222,9 +222,9 @@ export default {
return alert('Bitte gib einen Text ein der länger als 10 Zeichen ist!')
}
if (this.type === 'massCreation') {
// Die anzahl der Mitglieder aus der Massenschöpfung
// Die anzahl der Mitglieder aus der Mehrfachschöpfung
const i = Object.keys(this.itemsMassCreation).length
// hinweis das eine Massenschöpfung ausgeführt wird an (Anzahl der MItgleider an die geschöpft wird)
// hinweis das eine Mehrfachschöpfung ausgeführt wird an (Anzahl der MItgleider an die geschöpft wird)
alert('SUBMIT CREATION => ' + this.type + ' >> für VIELE ' + i + ' Mitglieder')
this.submitObj = [
{
@ -235,12 +235,12 @@ export default {
moderator: this.$store.state.moderator,
},
]
alert('MassenSCHÖPFUNG ABSENDEN FÜR >> ' + i + ' Mitglieder')
alert('MehrfachSCHÖPFUNG ABSENDEN FÜR >> ' + i + ' Mitglieder')
// $store - offene Schöpfungen hochzählen
this.$store.commit('openCreationsPlus', i)
// lösche alle Mitglieder aus der MassenSchöpfungsListe nach dem alle Massenschpfungen zum bestätigen gesendet wurden.
// lösche alle Mitglieder aus der MehrfachSchöpfungsListe nach dem alle Mehrfachschpfungen zum bestätigen gesendet wurden.
this.$emit('remove-all-bookmark')
}

View File

@ -8,7 +8,7 @@
<b-collapse id="nav-collapse" is-nav>
<b-navbar-nav>
<b-nav-item to="/user">Usersuche |</b-nav-item>
<b-nav-item to="/creation">Massenschöpfung</b-nav-item>
<b-nav-item to="/creation">Mehrfachschöpfung</b-nav-item>
<b-nav-item
v-show="$store.state.openCreations > 0"
class="h5 bg-danger"

View File

@ -51,7 +51,7 @@
<template #cell(show_details)="row">
<b-button variant="info" size="lg" @click="row.toggleDetails" class="mr-2">
<b-icon v-if="row.detailsShowing" icon="eye-slash-fill" aria-label="Help"></b-icon>
<b-icon v-else icon="eye-slash-fill" aria-label="Help"></b-icon>
<b-icon v-else icon="eye-fill" aria-label="Help"></b-icon>
</b-button>
</template>

View File

@ -78,10 +78,10 @@ export default {
}
},
created() {
this.getUsers()
this.getUsers()
},
methods: {
getUsers() {
getUsers() {
this.$apollo
.query({
query: searchUsers,
@ -90,7 +90,6 @@ export default {
},
})
.then((result) => {
console.log('getUsers result', result)
this.itemsList = result.data.searchUsers.map((user) => {
return {
...user,

View File

@ -43,8 +43,6 @@ export default {
methods: {
getUsers() {
console.log('getUsers function', this.criteria)
console.log(this.$apollo)
this.$apollo
.query({
query: searchUsers,
@ -53,7 +51,6 @@ export default {
},
})
.then((result) => {
console.log('getUsers result', result)
this.searchResult = result.data.searchUsers.map((user) => {
return {
...user,