26 lines
585 B
JavaScript
26 lines
585 B
JavaScript
|
/* eslint-disable no-console */
|
||
|
import ngModule from '../module';
|
||
|
import Section from 'salix/components/section';
|
||
|
|
||
|
class Controller extends Section {
|
||
|
constructor($element, $) {
|
||
|
super($element, $);
|
||
|
console.log($);
|
||
|
}
|
||
|
|
||
|
onSubmit() {
|
||
|
this.$.watcher.submit().then(
|
||
|
console.log('abc'),
|
||
|
json => this.$state.go('item.card.basicData', {id: json.data.id})
|
||
|
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Controller.$inject = ['$element', '$scope'];
|
||
|
|
||
|
ngModule.vnComponent('vnSupplierCreate', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller
|
||
|
});
|