refs #4971 itemSearchFunc added
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2022-12-23 12:11:24 +01:00
parent c13b49c7cd
commit 7d1b8c8c56
1 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,12 @@ export default class Controller extends Section {
this.vnApp.showSuccess(this.$t('Data saved!')); this.vnApp.showSuccess(this.$t('Data saved!'));
}); });
} }
itemSearchFunc($search) {
return /^\d+$/.test($search)
? {id: $search}
: {name: {like: '%' + $search + '%'}};
}
} }
ngModule.vnComponent('vnEntryBuyIndex', { ngModule.vnComponent('vnEntryBuyIndex', {