31 lines
753 B
JavaScript
31 lines
753 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
this.filter = {
|
|
include: [
|
|
{
|
|
relation: 'mandateType',
|
|
scope: {
|
|
fields: ['id', 'name']
|
|
}
|
|
}, {
|
|
relation: 'company',
|
|
scope: {
|
|
fields: ['id', 'code']
|
|
}
|
|
}
|
|
]
|
|
};
|
|
}
|
|
}
|
|
|
|
Controller.$inject = ['$element', '$scope'];
|
|
|
|
ngModule.component('vnClientMandate', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|