Commit aa246dd3 authored by 黄奎's avatar 黄奎

老版约课调整

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