Commit b21a4222 authored by zhengke's avatar zhengke

修改

parent 3e9708b0
...@@ -640,13 +640,31 @@ ...@@ -640,13 +640,31 @@
}) })
return return
} }
if (this.DefaultPlanTimeList[i].DateList.length == 0) { for(let j = 0; j < this.DefaultPlanTimeList[i].TimeList.length;j++ ){
this.$q.notify({ if(this.DefaultPlanTimeList[i].TimeList[j].StartTime==''){
type: 'negative', this.$q.notify({
position: "top", type: 'negative',
message: `请选择第${i+1}行周几` position: "top",
}) message: `请填写第${i+1}行,第${j+1}个开始时间`
return })
return
}
if(this.DefaultPlanTimeList[i].TimeList[j].EndTime==''){
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写第${i+1}行,第${j+1}个结束时间`
})
return
}
if(this.DefaultPlanTimeList[i].TimeList[j].TimeHour==''){
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写第${i+1}行,第${j+1}个的课时`
})
return
}
} }
} }
} }
...@@ -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