salix/client/claim/src/index/index.js

40 lines
962 B
JavaScript
Raw Normal View History

2018-08-07 09:57:11 +00:00
import ngModule from '../module';
export default class Controller {
constructor($scope) {
this.$ = $scope;
this.ticketSelected = null;
this.filter = {
include: [
{
2018-08-07 10:48:55 +00:00
relation: 'client',
2018-08-07 09:57:11 +00:00
scope: {
fields: ['name']
}
2018-08-07 10:48:55 +00:00
},
{
relation: 'worker',
2018-08-07 09:57:11 +00:00
scope: {
2018-08-07 10:48:55 +00:00
fields: ['firstName', 'name']
2018-08-07 09:57:11 +00:00
}
2018-08-07 10:48:55 +00:00
},
{
relation: 'claimState',
2018-08-07 09:57:11 +00:00
scope: {
2018-08-07 10:48:55 +00:00
fields: ['description']
2018-08-07 09:57:11 +00:00
}
}
],
2018-08-07 10:48:55 +00:00
order: 'claimStateFk ASC, created DESC'
2018-08-07 09:57:11 +00:00
};
}
}
Controller.$inject = ['$scope'];
ngModule.component('vnClaimIndex', {
template: require('./index.html'),
controller: Controller
});