Commit d2f93e31 authored by 罗超's avatar 罗超

2

parent 02bec44c
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
}, },
getStu() { getStu() {
const msg = { const msg = {
ChapterNo: this.saveObj.Ranks ChapterNo: this.saveObj.Ranks+this.saveObj.CourseGradeId
}; };
getCanMakeupStuList(msg).then(res => { getCanMakeupStuList(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
......
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
allStuList: [], allStuList: [],
stuMsg: { stuMsg: {
CourseId: 0, CourseId: 0,
NextChapterNo: 0 NextCourseGradeNo: 0
}, },
detailObj: {}, detailObj: {},
detailMsg: { detailMsg: {
...@@ -289,13 +289,13 @@ ...@@ -289,13 +289,13 @@
this.stuMsg.CourseId = this.teaClassMsg.CourseId || 0; this.stuMsg.CourseId = this.teaClassMsg.CourseId || 0;
if (this.editType == 1) { if (this.editType == 1) {
this.stuMsg.CourseGradeId = this.checkChapter.CourseRate || 0; this.stuMsg.CourseGradeId = this.checkChapter.CourseRate || 0;
this.stuMsg.NextChapterNo = this.checkChapter.ChapterNo || 0; this.stuMsg.NextCourseGradeNo = this.checkChapter.ChapterNo || 0;
} }
if (this.editType == 2) { if (this.editType == 2) {
this.stuMsg.CourseGradeId = this.saveObj.CourseGradeId || 0; this.stuMsg.CourseGradeId = this.saveObj.CourseGradeId || 0;
this.stuMsg.NextChapterNo = this.saveObj.Ranks || 0; this.stuMsg.NextCourseGradeNo = this.saveObj.Ranks || 0;
} }
console.log(298,this.checkChapter)
GetCanAppointmentStuList(this.stuMsg).then(res => { GetCanAppointmentStuList(this.stuMsg).then(res => {
this.stuList = JSON.parse(JSON.stringify(res.Data)); this.stuList = JSON.parse(JSON.stringify(res.Data));
this.allStuList = JSON.parse(JSON.stringify(res.Data)); this.allStuList = JSON.parse(JSON.stringify(res.Data));
...@@ -390,6 +390,8 @@ ...@@ -390,6 +390,8 @@
const totalTime = this.courseCheckList.reduce((pre, cur) => { const totalTime = this.courseCheckList.reduce((pre, cur) => {
return (pre += cur.Minutes); return (pre += cur.Minutes);
}, 0); }, 0);
console.log(this.courseCheckList)
console.log(totalTime)
if (this.checkChapter.StudyMinutes !== totalTime) { if (this.checkChapter.StudyMinutes !== totalTime) {
this.$q.notify({ this.$q.notify({
message: "课时不匹配,请重新上课时段", message: "课时不匹配,请重新上课时段",
......
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