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

32 lines
813 B
JavaScript
Raw Normal View History

2018-05-23 12:26:51 +00:00
import ngModule from '../../module';
2020-03-17 10:17:50 +00:00
import Section from 'salix/components/section';
2018-07-16 06:00:04 +00:00
2020-03-17 10:17:50 +00:00
class Controller extends Section {
constructor($element, $) {
super($element, $);
2018-07-16 06:00:04 +00:00
this.filter = {
include: [
{
relation: 'worker',
scope: {
2023-08-30 10:48:57 +00:00
fields: ['id'],
include: {
relation: 'user',
scope: {
2020-09-03 13:11:16 +00:00
fields: ['name']
}
}
2018-07-16 06:00:04 +00:00
}
}
]
};
}
}
2020-03-17 10:17:50 +00:00
Controller.$inject = ['$element', '$scope'];
2018-05-23 12:26:51 +00:00
ngModule.vnComponent('vnClientCreditIndex', {
2018-05-23 12:26:51 +00:00
template: require('./index.html'),
2018-07-16 06:00:04 +00:00
controller: Controller
2018-05-23 12:26:51 +00:00
});