#1343 update worker filter
This commit is contained in:
parent
9c596b06c8
commit
0d680bdaed
|
@ -28,6 +28,11 @@ module.exports = Self => {
|
|||
type: 'Integer',
|
||||
description: 'The worker id',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
arg: 'userFk',
|
||||
type: 'Integer',
|
||||
description: 'The user id',
|
||||
http: {source: 'query'}
|
||||
}, {
|
||||
arg: 'fi',
|
||||
type: 'String',
|
||||
|
@ -85,6 +90,8 @@ module.exports = Self => {
|
|||
]};
|
||||
case 'id':
|
||||
return {'w.id': value};
|
||||
case 'userFk':
|
||||
return {'w.userFk': value};
|
||||
case 'name':
|
||||
return {'w.name': {like: `%${value}%`}};
|
||||
case 'firstName':
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<vn-textfield
|
||||
vn-one
|
||||
label="User id"
|
||||
model="filter.id">
|
||||
model="filter.userFk">
|
||||
</vn-textfield>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
|
|
Loading…
Reference in New Issue