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

31 lines
717 B
JavaScript

import ngModule from '../../module';
class Controller {
constructor($stateParams) {
this.$stateParams = $stateParams;
this.filter = {
include: [
{
relation: 'worker',
scope: {
fields: ['firstName', 'name']
}
},
{
relation: 'state',
scope: {
fields: ['name']
}
}
]
};
}
}
Controller.$inject = ['$stateParams'];
ngModule.component('vnTicketTrackingIndex', {
template: require('./index.html'),
controller: Controller
});