Commit aa246dd3 authored by 黄奎's avatar 黄奎

老版约课调整

parent 811330fc
......@@ -175,9 +175,10 @@
{{item.CourseChapterNoName}}
</template>
<template v-else>
<!--@change="changeChapter(item)"-->
<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">
label="消课章节" :dense="false" emit-value map-options class="col-4" >
<template v-slot:option="{ itemProps, itemEvents, opt, }">
<q-item v-bind="itemProps" v-on="itemEvents">
<q-item-section>
......@@ -542,6 +543,7 @@
//获取学生列表
this.getStu_V2();
},
//添加学员
subscribeCourse() {
if (this.editType == 1) {
......@@ -638,6 +640,7 @@
StuId: this.stuInfo.StuId,
StuName: this.stuInfo.StuName,
GuestId: this.stuInfo.GuestId,
OrderId:this.stuInfo.OrderId,
LearnCourseId: this.stuInfo.CourseId,
CourseName: this.stuInfo.CourseName,
FinishChapterNoName: this.stuInfo.FinishChapterNoName,
......@@ -645,7 +648,7 @@
//学员消课编号
CourseChapterList: [],
};
sObj.CourseGradeId = this.stuInfo.CourseRate;
sObj.CourseGradeId = this.checkChapter.CourseRate;
sObj.CourseGradeNo = "";
// 对比是否存在改学员
......@@ -668,6 +671,10 @@
this.saveMsg.ChooseStuList.push(sObj);
}
},
// changeChapter(item)
// {
// console.log("changeItem",item);
// },
//保存约课
SaveStuAppointment() {
var tipStr = ""
......@@ -675,7 +682,6 @@
this.saveMsg.ChooseStuList.forEach(item => {
if (item.CourseGradeNo == '' || !item.CourseGradeNo) {
tipStr += "请选择【" + item.StuName + "】消课编号;";
}
})
}
......@@ -697,8 +703,6 @@
message: "操作成功",
position: "top"
});
// this.$emit("success");
this.detailCloseHandle();
}
})
......@@ -710,7 +714,9 @@
getCourseChapterList(item) {
queryChapterList({
CourseId: item.LearnCourseId,
IsQRoot: 1
OrderId:item.OrderId,
IsQRoot: 1,
CourseGradeId:item.CourseGradeId,
}).then(res => {
if (res.Code == 1) {
item.CourseChapterList = 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