43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
import ngModule from '../../module';
|
|
|
|
class Controller {
|
|
constructor($stateParams) {
|
|
this.$stateParams = $stateParams;
|
|
this.filter = {
|
|
include: [
|
|
{
|
|
relation: 'type',
|
|
scope: {
|
|
fields: ['code', 'description']
|
|
}
|
|
},
|
|
{
|
|
relation: 'worker',
|
|
scope: {
|
|
fields: ['userFk'],
|
|
include: {
|
|
relation: 'user',
|
|
scope: {
|
|
fields: ['nickname']
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
relation: 'company',
|
|
scope: {
|
|
fields: ['code']
|
|
}
|
|
}
|
|
]
|
|
};
|
|
}
|
|
}
|
|
|
|
Controller.$inject = ['$stateParams'];
|
|
|
|
ngModule.component('vnClientSampleIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|