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

26 lines
587 B
JavaScript

import ngModule from '../../module';
class Controller {
constructor($stateParams) {
this.$stateParams = $stateParams;
this.filter = {
include: [
{
relation: 'greugeType',
scope: {
fields: ['id', 'name']
}
}
],
order: 'shipped DESC, amount'
};
}
}
Controller.$inject = ['$stateParams'];
ngModule.component('vnClientGreugeIndex', {
template: require('./index.html'),
controller: Controller
});