Skip to content

Instantly share code, notes, and snippets.

View MLS535's full-sized avatar

Maite Ladaria MLS535

View GitHub Profile
<template>
//SIMPLIFICADO AQUI PUEDE HABER COSAS MAL PORQUE LO HAGO UN POCO DE CABEZA
<select placeholder="Select country"
@change="filterList(testing2,filters,details, selectedFilter)"
name="details"
id="details"
class="details form-sel"
v-model="selectedFilter">
<option value="All">details List</option>
<option v-for="item of testing2" :value="item"> {{ item }}</option>
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { storeToRefs } from 'pinia';
import { useContractorStore } from '@/stores/contractor';
import { useFilter } from '@/composables/useFilter';
import ContractorModal from '@/components/modals/ContractorModal.vue'
const contractorStore = useContractorStore();
const { setSelectedContractor, getContractors, getStatusName } = contractorStore;
const { Contractors } = storeToRefs(contractorStore)