This commit is contained in:
@@ -161,7 +161,7 @@ const async_search = async (item) => {
|
|||||||
console.log('SEARCH', item, form.country.code, route('products.search', [item, form.country.code]));
|
console.log('SEARCH', item, form.country.code, route('products.search', [item, form.country.code]));
|
||||||
const response = await axios.get(route('products.search', [item, form.country.code]));
|
const response = await axios.get(route('products.search', [item, form.country.code]));
|
||||||
|
|
||||||
options_items.value = response.data.map((i) => { return { "item": i.name, "desc": i.typeName, "img": i.mainImageUrl, "code": i.code } });
|
options_items.value = response.data.map((i) => { return { "item": i.name, "desc": i.typeName, "img": i.mainImageUrl, "code": i.code, "url": i.url } });
|
||||||
console.log("VALUES=", options_items.value);
|
console.log("VALUES=", options_items.value);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -276,7 +276,11 @@ const submit = () => {
|
|||||||
<span class="font-extrabold font-mono">Vysledky vyhladavania</span>
|
<span class="font-extrabold font-mono">Vysledky vyhladavania</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<EasyTable :rows-per-page=15 :headers="hproducts" :items="tproducts" alternating></EasyTable>
|
<EasyTable :rows-per-page=15 :headers="hproducts" :items="tproducts" alternating>
|
||||||
|
<template #item-name="{ name, url }">
|
||||||
|
<a target="_blank" :href="url">{{ name }}</a>
|
||||||
|
</template>
|
||||||
|
</EasyTable>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user