add: filters locations & offerts
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user