2018-05-25 08:03:45 +00:00
|
|
|
import ngModule from '../../module';
|
2018-07-17 06:44:31 +00:00
|
|
|
|
|
|
|
class Controller {
|
|
|
|
constructor($stateParams) {
|
|
|
|
this.$stateParams = $stateParams;
|
|
|
|
this.filter = {
|
|
|
|
include: [
|
|
|
|
{
|
2019-01-22 09:04:42 +00:00
|
|
|
relation: 'worker',
|
2018-07-17 06:44:31 +00:00
|
|
|
scope: {
|
2019-01-22 09:04:42 +00:00
|
|
|
fields: ['firstName', 'name']
|
2018-07-17 06:44:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-01-22 09:04:42 +00:00
|
|
|
relation: 'state',
|
2018-07-17 06:44:31 +00:00
|
|
|
scope: {
|
2019-01-22 09:04:42 +00:00
|
|
|
fields: ['name']
|
2018-07-17 06:44:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Controller.$inject = ['$stateParams'];
|
2018-05-25 08:03:45 +00:00
|
|
|
|
|
|
|
ngModule.component('vnTicketTrackingIndex', {
|
|
|
|
template: require('./index.html'),
|
2018-07-17 06:44:31 +00:00
|
|
|
controller: Controller
|
2018-05-25 08:03:45 +00:00
|
|
|
});
|