|
@@ -1006,7 +1006,7 @@
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
- async onSubmit() {
|
|
|
+ async onSubmit(allowOverstepActivityStudentNum) { // 次数限制是否可以继续创建
|
|
|
let form = this.form
|
|
|
let statusList = this.statusList
|
|
|
|
|
@@ -1169,6 +1169,9 @@
|
|
|
courseSchedules: this.timeTable,
|
|
|
vipGroupApplyBaseInfo: form
|
|
|
}
|
|
|
+ if(allowOverstepActivityStudentNum) {
|
|
|
+ params.allowOverstepActivityStudentNum = 1
|
|
|
+ }
|
|
|
if (!this.onSubmitStatus) {
|
|
|
return
|
|
|
}
|
|
@@ -1193,6 +1196,19 @@
|
|
|
this.$router.push('/business')
|
|
|
}
|
|
|
}, 500)
|
|
|
+ } else if(result.code == 206) {
|
|
|
+ this.$dialog.confirm({
|
|
|
+ message: result.msg,
|
|
|
+ showConfirmButton: true,
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '继续创建',
|
|
|
+ cancelButtonText: '取消'
|
|
|
+ }).then(() => {
|
|
|
+ this.onSubmitStatus = true
|
|
|
+ this.salaryStatus = false
|
|
|
+ this.onSubmit(1)
|
|
|
+ })
|
|
|
+ return
|
|
|
} else {
|
|
|
this.onSubmitStatus = true
|
|
|
this.salaryStatus = true
|