Browse Source

添加判断

lex-xin 3 years ago
parent
commit
557fa2ff03
2 changed files with 20 additions and 4 deletions
  1. 17 1
      src/views/teacher/VIP00Apply.vue
  2. 3 3
      vue.config.js

+ 17 - 1
src/views/teacher/VIP00Apply.vue

@@ -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

+ 3 - 3
vue.config.js

@@ -1,7 +1,7 @@
-let targetUrl = 'http://mteatest.dayaedu.com'
+// let targetUrl = 'http://mteatest.dayaedu.com'
 // let targetUrl = 'http://192.168.3.139:8000' // 箭河
 // let targetUrl = 'https://online.dayaedu.com'
-// let targetUrl = 'http://dev.dayaedu.com/'
+let targetUrl = 'http://dev.dayaedu.com/'
 // let targetUrl = 'http://192.168.3.196'
 module.exports = {
   chainWebpack: config => {
@@ -39,7 +39,7 @@ module.exports = {
     open: process.platform === 'darwin',
     host: '0.0.0.0',
     port: 9999,
-    https: true,
+    https: false,
     hotOnly: false,
     // 查阅 https://github.com/vuejs/vue-doc-zh-cn/vue-cli/cli-service.md#配置代理
     proxy: {