Commit a926434a authored by 黄奎's avatar 黄奎
parents 6f744346 b21a4222
...@@ -640,14 +640,32 @@ ...@@ -640,14 +640,32 @@
}) })
return return
} }
if (this.DefaultPlanTimeList[i].DateList.length == 0) { for(let j = 0; j < this.DefaultPlanTimeList[i].TimeList.length;j++ ){
if(this.DefaultPlanTimeList[i].TimeList[j].StartTime==''){
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
message: `请选择第${i+1}行周几` message: `请填写第${i+1}行,第${j+1}个开始时间`
})
return
}
if(this.DefaultPlanTimeList[i].TimeList[j].EndTime==''){
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写第${i+1}行,第${j+1}个结束时间`
}) })
return return
} }
if(this.DefaultPlanTimeList[i].TimeList[j].TimeHour==''){
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写第${i+1}行,第${j+1}个的课时`
})
return
}
}
} }
} }
if (!this.$refs.ClassName.hasError && !this.$refs.ClassPersion.hasError) { if (!this.$refs.ClassName.hasError && !this.$refs.ClassPersion.hasError) {
...@@ -802,6 +820,7 @@ ...@@ -802,6 +820,7 @@
TimeList: [{ TimeList: [{
StartTime: "", StartTime: "",
EndTime: "", EndTime: "",
TimeHour: ''
}], }],
} }
this.DefaultPlanTimeList.push(planObj); this.DefaultPlanTimeList.push(planObj);
...@@ -826,6 +845,7 @@ ...@@ -826,6 +845,7 @@
var obj = { var obj = {
StartTime: "", StartTime: "",
EndTime: "", EndTime: "",
TimeHour: ''
} }
item.TimeList.push(obj); item.TimeList.push(obj);
}, },
......
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