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