|
@@ -4,7 +4,11 @@
|
|
|
<el-page-header @back="goBack" :content="name"></el-page-header>
|
|
|
</h2>
|
|
|
<!-- v-permission="'vipGroupManage/updateVipBaseInfo'" -->
|
|
|
- <div class="newBand" @click="resetTeachers" v-permission="'courseSchedule/practiceGroupTeacherAdjust'">修改老师</div>
|
|
|
+ <div
|
|
|
+ class="newBand"
|
|
|
+ @click="resetTeachers"
|
|
|
+ v-permission="'courseSchedule/practiceGroupTeacherAdjust'"
|
|
|
+ >修改老师</div>
|
|
|
<div class="tableWrap">
|
|
|
<el-table :data="tableList" :header-cell-style="{background:'#EDEEF0',color:'#444'}">
|
|
|
<!-- @selection-change="handleSelectionChange" -->
|
|
@@ -56,7 +60,7 @@
|
|
|
>调整</el-button>
|
|
|
<!-- v-permission="'courseSchedule/classStartDateAdjust'" -->
|
|
|
<el-button
|
|
|
- v-permission="'courseSchedule/practiceCourseTeacherAdjust'"
|
|
|
+ v-permission="'courseSchedule/practiceCourseTeacherAdjust'"
|
|
|
type="text"
|
|
|
v-if="!scope.row.isSettlement"
|
|
|
@click="resetTeacher(scope.row)"
|
|
@@ -87,6 +91,7 @@
|
|
|
v-model.trim="maskForm.date"
|
|
|
style="width:200px!important;"
|
|
|
type="date"
|
|
|
+ :picker-options="courseOption"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
placeholder="选择日期"
|
|
|
></el-date-picker>
|
|
@@ -96,6 +101,7 @@
|
|
|
placeholder="起始时间"
|
|
|
style="width:200px!important;"
|
|
|
v-model.trim="startTime"
|
|
|
+
|
|
|
:picker-options="{
|
|
|
start: '08:30',
|
|
|
step: '00:30',
|
|
@@ -223,7 +229,8 @@ export default {
|
|
|
},
|
|
|
teacherForm: {
|
|
|
teacher: null
|
|
|
- }
|
|
|
+ },
|
|
|
+ courseOption:null
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -250,6 +257,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
// 获取课程组信息
|
|
|
+ this.courseOption = this.coursesDate();
|
|
|
this.getCourseGroup();
|
|
|
this.getList();
|
|
|
},
|
|
@@ -333,7 +341,7 @@ export default {
|
|
|
this.isMultiple = false;
|
|
|
this.activeRow = row;
|
|
|
this.teacherForm.teacher = row.actualTeacherId;
|
|
|
- console.log(row.actualTeacherId)
|
|
|
+ console.log(row.actualTeacherId);
|
|
|
this.teacherVisible = true;
|
|
|
},
|
|
|
resetTeachers() {
|
|
@@ -353,22 +361,21 @@ export default {
|
|
|
type: "warning"
|
|
|
})
|
|
|
.then(() => {
|
|
|
- practiceGroupTeacherAdjust({
|
|
|
- practiceGroupId: this.practiceId,
|
|
|
- teacherId: this.teacherForm.teacher
|
|
|
- }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message.success("修改成功");
|
|
|
- this.getCourseGroup();
|
|
|
- this.getList();
|
|
|
- this.teacherVisible = false;
|
|
|
- }
|
|
|
- });
|
|
|
+ practiceGroupTeacherAdjust({
|
|
|
+ practiceGroupId: this.practiceId,
|
|
|
+ teacherId: this.teacherForm.teacher
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ this.getCourseGroup();
|
|
|
+ this.getList();
|
|
|
+ this.teacherVisible = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- return
|
|
|
+ return;
|
|
|
});
|
|
|
-
|
|
|
} else {
|
|
|
// 修改单节课老师
|
|
|
practiceCourseTeacherAdjust({
|
|
@@ -386,6 +393,20 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ coursesDate() {
|
|
|
+ let self = this;
|
|
|
+ return {
|
|
|
+ disabledDate: time => {
|
|
|
+ // if (self.leftForm.courseStart) {
|
|
|
+ // let date = new Date(self.leftForm.courseStart.replace(/-/, "/"));
|
|
|
+ let date = new Date('2020-3-31'.replace(/-/, "/"))
|
|
|
+
|
|
|
+ return time.getTime() > date.getTime();
|
|
|
+ // }
|
|
|
+ // return;
|
|
|
+ }
|
|
|
+ };
|
|
|
}
|
|
|
}
|
|
|
};
|