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' this.type === 'singleCreation'
? 'Einzelschöpfung für ' + item.firstName + ' ' + item.lastName + '' ? '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 }} {{ item }}
</h3> </h3>
@ -180,7 +180,7 @@ export default {
methods: { methods: {
// Auswählen eines Zeitraumes // Auswählen eines Zeitraumes
updateRadioSelected(name, index, openCreation) { updateRadioSelected(name, index, openCreation) {
// Wenn Massenschöpfung // Wenn Mehrfachschöpfung
if (this.type === 'massCreation') { if (this.type === 'massCreation') {
// An Creation.vue emitten und radioSelectedMass aktualisieren // An Creation.vue emitten und radioSelectedMass aktualisieren
this.$emit('update-radio-selected', [name, index]) 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!') return alert('Bitte gib einen Text ein der länger als 10 Zeichen ist!')
} }
if (this.type === 'massCreation') { 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 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') alert('SUBMIT CREATION => ' + this.type + ' >> für VIELE ' + i + ' Mitglieder')
this.submitObj = [ this.submitObj = [
{ {
@ -235,12 +235,12 @@ export default {
moderator: this.$store.state.moderator, 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 // $store - offene Schöpfungen hochzählen
this.$store.commit('openCreationsPlus', i) 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') this.$emit('remove-all-bookmark')
} }

View File

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

View File

@ -51,7 +51,7 @@
<template #cell(show_details)="row"> <template #cell(show_details)="row">
<b-button variant="info" size="lg" @click="row.toggleDetails" class="mr-2"> <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-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> </b-button>
</template> </template>

View File

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

View File

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