salix/modules/worker/front/pda/index.js

19 lines
468 B
JavaScript
Raw Normal View History

import ngModule from '../module';
import Section from 'salix/components/section';
class Controller extends Section {
constructor($element, $) {
super($element, $);
}
2024-05-17 12:46:49 +00:00
async $onInit() {
const url = await this.vnApp.getUrl(`worker/${this.$params.id}/pda`);
this.$state.go('worker.card.summary', {id: this.$params.id});
2024-05-17 12:46:49 +00:00
window.location.href = url;
}
}
2024-05-17 12:56:40 +00:00
ngModule.vnComponent('vnWorkerPda', {
2024-05-21 06:54:53 +00:00
controller: Controller
});