salix/modules/client/front/sample/index/index.js

34 lines
869 B
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: 'user',
scope: {
fields: ['id', 'name']
}
}, {
relation: 'company',
scope: {
fields: ['code']
}
}
]
};
}
}
ngModule.vnComponent('vnClientSampleIndex', {
template: require('./index.html'),
controller: Controller
});