2018-05-23 12:26:51 +00:00
|
|
|
import ngModule from '../../module';
|
2020-03-17 10:17:50 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-07-16 06:00:04 +00:00
|
|
|
|
2020-03-17 10:17:50 +00:00
|
|
|
class Controller extends Section {
|
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
2018-07-16 06:00:04 +00:00
|
|
|
this.filter = {
|
|
|
|
include: [
|
|
|
|
{
|
2019-05-16 07:24:13 +00:00
|
|
|
relation: 'greugeType',
|
2022-11-10 07:18:05 +00:00
|
|
|
scope: {
|
|
|
|
fields: ['id', 'name']
|
|
|
|
},
|
2023-05-08 14:30:21 +00:00
|
|
|
}, {
|
2022-11-10 07:18:05 +00:00
|
|
|
relation: 'user',
|
2018-07-16 06:00:04 +00:00
|
|
|
scope: {
|
2019-05-16 07:24:13 +00:00
|
|
|
fields: ['id', 'name']
|
2018-07-16 06:00:04 +00:00
|
|
|
}
|
|
|
|
}
|
2019-05-16 07:24:13 +00:00
|
|
|
],
|
|
|
|
order: 'shipped DESC, amount'
|
2018-07-16 06:00:04 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnClientGreugeIndex', {
|
2018-05-23 12:26:51 +00:00
|
|
|
template: require('./index.html'),
|
2018-07-16 06:00:04 +00:00
|
|
|
controller: Controller
|
2018-05-23 12:26:51 +00:00
|
|
|
});
|