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

2

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