salix/modules/claim/front/basic-data/index.js

21 lines
490 B
JavaScript
Raw Normal View History

2018-08-29 07:45:37 +00:00
import ngModule from '../module';
2020-03-16 10:58:14 +00:00
import Section from 'salix/components/section';
2018-08-29 09:43:25 +00:00
import './style.scss';
2018-08-29 07:45:37 +00:00
2020-03-16 10:58:14 +00:00
class Controller extends Section {
onSubmit() {
2020-03-16 10:58:14 +00:00
this.$.watcher.submit().then(() => {
if (this.aclService.hasAny(['claimManager']))
this.$state.go('claim.card.detail');
});
}
}
ngModule.vnComponent('vnClaimBasicData', {
2018-08-29 07:45:37 +00:00
template: require('./index.html'),
controller: Controller,
2018-08-29 07:45:37 +00:00
bindings: {
claim: '<'
}
});