22 lines
519 B
JavaScript
22 lines
519 B
JavaScript
|
import ngModule from '../../module';
|
||
|
import Section from 'salix/components/section';
|
||
|
|
||
|
export default class Controller extends Section {
|
||
|
constructor($element, $) {
|
||
|
super($element, $);
|
||
|
this.note = {
|
||
|
workerFk: parseInt(this.$params.id),
|
||
|
text: null
|
||
|
};
|
||
|
}
|
||
|
|
||
|
cancel() {
|
||
|
this.$state.go('worker.card.note.index', {id: this.$params.id});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ngModule.vnComponent('vnNoteWorkerCreate', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller
|
||
|
});
|