33 lines
818 B
JavaScript
33 lines
818 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'
|
|
};
|
|
}
|
|
}
|
|
|
|
Controller.$inject = ['$element', '$scope'];
|
|
|
|
ngModule.vnComponent('vnClientGreugeIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|