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

32 lines
813 B
JavaScript

import ngModule from '../../module';
import Section from 'salix/components/section';
class Controller extends Section {
constructor($element, $) {
super($element, $);
this.filter = {
include: [
{
relation: 'worker',
scope: {
fields: ['id'],
include: {
relation: 'user',
scope: {
fields: ['name']
}
}
}
}
]
};
}
}
Controller.$inject = ['$element', '$scope'];
ngModule.vnComponent('vnClientCreditIndex', {
template: require('./index.html'),
controller: Controller
});