Merge pull request '5691-route.index_optimizar' (!1610) from 5691-route.index_optimizar into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #1610
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Vicent Llopis 2023-06-14 11:01:43 +00:00
commit 9b692e00d4
1 changed files with 35 additions and 20 deletions

View File

@ -1,6 +1,21 @@
<vn-auto-search
model="model">
</vn-auto-search>
<vn-crud-model
auto-load="true"
url="AgencyModes"
data="agencyModes">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="Vehicles"
data="vehicles">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="Workers/activeWithInheritedRole"
data="activeWithInheritedRole">
</vn-crud-model>
<div class="vn-w-xl">
<vn-card>
<smart-table
@ -83,7 +98,7 @@
<td>
<vn-autocomplete
ng-model="route.workerFk"
url="Workers/activeWithInheritedRole"
data="activeWithInheritedRole"
show-field="nickname"
search-function="{firstName: $search}"
value-field="id"
@ -98,7 +113,7 @@
<td expand>
<vn-autocomplete
ng-model="route.agencyModeFk"
url="AgencyModes"
data="agencyModes"
show-field="name"
value-field="id"
on-change="$ctrl.updateAttributes(route)"
@ -108,7 +123,7 @@
<td expand>
<vn-autocomplete
ng-model="route.vehicleFk"
url="Vehicles"
data="vehicles"
show-field="numberPlate"
value-field="id"
on-change="$ctrl.updateAttributes(route)"