|
@@ -4,7 +4,7 @@
|
|
|
<h2>
|
|
|
<el-page-header @back="goBack" :content="name"></el-page-header>
|
|
|
</h2>
|
|
|
- <p style="margin-bottom:10px; margin-left:30px;"> 课程有效期:{{ timers }}</p>
|
|
|
+ <p style="margin-bottom:10px; margin-left:30px;">课程有效期:{{ timers }}</p>
|
|
|
</div>
|
|
|
|
|
|
<!-- v-permission="'vipGroupManage/updateVipBaseInfo'" -->
|
|
@@ -220,6 +220,16 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="教务老师">
|
|
|
+ <el-select v-model.trim="teacherForm.educationalTeacherId" filterable clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="(item,index) in educationList"
|
|
|
+ :key="index"
|
|
|
+ :value="item.userId"
|
|
|
+ :label="item.userName"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item v-show="isMultiple">
|
|
|
<p style="color:#FF5353">*更改课程组老师,将更换全部未开始课程的老师</p>
|
|
|
</el-form-item>
|
|
@@ -322,7 +332,8 @@ import {
|
|
|
cleanAttendance,
|
|
|
batchAddCourses,
|
|
|
getPracticeApplySubjects,
|
|
|
- batchUpdateCourseSchedule
|
|
|
+ batchUpdateCourseSchedule,
|
|
|
+ findEducationUsers
|
|
|
} from "@/api/buildTeam";
|
|
|
import {
|
|
|
vipCourseAdjust,
|
|
@@ -381,12 +392,14 @@ export default {
|
|
|
},
|
|
|
teacherRules: {
|
|
|
teacher: [{ required: true, message: "请选择老师", trigger: "blur" }],
|
|
|
- subjectId: [{ required: true, message: "请选择声部", trigger: "blur" }]
|
|
|
+ subjectId: [{ required: true, message: "请选择声部", trigger: "blur" }],
|
|
|
+ educationalTeacherId: [{ required: true, message: "请选择教务老师", trigger: "blur" }]
|
|
|
},
|
|
|
teacherForm: {
|
|
|
teacher: null,
|
|
|
name: null,
|
|
|
- subjectId: null
|
|
|
+ subjectId: null,
|
|
|
+ educationalTeacherId:null
|
|
|
},
|
|
|
courseOption: null,
|
|
|
coursesExpireDate: null,
|
|
@@ -419,6 +432,7 @@ export default {
|
|
|
{ value: "7", label: "星期日" }
|
|
|
],
|
|
|
activeList: [],
|
|
|
+ educationList: [],
|
|
|
timers: null
|
|
|
};
|
|
|
},
|
|
@@ -438,7 +452,15 @@ export default {
|
|
|
if (this.$route.query.searchForm) {
|
|
|
this.FsearchForm = this.$route.query.searchForm;
|
|
|
}
|
|
|
- // console.log(this.practiceId)
|
|
|
+ // 获取教务老师
|
|
|
+ findEducationUsers({
|
|
|
+
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.educationList = res.data
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
// <!-- 状态 指导老师 活动方案-->
|
|
|
getTeacher({ organId: this.organId }).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -549,7 +571,7 @@ export default {
|
|
|
this.teacherForm.teacher = this.courseData[0].userId;
|
|
|
this.teacherForm.name = this.courseData[0].name;
|
|
|
this.teacherForm.subjectId = this.courseData[0].subjectId;
|
|
|
-
|
|
|
+ this.teacherForm.educationalTeacherId = this.courseData[0].educationalTeacherId;
|
|
|
this.teacherVisible = true;
|
|
|
},
|
|
|
// 提交课程组修改
|
|
@@ -562,7 +584,8 @@ export default {
|
|
|
practiceGroupTeacherAdjust({
|
|
|
practiceGroupId: this.practiceId,
|
|
|
teacherId: this.teacherForm.teacher,
|
|
|
- subjectId: this.teacherForm.subjectId
|
|
|
+ subjectId: this.teacherForm.subjectId,
|
|
|
+ educationalTeacherId:this.teacherForm.educationalTeacherId
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("修改成功");
|
|
@@ -672,7 +695,7 @@ export default {
|
|
|
|
|
|
obj.isJumpHoliday = this.adjustmentForm.checked;
|
|
|
obj.musicGroupId = this.practiceId;
|
|
|
- obj.teachMode = 'ONLINE';
|
|
|
+ obj.teachMode = "ONLINE";
|
|
|
obj.type = "PRACTICE";
|
|
|
batchUpdateCourseSchedule(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -714,7 +737,6 @@ export default {
|
|
|
},
|
|
|
// 网管课加课提交
|
|
|
addCourseSubmit() {
|
|
|
-
|
|
|
this.$refs["adjustmentForm"].validate(item => {
|
|
|
if (item) {
|
|
|
let week = this.weekList;
|
|
@@ -730,7 +752,7 @@ export default {
|
|
|
|
|
|
obj.isJumpHoliday = this.adjustmentForm.checked;
|
|
|
obj.musicGroupId = this.practiceId;
|
|
|
- obj.teachMode = 'ONLINE';
|
|
|
+ obj.teachMode = "ONLINE";
|
|
|
obj.type = "PRACTICE";
|
|
|
batchAddCourses(obj).then(res => {
|
|
|
if (res.code == 200) {
|