add: filters locations & offerts

This commit is contained in:
Alexandro Uc Santos
2024-10-03 21:32:23 -06:00
parent 0b56a2a223
commit f129acf9e6
9 changed files with 162 additions and 27 deletions

View File

@@ -7,6 +7,7 @@ import { useI18n } from "vue-i18n";
export const useCompanyStore = defineStore('company', () => {
const { t } = useI18n();
const company = ref(null)
const users = ref([]);
const drivers = ref([]);
@@ -18,12 +19,12 @@ export const useCompanyStore = defineStore('company', () => {
const locations = ref([]);
const locationsLoads = ref([]);
const locationsTotal = ref(0);
const locationType = ref({value: '', label: t('labels.alls')})
const locationsCurrentPage = ref(0);
const proposals = ref([]);
const proposalsTotal = ref(0);
const proposalsCurrentPage = ref(0)
const loading = ref(false);
const { t } = useI18n();
const getCompanyData = async() => {
const companyId = localStorage.getItem('id');
@@ -400,6 +401,7 @@ export const useCompanyStore = defineStore('company', () => {
locationsLoads,
locationsTotal,
locationsCurrentPage,
locationType,
clear,
$reset,
loading,