|
@@ -81,8 +81,8 @@
|
|
|
<!-- v-if="scope.row.type !='MIX'" -->
|
|
|
<el-button type="text"
|
|
|
@click="resetClass(scope.row)">学员调整</el-button>
|
|
|
- <!-- <el-button type="text"
|
|
|
- @click="classAdjustment(scope.row)">班级调整</el-button> -->
|
|
|
+ <el-button type="text"
|
|
|
+ @click="classAdjustment(scope.row)">班级调整</el-button>
|
|
|
<!--<el-button type="text"
|
|
|
@click="recourse(scope.row)">重新排课</el-button> -->
|
|
|
<el-popover placement="top"
|
|
@@ -277,6 +277,15 @@
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item> -->
|
|
|
+ <el-form-item label="调整方式"
|
|
|
+ v-if="!isNewClass"
|
|
|
+ prop="isAdd">
|
|
|
+ <el-radio v-model="teacherForm.isAdd"
|
|
|
+ label="new">班级加课</el-radio>
|
|
|
+ <el-radio v-model="teacherForm.isAdd"
|
|
|
+ label="renew">重新排课</el-radio>
|
|
|
+ </el-form-item>
|
|
|
+ <br>
|
|
|
<el-form-item label="主教老师"
|
|
|
prop='coreTeacher'>
|
|
|
<el-select v-model="teacherForm.coreTeacher"
|
|
@@ -308,6 +317,7 @@
|
|
|
:label="item.label"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <br>
|
|
|
<el-form-item label="排课次数"
|
|
|
prop="courseNum">
|
|
|
<el-input type='number'
|
|
@@ -374,12 +384,16 @@
|
|
|
class="dialog-footer">
|
|
|
<!-- 1为临时班级 -->
|
|
|
<el-button type="primary"
|
|
|
- v-if="isTemporary"
|
|
|
+ v-if="isTemporary&&isNewClass"
|
|
|
@click="submitTemporary(1)">确 定</el-button>
|
|
|
<!-- 2为新增班级 -->
|
|
|
<el-button type="primary"
|
|
|
- v-if="!isTemporary"
|
|
|
+ v-if="!isTemporary&&isNewClass"
|
|
|
@click="submitTemporary(2)">确 定</el-button>
|
|
|
+ <!-- 修改班级信息 -->
|
|
|
+ <el-button type="primary"
|
|
|
+ v-if="!isNewClass"
|
|
|
+ @click="submitTemporary(3)">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 新增合奏班 -->
|
|
@@ -592,7 +606,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { getAllClass, getAllSignClassandTeacher, getAllSignClass, removeSingleClass, getNoClassStudentAll, findSound, teamSoundStudent, findMusicGroupClassTeacher, revisionClassGroup, revisionAddClassGroup, getEmployeeOrgan, getTeacher, findNoClassSingle, getMusicGroupStuNoClassType } from '@/api/buildTeam'
|
|
|
+import { getAllClass, getAllSignClassandTeacher, getAllSignClass, removeSingleClass, getNoClassStudentAll, findSound, teamSoundStudent, findMusicGroupClassTeacher, revisionClassGroup, revisionAddClassGroup, getEmployeeOrgan, getTeacher, findNoClassSingle, getMusicGroupStuNoClassType, classGroupUpdate } from '@/api/buildTeam'
|
|
|
import { getClassAllStudent, removeStudents, addStudents } from '@/api/studentManager'
|
|
|
import axios from 'axios'
|
|
|
import qs from 'qs'
|
|
@@ -624,6 +638,7 @@ export default {
|
|
|
soundList: [],
|
|
|
infoVisible: false, // 判断是否需要显示老师设置
|
|
|
teacherForm: {
|
|
|
+ isAdd: null,
|
|
|
coreTeacher: '',
|
|
|
assistant: [],
|
|
|
courseType: '',
|
|
@@ -633,6 +648,7 @@ export default {
|
|
|
mixClassGroupId: ''
|
|
|
},
|
|
|
teacherRules: {
|
|
|
+ isAdd: [{ required: true, message: '请选择调整类型' }],
|
|
|
coreTeacher: [{ required: true, message: '请选择主教老师' }],
|
|
|
courseType: [{ required: true, message: '请选择上课类型' }],
|
|
|
courseTime: [{ required: true, message: '请选择开始时间' }],
|
|
@@ -919,6 +935,13 @@ export default {
|
|
|
},
|
|
|
// 班级调整
|
|
|
classAdjustment (row) {
|
|
|
+ console.log(row);
|
|
|
+ this.activeType = row.type;
|
|
|
+ this.activeClass = row.id;
|
|
|
+ // this.activeListStudent = row.subjectIdList.split(',')
|
|
|
+ this.setType(row.type)
|
|
|
+ // activeListStudent
|
|
|
+ this.isNewClass = false;
|
|
|
this.teacherForm.assistant = [];
|
|
|
for (let i in row.classGroupTeacherMapperList) {
|
|
|
if (row.classGroupTeacherMapperList[i].teacherRole == 'BISHOP') {
|
|
@@ -1093,6 +1116,7 @@ export default {
|
|
|
submitTemporary (type) {
|
|
|
// 参数是一样 type为1 新增临时班
|
|
|
// type为2 新增单技班
|
|
|
+ // type为3 修改班级信息
|
|
|
if (type == 1) {
|
|
|
this.isTemporary = true;
|
|
|
} else {
|
|
@@ -1140,7 +1164,8 @@ export default {
|
|
|
holiday,
|
|
|
courseTimes,
|
|
|
courseTimeDtoList: courseList,
|
|
|
- type: mineType
|
|
|
+ type: mineType,
|
|
|
+ courseAddType: this.teacherForm.isAdd
|
|
|
}
|
|
|
if (type == 1) {
|
|
|
// 新增临时班级
|
|
@@ -1165,6 +1190,16 @@ export default {
|
|
|
this.getList();
|
|
|
}
|
|
|
})
|
|
|
+ } else if (type == 3) {
|
|
|
+ // activeClass
|
|
|
+ obj.classGroupId = this.activeClass;
|
|
|
+ classGroupUpdate(obj).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('修改成功');
|
|
|
+ this.infoVisible = false;
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
} else {
|