2018-09-04 13:08:36 +00:00
|
|
|
import ngModule from '../module';
|
2018-12-27 11:54:16 +00:00
|
|
|
import SearchPanel from 'core/components/searchbar/search-panel';
|
2018-09-04 13:08:36 +00:00
|
|
|
|
2022-11-23 13:04:43 +00:00
|
|
|
class Controller extends SearchPanel {
|
|
|
|
itemSearchFunc($search) {
|
|
|
|
return /^\d+$/.test($search)
|
|
|
|
? {id: $search}
|
|
|
|
: {name: {like: '%' + $search + '%'}};
|
|
|
|
}
|
|
|
|
}
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnClaimSearchPanel', {
|
2018-09-04 13:08:36 +00:00
|
|
|
template: require('./index.html'),
|
2022-11-23 13:04:43 +00:00
|
|
|
controller: Controller
|
2018-09-04 13:08:36 +00:00
|
|
|
});
|