Search on all fields, remove search in
This commit is contained in:
@@ -316,8 +316,8 @@ const async_search = async () => {
|
||||
if (settingsStore.country.code !== undefined) country = settingsStore.country.code;
|
||||
|
||||
console.log('SETTINGS',settingsStore.country);
|
||||
console.log('URL',route("products.search", [settingsStore.field.value, settingsStore.text, country]));
|
||||
const response = await axios.get(route("products.search", [settingsStore.field.value, settingsStore.text, country, settingsStore.online]));
|
||||
console.log('URL',route("products.search", ['all', settingsStore.text, country]));
|
||||
const response = await axios.get(route("products.search", ['all', settingsStore.text, country, settingsStore.online]));
|
||||
|
||||
options_items.value = response.data.map((i) => {
|
||||
return {
|
||||
@@ -505,23 +505,6 @@ const selectedRowClassNameFunction = (item) => {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="">
|
||||
<div>
|
||||
<span class="font-extrabold font-mono">Search in:</span>
|
||||
</div>
|
||||
<div>
|
||||
<multiselect
|
||||
v-model="settingsStore.field"
|
||||
:multiple="false"
|
||||
:searchable="false"
|
||||
:allow-empty="false"
|
||||
:options="sdropdown"
|
||||
track-by="value"
|
||||
label="text"
|
||||
@select="onSelectCode"
|
||||
></multiselect>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user