add: pagination of users
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
zoom.value = 4;
|
||||
heightMap.value = 420;
|
||||
}
|
||||
if(companyStore.locations.length <= 0) {
|
||||
if(companyStore.locationsLoads.length <= 0) {
|
||||
getLocations();
|
||||
}
|
||||
formLoad.owner = auth.user?.first_name + ' ' + auth.user?.last_name;
|
||||
@@ -144,8 +144,8 @@
|
||||
|
||||
const getLocations = async() => {
|
||||
loadingLocations.value = true;
|
||||
filterQueryVehicles.value.company = "company="+ localStorage.getItem('id');
|
||||
await companyStore.getLocationsCompany(filterQueryVehicles.value, false)
|
||||
// filterQueryVehicles.value.company = "company="+ localStorage.getItem('id');
|
||||
await companyStore.getLocationsLoads()
|
||||
loadingLocations.value = false;
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@
|
||||
v-model="locationLoadSelected"
|
||||
>
|
||||
<option disabled value="">-- Seleccionar locación --</option>
|
||||
<option v-for="loc in companyStore.locations" :value="loc">{{ loc.branch_name }}</option>
|
||||
<option v-for="loc in companyStore.locationsLoads" :value="loc">{{ loc.branch_name }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<Custominput
|
||||
|
||||
Reference in New Issue
Block a user