31 lines
764 B
JavaScript
31 lines
764 B
JavaScript
import ngModule from '../../module';
|
|
|
|
class Controller {
|
|
constructor($stateParams) {
|
|
this.$stateParams = $stateParams;
|
|
this.filter = {
|
|
include: [
|
|
{
|
|
relation: 'worker',
|
|
scope: {
|
|
fields: ['userFk'],
|
|
include: {
|
|
relation: 'user',
|
|
scope: {
|
|
fields: ['nickname']
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
};
|
|
}
|
|
}
|
|
|
|
Controller.$inject = ['$stateParams'];
|
|
|
|
ngModule.component('vnClientCreditIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|