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

37 lines
646 B
JavaScript
Raw Normal View History

2018-04-10 05:48:04 +00:00
import ngModule from '../module';
class Controller {
constructor($scope, $state) {
this.$scope = $scope;
this.$state = $state;
}
set ticket(data) {
if (!data) return;
2018-04-10 05:48:04 +00:00
this.data = Object.assign({}, data);
}
registerChild(child) {
this.child = child;
2018-04-10 05:48:04 +00:00
}
2020-02-07 12:38:32 +00:00
onStepChange() {
return this.child.onStepChange();
}
onSubmit() {
this.child.onSubmit();
2018-04-10 05:48:04 +00:00
}
}
Controller.$inject = ['$scope', '$state'];
ngModule.component('vnTicketBasicData', {
template: require('./index.html'),
2018-04-10 05:48:04 +00:00
bindings: {
ticket: '<'
},
controller: Controller
});