Commit 465fa632 authored by 罗超's avatar 罗超

2

parent 18a23dab
......@@ -135,7 +135,11 @@
</q-field>
<div
class="row col"
v-show="(editType == 1 || saveObj.ClassType == 3)&&auth.IsEdit"
v-show="
(editType == 1 ||
(saveObj.ClassType == 3 && saveObj.AppointState == 1)) &&
auth.IsEdit
"
>
<div class="col-10">
<q-select
......@@ -233,19 +237,18 @@ export default {
type: Array,
default: () => []
},
auth:{
type:Object,
default:()=>{
auth: {
type: Object,
default: () => {
return {
IsEdit:false
}
IsEdit: false
};
}
}
},
watch: {
show(val) {
console.log(1111111)
this.addLoading = false
this.addLoading = false;
if (val) {
this.stuInfo = "";
this.teaClassMsg.CourseId = 0;
......@@ -298,7 +301,7 @@ export default {
addLoading: false,
chapterList: [], //章节列表,
checkChapter: {}, //选择的章节
returnString: [], //章节默认值
returnString: [] //章节默认值
};
},
mounted() {
......@@ -364,10 +367,15 @@ export default {
//获取学生列表
getStu() {
this.stuMsg.CourseId = this.teaClassMsg.CourseId || 0;
this.stuMsg.CourseGradeId =
this.checkChapter.CourseRate || this.saveObj.CourseGradeId;
this.stuMsg.NextChapterNo =
this.checkChapter.ChapterNo || this.saveObj.Ranks;
if (this.editType == 1) {
this.stuMsg.CourseGradeId = this.checkChapter.CourseRate||0;
this.stuMsg.NextChapterNo = this.checkChapter.ChapterNo||0;
}
if (this.editType == 2) {
this.stuMsg.CourseGradeId = this.saveObj.CourseGradeId||0;
this.stuMsg.NextChapterNo = this.saveObj.Ranks||0;
}
GetCanAppointmentStuList(this.stuMsg).then(res => {
this.stuList = JSON.parse(JSON.stringify(res.Data));
this.allStuList = JSON.parse(JSON.stringify(res.Data));
......
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