|
@@ -12,7 +12,7 @@
|
|
|
>课程组调整</div>
|
|
|
<!-- // accompanys/addCourse -->
|
|
|
<div v-permission="{ child:'courseSchedule/batchAddCourses',parent:'/accompanys'}" class="newBand" @click="addCourse">网管课加课</div>
|
|
|
- <div class="newBand" v-permission="'accompanys/vipCourseAdjust'" @click="adjustment">批量调整</div>
|
|
|
+ <div class="newBand" v-permission="'courseSchedule/batchUpdateCourseSchedule'" @click="adjustment">批量调整</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="tableWrap">
|
|
@@ -212,7 +212,7 @@
|
|
|
<el-button type="primary" @click="subresetTeacher">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :title="adjustmentName" width="800px" :visible.sync="adjustmentVisible">
|
|
|
+ <el-dialog :title="adjustmentName" width="800px" :visible.sync="adjustmentVisible">
|
|
|
<el-form
|
|
|
:model="adjustmentForm"
|
|
|
label-position="right"
|
|
@@ -304,7 +304,8 @@ import {
|
|
|
practiceCourseTeacherAdjust,
|
|
|
cleanAttendance,
|
|
|
batchAddCourses,
|
|
|
- getPracticeApplySubjects
|
|
|
+ getPracticeApplySubjects,
|
|
|
+ batchUpdateCourseSchedule
|
|
|
} from "@/api/buildTeam";
|
|
|
import {
|
|
|
vipCourseAdjust,
|
|
@@ -528,6 +529,7 @@ export default {
|
|
|
this.teacherForm.subject = this.courseData[0].subjectId;
|
|
|
this.teacherVisible = true;
|
|
|
},
|
|
|
+ // 提交课程组修改
|
|
|
subresetTeacher() {
|
|
|
this.$refs.teacherForm.validate(some => {
|
|
|
if (some) {
|
|
@@ -625,6 +627,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 批量调整
|
|
|
submitAdjustment() {
|
|
|
this.$refs["adjustmentForm"].validate(item => {
|
|
|
if (item) {
|
|
@@ -635,21 +638,21 @@ export default {
|
|
|
}
|
|
|
// 开始
|
|
|
let obj = {};
|
|
|
- obj.courseCreateStartTime = this.adjustmentForm.courseTime;
|
|
|
let idArr = this.activeList.map(item => {
|
|
|
return item.id;
|
|
|
});
|
|
|
// courseScheduleIdList
|
|
|
- let courseScheduleIdList = idArr.join(",");
|
|
|
+ let courseScheduleIdList = idArr;
|
|
|
obj.courseScheduleIdList = courseScheduleIdList;
|
|
|
- obj.courseScheduleIds = courseScheduleIdList
|
|
|
- obj.courseTimes = this.weekList;
|
|
|
- obj.holiday = this.adjustmentForm.checked;
|
|
|
- obj.teachMode = this.adjustmentForm.courseType || null;
|
|
|
- obj.groupType = "PRACTICE";
|
|
|
+ obj.startDate = this.adjustmentForm.courseTime;
|
|
|
+ obj.coursesTimes = this.adjustmentForm.addCount;
|
|
|
+ obj.teachingArrangementList = this.weekList;
|
|
|
|
|
|
- obj.vipGroupId = this.practiceId;
|
|
|
- vipCourseAdjust(obj).then(res => {
|
|
|
+ obj.isJumpHoliday = this.adjustmentForm.checked;
|
|
|
+ obj.musicGroupId = this.practiceId;
|
|
|
+ obj.teachMode = this.adjustmentForm.courseType;
|
|
|
+ obj.type = "PRACTICE";
|
|
|
+ batchUpdateCourseSchedule(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("恭喜您修改成功");
|
|
|
this.adjustmentVisible = false;
|
|
@@ -699,11 +702,6 @@ export default {
|
|
|
// 开始
|
|
|
let obj = {};
|
|
|
obj.startDate = this.adjustmentForm.courseTime;
|
|
|
- // let idArr = this.activeList.map(item => {
|
|
|
- // return item.id;
|
|
|
- // });
|
|
|
- // let courseScheduleIds = idArr.join(",");
|
|
|
- // obj.courseScheduleIds = courseScheduleIds;
|
|
|
obj.coursesTimes = this.adjustmentForm.addCount;
|
|
|
obj.teachingArrangementList = this.weekList;
|
|
|
|
|
@@ -737,6 +735,17 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
+ },
|
|
|
+ // closeAdjustment(){
|
|
|
+ // console.log(111)
|
|
|
+
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ watch:{
|
|
|
+ adjustmentVisible(val){
|
|
|
+ if(!val){
|
|
|
+ this.$refs.adjustmentForm.resetFields();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|