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

2

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