提交 929ca9ad 编写于 作者: KK's avatar KK

update:修复向导表单

上级 d5f3304d
...@@ -345,11 +345,11 @@ ...@@ -345,11 +345,11 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public onClickNext() { public async onClickNext() {
if(this.activeForm) { if(this.activeForm) {
if(this.$refs && this.$refs[this.activeForm]){ if(this.$refs && this.$refs[this.activeForm]){
let form: any = this.$refs[this.activeForm]; let form: any = this.$refs[this.activeForm];
if(form.formValidateStatus()) { if(await form.validAll()) {
this.curState = 'NEXT'; this.curState = 'NEXT';
this.wizardState.next({ tag: this.activeForm, action: 'save', data: this.formParam }); this.wizardState.next({ tag: this.activeForm, action: 'save', data: this.formParam });
} else { } else {
...@@ -364,11 +364,11 @@ ...@@ -364,11 +364,11 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public onClickFinish() { public async onClickFinish() {
if(this.activeForm) { if(this.activeForm) {
if(this.$refs && this.$refs[this.activeForm]){ if(this.$refs && this.$refs[this.activeForm]){
let form: any = this.$refs[this.activeForm]; let form: any = this.$refs[this.activeForm];
if(form.formValidateStatus()) { if(await form.validAll()) {
this.curState = 'FINISH'; this.curState = 'FINISH';
this.wizardState.next({ tag: this.activeForm, action: 'save', data: this.formParam }); this.wizardState.next({ tag: this.activeForm, action: 'save', data: this.formParam });
} else { } else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册