16 lines
408 B
JavaScript
16 lines
408 B
JavaScript
|
import ngModule from '../../module';
|
||
|
import Section from 'salix/components/section';
|
||
|
|
||
|
export default class Controller extends Section {
|
||
|
onSubmit() {
|
||
|
return this.$.watcher.submit().then(res =>
|
||
|
this.$state.go('account.role.card.basicData', {id: res.data.id})
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ngModule.component('vnRoleCreate', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller
|
||
|
});
|