|
|
|
@ -44,17 +44,14 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template #items="{ item }">
|
|
|
|
|
<v-col cols="12" class="pb-0">
|
|
|
|
|
<UserItem :user="item" @userId="userId" />
|
|
|
|
|
<UserItem :user="item" />
|
|
|
|
|
</v-col>
|
|
|
|
|
</template>
|
|
|
|
|
</data-iterator>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="text-center mt-40 mb-5">
|
|
|
|
|
<pagination :pagination="getPaginationUser" @pagination="changePagination" />
|
|
|
|
|
</div> -->
|
|
|
|
|
</main-back>
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<ChangeRoleModal :userId="id" v-if="isModal('modal_changeRole')" /><FiltersModal
|
|
|
|
|
<ChangeRoleModal v-if="isModal('modal_changeRole')" /><FiltersModal
|
|
|
|
|
@filter="load"
|
|
|
|
|
v-if="isModal('modal_filters')"
|
|
|
|
|
/>
|
|
|
|
@ -79,7 +76,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data: () => ({
|
|
|
|
|
role: UserStorage.getRole() ? UserStorage.getRole() : null,
|
|
|
|
|
id: null,
|
|
|
|
|
}),
|
|
|
|
|
computed: {
|
|
|
|
|
...mapGetters("users", [
|
|
|
|
@ -111,10 +107,9 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async load() {
|
|
|
|
|
this.role === "admin" ? await this.loadUsers() : await this.loadTrainerTrainee();
|
|
|
|
|
},
|
|
|
|
|
userId(id) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
this.role === "admin"
|
|
|
|
|
? await this.loadUsers()
|
|
|
|
|
: await this.loadTrainerTrainee();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
async created() {
|
|
|
|
|