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

35 lines
927 B
JavaScript

import ngModule from '../../module';
import Section from 'salix/components/section';
class Controller extends Section {
constructor($element, $) {
super($element, $);
this.filter = {
include: [
{
relation: 'user',
scope: {
fields: ['id', 'name'],
include: {
relation: 'worker',
scope: {
fields: ['id']
}
}
}
}, {
relation: 'state',
scope: {
fields: ['name']
}
}
]
};
}
}
ngModule.vnComponent('vnTicketTrackingIndex', {
template: require('./index.html'),
controller: Controller
});