salix/modules/ticket/front/tracking/index/index.js

31 lines
717 B
JavaScript
Raw Normal View History

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'];
ngModule.component('vnTicketTrackingIndex', {
template: require('./index.html'),
2018-07-17 06:44:31 +00:00
controller: Controller
});