From 4e7c7db6f771ec76137b350088b9899ff99ab623 Mon Sep 17 00:00:00 2001 From: Alexandro Uc Santos Date: Wed, 24 Apr 2024 20:42:52 -0600 Subject: [PATCH] add: selected popup directory type --- src/components/CustomPopup.vue | 93 ++++++++++++++++++++++++++++++++++ src/views/LocationsView.vue | 70 ++++++++++++++++++++++--- 2 files changed, 157 insertions(+), 6 deletions(-) create mode 100644 src/components/CustomPopup.vue diff --git a/src/components/CustomPopup.vue b/src/components/CustomPopup.vue new file mode 100644 index 0000000..421ff1f --- /dev/null +++ b/src/components/CustomPopup.vue @@ -0,0 +1,93 @@ + + + + + + \ No newline at end of file diff --git a/src/views/LocationsView.vue b/src/views/LocationsView.vue index 9a7b40c..06e67d0 100644 --- a/src/views/LocationsView.vue +++ b/src/views/LocationsView.vue @@ -6,6 +6,7 @@ import CreateLocationModal from '../components/CreateLocationModal.vue'; import CardLocation from '../components/CardLocation.vue'; import Pagination from '../components/Pagination.vue'; +import CustomPopup from '../components/CustomPopup.vue'; const companyStore = useCompanyStore(); @@ -14,6 +15,9 @@ const query = ref(''); const locationCurrent = ref(null); const openModal = ref(false); + // const typeDirection = ref(null) + const typeDirection = ref({value: 'both', label: 'Ambas'}) + const openPopup = ref(false); onMounted(() => { getInitData(); @@ -94,9 +98,36 @@ locationCurrent.value = null; } + const selectedType = (type) => { + console.log(type) + typeDirection.value = type + openPopup.value = false + } + + const optionsFilter = [ + {value: 'both',label: 'Ambas'}, + {value: 'load',label: 'Carga'}, + {value: 'download',label: 'Descarga'} + ] + + const closePopup = () => { + openPopup.value = false + } +