2019-10-25 11:26:38 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-18 11:55:22 +00:00
|
|
|
import Section from 'salix/components/section';
|
2019-10-25 11:26:38 +00:00
|
|
|
|
2020-03-18 11:55:22 +00:00
|
|
|
class Controller extends Section {
|
2019-10-25 11:26:38 +00:00
|
|
|
onSubmit() {
|
2020-03-18 11:55:22 +00:00
|
|
|
return this.$.watcher.submit().then(() =>
|
|
|
|
this.card.reload()
|
|
|
|
);
|
2019-10-25 11:26:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ngModule.component('vnTravelBasicData', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller,
|
|
|
|
bindings: {
|
|
|
|
travel: '<'
|
|
|
|
},
|
|
|
|
require: {
|
|
|
|
card: '^vnTravelCard'
|
|
|
|
}
|
|
|
|
});
|