Demo: filtrar por lista de precios en precios
This commit is contained in:
parent
cf868a92e9
commit
555b118716
2 changed files with 6 additions and 1 deletions
|
@ -93,7 +93,11 @@ setupForm("#save-token", async () => {
|
||||||
});
|
});
|
||||||
setupForm("#productos", () => getProductos(HOST, token(), {}));
|
setupForm("#productos", () => getProductos(HOST, token(), {}));
|
||||||
setupForm("#publicaciones", () => getPublications(HOST, token(), {}));
|
setupForm("#publicaciones", () => getPublications(HOST, token(), {}));
|
||||||
setupForm("#price", () => getPrices(HOST, token(), {}));
|
setupForm("#price", (event) =>
|
||||||
|
getPrices(HOST, token(), {
|
||||||
|
filter: (event.target! as any).filter.value,
|
||||||
|
})
|
||||||
|
);
|
||||||
setupForm("#price-by-customer", (event) =>
|
setupForm("#price-by-customer", (event) =>
|
||||||
getPricesByCustomer(HOST, token(), {
|
getPricesByCustomer(HOST, token(), {
|
||||||
filter: (event.target! as any).filter.value,
|
filter: (event.target! as any).filter.value,
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
|
|
||||||
<form id="price">
|
<form id="price">
|
||||||
<button>Conseguir precios</button>
|
<button>Conseguir precios</button>
|
||||||
|
<input name="filter" type="text" placeholder="Filtro por lista de precios (ID, opcional)" />
|
||||||
<p class="status"></p>
|
<p class="status"></p>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue