add: map directions & set data load in form edit
This commit is contained in:
@@ -27,13 +27,13 @@
|
||||
const getDataLoadsInit = async() => {
|
||||
filterQuery.value.status = "status[$ne]="+"Closed";
|
||||
loading.value = true;
|
||||
await companyStore.getCompanyLoads(filterQuery.value);
|
||||
await loadStore.getCompanyLoads(filterQuery.value);
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
const getLoadWithFilters = async(filter) => {
|
||||
loading.value = true;
|
||||
await companyStore.getCompanyLoads(filter);
|
||||
await loadStore.getCompanyLoads(filter);
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
<template>
|
||||
<AttachmentsModal v-if="loadStore.currentLoad"/>
|
||||
<FormLoadModal/>
|
||||
<FormLoadModal v-if="loadStore.openModalEdit"/>
|
||||
<div>
|
||||
<h2 class="title mb-5">Mis cargas publicadas</h2>
|
||||
<div>
|
||||
@@ -86,12 +86,13 @@
|
||||
<button
|
||||
class="btn-primary-sm radius-sm"
|
||||
data-toggle="modal" data-target="#formLoadModal"
|
||||
@click="loadStore.openModalEdit = true"
|
||||
><i class="fa-solid fa-plus"></i> <span class="clear-sm"> Crear</span><span class="clear-md"> carga</span></button>
|
||||
</div>
|
||||
<Spiner v-if="loading"/>
|
||||
<CardLoad
|
||||
v-else
|
||||
v-for="load in companyStore.loads"
|
||||
v-for="load in loadStore.loads"
|
||||
:key="load._id"
|
||||
:load="load"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user