Commit a4fb3514 authored by 黄奎's avatar 黄奎

111

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