salix/modules/client/front/greuge/index/index.js

27 lines
642 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']
}
}
],
order: 'shipped DESC, amount'
};
}
}
Controller.$inject = ['$element', '$scope'];
ngModule.component('vnClientGreugeIndex', {
template: require('./index.html'),
controller: Controller
});