salix/modules/route/front/main/index.js

22 lines
571 B
JavaScript
Raw Normal View History

2019-11-10 10:08:44 +00:00
import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
export default class Route extends ModuleMain {
$postLink() {
let to = new Date();
to.setDate(to.getDate() + 1);
to.setHours(0, 0, 0, 0);
let from = new Date();
from.setHours(0, 0, 0, 0);
2020-12-23 11:42:41 +00:00
this.filterParams = {from, to, warehouseFk: this.vnConfig.warehouseFk};
this.$.model.applyFilter(null, this.filterParams);
2019-11-10 10:08:44 +00:00
}
}
ngModule.vnComponent('vnRoute', {
controller: Route,
template: require('./index.html')
});