2020-03-09 08:00:03 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import Section from 'salix/components/section';
|
|
|
|
|
|
|
|
export default class Controller extends Section {
|
2023-05-23 08:04:31 +00:00
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
|
|
|
this.user = {active: true};
|
|
|
|
}
|
|
|
|
|
2020-03-09 08:00:03 +00:00
|
|
|
onSubmit() {
|
|
|
|
return this.$.watcher.submit().then(res => {
|
|
|
|
this.$state.go('account.card.basicData', {id: res.data.id});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ngModule.component('vnUserCreate', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|