Commit eed46dfb authored by zhengke's avatar zhengke

修改

parent 5ab79951
...@@ -613,7 +613,6 @@ ...@@ -613,7 +613,6 @@
saveCourse() { saveCourse() {
this.$refs.ClassName.validate(); this.$refs.ClassName.validate();
this.$refs.ClassPersion.validate(); this.$refs.ClassPersion.validate();
if (!this.$refs.ClassName.hasError && !this.$refs.ClassPersion.hasError) { if (!this.$refs.ClassName.hasError && !this.$refs.ClassPersion.hasError) {
if (this.objOption.IsOpenCommission == 1) { if (this.objOption.IsOpenCommission == 1) {
if (this.objOption.CommissionValue == '') { if (this.objOption.CommissionValue == '') {
...@@ -642,6 +641,7 @@ ...@@ -642,6 +641,7 @@
PlanList: res.Data.ClassPlanList, PlanList: res.Data.ClassPlanList,
} }
var NewClassId = res.Data.ClassId; var NewClassId = res.Data.ClassId;
if(this.objOption.ClassDateList.length<2){
batchSaveClassPlan(newMsg).then(res => { batchSaveClassPlan(newMsg).then(res => {
this.saveCourseLoading = false this.saveCourseLoading = false
if (res.Code == 1) { if (res.Code == 1) {
...@@ -667,6 +667,7 @@ ...@@ -667,6 +667,7 @@
this.closeCourseForm() this.closeCourseForm()
} }
}) })
}
} else { } else {
this.saveCourseLoading = false this.saveCourseLoading = false
this.$q.notify({ this.$q.notify({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment