salix/modules/worker/front/department/basic-data/index.js

25 lines
605 B
JavaScript
Raw Normal View History

2023-05-16 06:54:54 +00:00
import ngModule from '../../module';
2023-05-15 08:43:06 +00:00
import Section from 'salix/components/section';
class Controller extends Section {
constructor($element, $) {
super($element, $);
this.maritalStatus = [
{code: 'M', name: this.$t('Married')},
{code: 'S', name: this.$t('Single')}
];
}
onSubmit() {
return this.$.watcher.submit()
.then(() => this.card.reload());
}
}
2023-05-26 10:21:15 +00:00
ngModule.vnComponent('vnWorkerDepartmentBasicData', {
2023-05-15 08:43:06 +00:00
template: require('./index.html'),
controller: Controller,
bindings: {
worker: '<'
}
});