30 lines
686 B
JavaScript
30 lines
686 B
JavaScript
import ngModule from '../module';
|
|
import ModuleMain from 'salix/components/module-main';
|
|
|
|
export default class Shelving extends ModuleMain {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
this.filter = {
|
|
include: [
|
|
{relation: 'parking'}
|
|
],
|
|
};
|
|
}
|
|
|
|
exprBuilder(param, value) {
|
|
switch (param) {
|
|
case 'search':
|
|
return {code: {like: `%${value}%`}};
|
|
case 'parkingFk':
|
|
case 'userFk':
|
|
case 'isRecyclable':
|
|
return {[param]: value};
|
|
}
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnShelving', {
|
|
controller: Shelving,
|
|
template: require('./index.html')
|
|
});
|