30 lines
756 B
JavaScript
30 lines
756 B
JavaScript
import ngModule from '../../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
this.filter = {
|
|
include: [
|
|
{
|
|
relation: 'greugeType',
|
|
scope: {
|
|
fields: ['id', 'name']
|
|
},
|
|
}, {
|
|
relation: 'user',
|
|
scope: {
|
|
fields: ['id', 'name']
|
|
}
|
|
}
|
|
],
|
|
order: 'shipped DESC, amount'
|
|
};
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnClientGreugeIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|