Commit 9f7ea967 authored by 罗超's avatar 罗超

2

parent 93bc2ef0
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
</q-field> </q-field>
<div <div
class="row col" class="row col"
v-show="(editType == 1 || saveObj.ClassType == 3)&&showAddStu()" v-show="(editType == 1 || saveObj.ClassType == 3) && showAddStu()"
> >
<div class="col-10"> <div class="col-10">
<q-select <q-select
...@@ -413,14 +413,19 @@ export default { ...@@ -413,14 +413,19 @@ export default {
} }
}, },
watch: { watch: {
saveObj: { show(val){
handler(val) { if (val) {
this.stuInfo = ""; this.stuInfo = "";
if (this.editType == 2 && val.ClassType == 3) { this.teaClassMsg.CourseId=0
this.getStu(); this.teaClassMsg.TeacherId=0
} this.teaClassMsg.chapterList=[]
}, this.teacherTimeList=[]
deep: true this.courseCheckList=[]
if (this.editType == 2) {
this.getStu();
}
}
} }
}, },
data() { data() {
...@@ -460,7 +465,7 @@ export default { ...@@ -460,7 +465,7 @@ export default {
chapterList: [], //章节列表, chapterList: [], //章节列表,
checkChapter: {}, //选择的章节 checkChapter: {}, //选择的章节
returnString: [], //章节默认值 returnString: [], //章节默认值
checkStuType2: [], // checkStuType2: [] //
}; };
}, },
mounted() { mounted() {
...@@ -541,9 +546,7 @@ export default { ...@@ -541,9 +546,7 @@ export default {
} }
}); });
}, },
addStu() { addStu() {},
},
//获取章节 //获取章节
getChapterTree() { getChapterTree() {
if (this.teaClassMsg.CourseId == 0) return; if (this.teaClassMsg.CourseId == 0) return;
...@@ -616,6 +619,7 @@ export default { ...@@ -616,6 +619,7 @@ export default {
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(622,totalTime,this.checkChapter.StudyMinutes)
if (this.checkChapter.StudyMinutes !== totalTime) { if (this.checkChapter.StudyMinutes !== totalTime) {
this.$q.notify({ this.$q.notify({
message: "课时不匹配,请重新上课时段", message: "课时不匹配,请重新上课时段",
...@@ -673,9 +677,7 @@ export default { ...@@ -673,9 +677,7 @@ export default {
ok: "是", ok: "是",
persistent: true persistent: true
}) })
.onOk(() => { .onOk(() => {})
})
.onCancel(() => { .onCancel(() => {
this.changeDig(false); this.changeDig(false);
}); });
...@@ -733,8 +735,8 @@ export default { ...@@ -733,8 +735,8 @@ export default {
new Date(QCalendar.today()).getTime() new Date(QCalendar.today()).getTime()
) { ) {
return false; return false;
}else{ } else {
return true return true;
} }
} }
} }
......
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