Commit a4fb3514 authored by 黄奎's avatar 黄奎

111

parent fe84e207
......@@ -141,9 +141,9 @@
{{item.CourseChapterNoName}}
</template>
<template v-else>
<q-select filled stack-label use-input option-value="ChapterNo" option-label="ChapterName"
v-model="item.CourseGradeNo" ref="ChapterGradeNo" :options="item.CourseChapterList"
label="消课章节" :dense="false" emit-value map-options class="col-4"
<q-select filled stack-label use-input option-value="ChapterId" option-label="ChapterName"
v-model="item.ChapterId" ref="ChapterGradeNo" :options="item.CourseChapterList"
label="消课章节" :dense="false" class="col-4" emit-value map-options
@input="changeStuChapter(item)">
<template v-slot:option="{ itemProps, itemEvents, opt, }">
<q-item v-bind="itemProps" v-on="itemEvents">
......@@ -318,7 +318,6 @@
saveObj: {
handler(val) {
if (val) {
console.log("saveObj", this.saveObj)
this.saveMsg.Date = this.dateObj.date;
this.saveMsg.TeacherId = this.saveObj.Tid;
this.saveMsg.ShiftSort = this.saveObj.ShiftSort;
......@@ -372,8 +371,9 @@
OrderId: 0, //学员订单编号
CourseId: 0, //消课课程ID
CourseName: "", //消课课程名称
ChapterId: 0, //消课章节ID
CourseGradeId: 0, //消课课程等级
CourseGradeNo: 0, //消课章节编号
CourseGradeNo: 0, //消课章节编号ChapterNo
FinishChapterNoName: "", //完成章节名称
CourseChapterNoName: "", //消课章节名称
AppointmentId: 0, //预约编号
......@@ -508,10 +508,13 @@
changeStuChapter(item) {
if (item.CourseChapterList && item.CourseChapterList.length > 0) {
const changeChapter = item.CourseChapterList.find(
s => s.ChapterNo == item.CourseGradeNo
s => s.ChapterId == item.ChapterId
);
if (changeChapter) {
item.CourseGradeId = changeChapter.CourseRate;
item.ChapterId = changeChapter.ChapterId;
item.CourseGradeNo = changeChapter.ChapterNo;
item.CourseId = changeChapter.CourseId;
}
}
},
......@@ -617,7 +620,6 @@
this.saveMsg.CourseGradeId = this.saveMsg.CourseRate;
}
}
var sObj = this.getStuItem();
sObj.StuId = this.stuInfo.StuId;
sObj.StuName = this.stuInfo.StuName;
......@@ -626,9 +628,6 @@
sObj.CourseId = this.stuInfo.CourseId;
sObj.CourseName = this.stuInfo.CourseName;
sObj.FinishChapterNoName = this.stuInfo.FinishChapterNoName;
sObj.AppointmentId = 0;
sObj.CourseGradeId = 0;
sObj.CourseChapterList = [];
// 对比是否存在改学员
if (this.saveMsg.ChooseStuList.length > 0) {
let ArrId = this.saveMsg.ChooseStuList.map(item => {
......
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