fix: getDirections in makeProposals modal
This commit is contained in:
@@ -57,12 +57,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const initData = async() => {
|
const initData = async() => {
|
||||||
|
console.log('load: ', props.load);
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
let filterQuery = [];
|
let filterQuery = [];
|
||||||
filterQuery.company = "company="+ authStore.user.company
|
filterQuery.company = "company="+ authStore.user.company
|
||||||
await vehiclesStore.fetchVehicles(filterQuery);
|
await vehiclesStore.fetchVehicles(filterQuery);
|
||||||
originCoords.value = await geocodeAddress(props.load.origin_formatted_address);
|
originCoords.value = {lat: Number.parseFloat(props.load.origin.lat), lng: Number.parseFloat(props.load.origin.lng)};
|
||||||
destinationCoords.value = await geocodeAddress(props.load.destination_formatted_address);
|
destinationCoords.value = {lat: Number.parseFloat(props.load.destination.lat), lng: Number.parseFloat(props.load.destination.lng)};;
|
||||||
polylines.value = await getDirections(originCoords.value, destinationCoords.value);
|
polylines.value = await getDirections(originCoords.value, destinationCoords.value);
|
||||||
isLoading.value = false;
|
isLoading.value = false;
|
||||||
console.log(props.proposal);
|
console.log(props.proposal);
|
||||||
|
|||||||
Reference in New Issue
Block a user