This commit is contained in:
parent
29610e52cc
commit
a190f2152b
|
@ -153,11 +153,18 @@
|
|||
</tpl-item>
|
||||
</vn-autocomplete>
|
||||
<vn-textfield
|
||||
label="Concept"
|
||||
ng-model="filter.changedModelValue">
|
||||
label="Search"
|
||||
ng-model="filter.search">
|
||||
<append>
|
||||
<vn-icon
|
||||
icon="info_outline"
|
||||
vn-tooltip="Search by id or concept"
|
||||
pointer>
|
||||
</vn-icon>
|
||||
</append>
|
||||
</vn-textfield>
|
||||
<vn-autocomplete
|
||||
label="Model"
|
||||
label="Entity"
|
||||
ng-model="filter.changedModel"
|
||||
value-field="changedModel"
|
||||
show-field="changedModelI18n"
|
||||
|
|
|
@ -141,7 +141,7 @@ export default class Controller extends Section {
|
|||
function getParam(prop, value) {
|
||||
if (value == null || value == '') return null;
|
||||
switch (prop) {
|
||||
case 'changedModelValue':
|
||||
case 'search':
|
||||
const or = [{changedModelId: value}];
|
||||
if (!/^[0-9]+$/.test(value))
|
||||
or.push({changedModelValue: {like: `%${value}%`}});
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
Date: Fecha
|
||||
Concept: Concepto
|
||||
Model: Modelo
|
||||
Search: Buscar
|
||||
Search by id or concept: Buscar por identificador o concepto
|
||||
Entity: Entidad
|
||||
Action: Acción
|
||||
Author: Autor
|
||||
Before: Antes
|
||||
|
|
Loading…
Reference in New Issue