40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
import ngModule from '../../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
this.filter = {
|
|
include: [
|
|
{
|
|
relation: 'type',
|
|
scope: {
|
|
fields: ['code', 'description']
|
|
}
|
|
}, {
|
|
relation: 'worker',
|
|
scope: {
|
|
fields: ['userFk'],
|
|
include: {
|
|
relation: 'user',
|
|
scope: {
|
|
fields: ['name']
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
relation: 'company',
|
|
scope: {
|
|
fields: ['code']
|
|
}
|
|
}
|
|
]
|
|
};
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnClientSampleIndex', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|