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

31 lines
753 B
JavaScript
Raw Normal View History

2017-12-13 07:04:53 +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: [
{
2019-10-01 14:17:57 +00:00
relation: 'mandateType',
2018-07-16 06:00:04 +00:00
scope: {
2019-10-01 14:17:57 +00:00
fields: ['id', 'name']
2018-07-16 06:00:04 +00:00
}
2019-10-01 14:17:57 +00:00
}, {
relation: 'company',
2018-07-16 06:00:04 +00:00
scope: {
2019-10-01 14:17:57 +00:00
fields: ['id', 'code']
2018-07-16 06:00:04 +00:00
}
}
]
};
}
}
2020-03-17 10:17:50 +00:00
Controller.$inject = ['$element', '$scope'];
2017-12-13 07:04:53 +00:00
ngModule.component('vnClientMandate', {
2018-05-23 12:26:51 +00:00
template: require('./index.html'),
2018-07-16 06:00:04 +00:00
controller: Controller
2017-12-13 07:04:53 +00:00
});