fix: hotfix search
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-11-27 10:18:32 +01:00
parent bfb0915da0
commit a531973421
2 changed files with 5 additions and 6 deletions

View File

@ -7,13 +7,13 @@ import filter from './TravelFilter.js';
<VnCard <VnCard
data-key="Travel" data-key="Travel"
base-url="Travels" base-url="Travels"
search-data-key="TravelList"
:filter="filter"
:descriptor="TravelDescriptor" :descriptor="TravelDescriptor"
:filter="filter"
search-data-key="TravelList"
:searchbar-props="{ :searchbar-props="{
url: 'Travels', url: 'Travels/filter',
searchUrl: 'table',
label: 'Search travel', label: 'Search travel',
info: 'You can search by travel id or name',
}" }"
/> />
</template> </template>

View File

@ -208,6 +208,7 @@ const columns = computed(() => [
ref="tableRef" ref="tableRef"
data-key="TravelList" data-key="TravelList"
url="Travels/filter" url="Travels/filter"
redirect="travel"
:create="{ :create="{
urlCreate: 'Travels', urlCreate: 'Travels',
title: t('Create Travels'), title: t('Create Travels'),
@ -221,9 +222,7 @@ const columns = computed(() => [
order="landed DESC" order="landed DESC"
:columns="columns" :columns="columns"
auto-load auto-load
redirect="travel"
:is-editable="false" :is-editable="false"
:use-model="true"
> >
<template #column-status="{ row }"> <template #column-status="{ row }">
<div class="row"> <div class="row">