2018-07-31 09:08:22 +00:00
|
|
|
import ngModule from '../../module';
|
|
|
|
|
|
|
|
class Controller {
|
|
|
|
constructor($stateParams) {
|
|
|
|
this.$stateParams = $stateParams;
|
|
|
|
this.filter = {
|
|
|
|
include: [
|
|
|
|
{
|
2019-01-29 14:04:38 +00:00
|
|
|
relation: 'type',
|
2018-07-31 09:08:22 +00:00
|
|
|
scope: {
|
2019-01-29 14:04:38 +00:00
|
|
|
fields: ['code', 'description']
|
2018-07-31 09:08:22 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-01-29 14:04:38 +00:00
|
|
|
relation: 'worker',
|
2018-07-31 09:08:22 +00:00
|
|
|
scope: {
|
2019-01-31 13:14:39 +00:00
|
|
|
fields: ['userFk'],
|
|
|
|
include: {
|
|
|
|
relation: 'user',
|
|
|
|
scope: {
|
|
|
|
fields: ['nickname']
|
|
|
|
}
|
|
|
|
}
|
2018-07-31 09:08:22 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-01-29 14:04:38 +00:00
|
|
|
relation: 'company',
|
2018-07-31 09:08:22 +00:00
|
|
|
scope: {
|
2019-01-29 14:04:38 +00:00
|
|
|
fields: ['code']
|
2018-07-31 09:08:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Controller.$inject = ['$stateParams'];
|
|
|
|
|
|
|
|
ngModule.component('vnClientSampleIndex', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|