From f081b7206fc7fc2ced2174796cd7536bcdd1593a Mon Sep 17 00:00:00 2001 From: Bartha Maxime <231026@umons.ac.be> Date: Sat, 20 Apr 2024 19:56:07 +0200 Subject: [PATCH] cleaning frontend --- .../FilterComponent.vue | 25 +++- .../ScientificPublications/ListResearches.vue | 1 - .../ManageResearcherProfile.vue | 114 +----------------- .../ResearcherProfile.vue | 33 +---- 4 files changed, 22 insertions(+), 151 deletions(-) diff --git a/frontend/src/Apps/ScientificPublications/FilterComponent.vue b/frontend/src/Apps/ScientificPublications/FilterComponent.vue index 2bba29b..3916001 100644 --- a/frontend/src/Apps/ScientificPublications/FilterComponent.vue +++ b/frontend/src/Apps/ScientificPublications/FilterComponent.vue @@ -8,11 +8,17 @@ import { ref } from "vue"; import {onClickOutside} from '@vueuse/core' const yearList = ref([]) +const yearCheckedList = ref([]) const monthList = ref([]) +const monthCheckedList = ref([]) const accessList = ref([]) +const accessCheckedList = ref([]) const languageList = ref([]) +const languageCheckedList = ref([]) const domainList = ref([]) +const domainCheckedList = ref([]) const paperTypeList = ref([]) +const paperTypCheckedList = ref([]) const filters = Object.assign({},{ year:[], @@ -23,6 +29,7 @@ const filters = Object.assign({},{ paperType:[], }) + const props = defineProps({ isOpen: Boolean, allArticles: ref([Object]) @@ -30,6 +37,12 @@ const props = defineProps({ function submit(){ + filters.paperType = paperTypCheckedList.value + filters.year = yearCheckedList.value + filters.month = monthCheckedList.value + filters.access = accessCheckedList.value + filters.language = languageCheckedList.value + filters.domain = domainCheckedList.value emit("modal-close") emit("submit", filters) } @@ -96,12 +109,12 @@ onClickOutside(target, ()=>emit('modal-close'))