2018-07-31 09:08:22 +00:00
|
|
|
import ngModule from '../../module';
|
2020-03-17 10:17:50 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-07-31 09:08:22 +00:00
|
|
|
|
2020-03-17 10:17:50 +00:00
|
|
|
class Controller extends Section {
|
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
2018-07-31 09:08:22 +00:00
|
|
|
this.filter = {
|
|
|
|
include: [
|
|
|
|
{
|
2019-01-29 14:04:38 +00:00
|
|
|
relation: 'type',
|
2018-07-31 09:08:22 +00:00
|
|
|
scope: {
|
2019-01-29 14:04:38 +00:00
|
|
|
fields: ['code', 'description']
|
2018-07-31 09:08:22 +00:00
|
|
|
}
|
2020-04-28 12:26:02 +00:00
|
|
|
}, {
|
2022-05-26 14:14:10 +00:00
|
|
|
relation: 'user',
|
2018-07-31 09:08:22 +00:00
|
|
|
scope: {
|
2022-05-26 14:14:10 +00:00
|
|
|
fields: ['id', 'name']
|
2018-07-31 09:08:22 +00:00
|
|
|
}
|
2020-04-28 12:26:02 +00:00
|
|
|
}, {
|
2019-01-29 14:04:38 +00:00
|
|
|
relation: 'company',
|
2018-07-31 09:08:22 +00:00
|
|
|
scope: {
|
2019-01-29 14:04:38 +00:00
|
|
|
fields: ['code']
|
2018-07-31 09:08:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnClientSampleIndex', {
|
2018-07-31 09:08:22 +00:00
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|