|
@@ -584,14 +584,13 @@ export default {
|
|
|
this.$toast('线上课次数+线下课次数不等于总课次数')
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ if (!this.checkCourseList()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (this.scheduleList.length <= 0) {
|
|
|
this.$toast("课时安排不能为空");
|
|
|
return false;
|
|
|
}
|
|
|
- if (!this.checkCourseList()) {
|
|
|
- return;
|
|
|
- }
|
|
|
// 排课
|
|
|
const checkmMsg = this.checkTimeTable()
|
|
|
if (checkmMsg) {
|
|
@@ -906,7 +905,15 @@ export default {
|
|
|
statusList.hasOnline &&
|
|
|
parseFloat(form.onlineClassesNums || 0) + parseFloat(form.offlineClassesNums || 0) != this.form.totalClassTime
|
|
|
) {
|
|
|
- this.$toast('线上课次数+线下课次数不等于总课次数')
|
|
|
+ if (isShowToast) {
|
|
|
+ this.$toast('线上次数+线下课次数不等于总课次数')
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(!this.form.courseStart) {
|
|
|
+ if(isShowToast) {
|
|
|
+ this.$toast('请选择排课开始时间')
|
|
|
+ }
|
|
|
return false
|
|
|
}
|
|
|
return true;
|