|
@@ -99,7 +99,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-dialog title="学员选择"
|
|
|
- width="800px"
|
|
|
+ width="700px"
|
|
|
:visible.sync="studentVisible"
|
|
|
:modal-append-to-body="false">
|
|
|
<div class="studentMask">
|
|
@@ -184,12 +184,12 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
- <!-- 新增班级的table -->
|
|
|
+ <!-- 临时调整table -->
|
|
|
<el-table tooltip-effect="dark"
|
|
|
v-if="isNewClass"
|
|
|
style="width: 100%; margin-top:10px;"
|
|
|
:data='studentList'
|
|
|
- ref='studentList'
|
|
|
+ ref='temporaryStudentList'
|
|
|
@selection-change="NewselectionStudent">
|
|
|
<el-table-column type="selection"
|
|
|
align='center'
|
|
@@ -224,7 +224,88 @@
|
|
|
<!-- 临时调整或者新建班级 -->
|
|
|
<el-button type="primary"
|
|
|
v-if="isNewClass"
|
|
|
- @click="studentVisible = false">确 定</el-button>
|
|
|
+ @click="setInfoMsg">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 老师以及课程设置 -->
|
|
|
+ <el-dialog title="班级设置"
|
|
|
+ width="700px"
|
|
|
+ :visible.sync="infoVisible"
|
|
|
+ :modal-append-to-body="false">
|
|
|
+ <el-form :inline="true"
|
|
|
+ :model='teacherForm'
|
|
|
+ label-position='right'
|
|
|
+ label-width="100px;">
|
|
|
+ <el-form-item label="主教老师"
|
|
|
+ prop='coreTeacher'>
|
|
|
+ <el-select v-model="teacherForm.coreTeacher">
|
|
|
+ <el-option label="11"
|
|
|
+ value="222"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="助教老师"
|
|
|
+ prop="assistant">
|
|
|
+ <el-select v-model="teacherForm.assistant">
|
|
|
+ <el-option label="11"
|
|
|
+ value="222"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="课程类型"
|
|
|
+ prop="courseType">
|
|
|
+ <el-select v-model="teacherForm.courseType">
|
|
|
+ <el-option label="11"
|
|
|
+ value="222"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="排课次数"
|
|
|
+ prop="courseNum">
|
|
|
+ <el-input type='number'
|
|
|
+ v-model="teacherForm.courseNum"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="排课起始时间"
|
|
|
+ prop="courseTime">
|
|
|
+ <el-date-picker v-model="teacherForm.courseTime"
|
|
|
+ style="width:200px;"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
+ <el-checkbox style='margin-left:10px;'
|
|
|
+ v-model="teacherForm.checked">是否跳过节假日</el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div class="WeekWrap">
|
|
|
+ <h3 style="margin-bottom:20px;">循环次数 </h3>
|
|
|
+ <div class="countWrap"
|
|
|
+ style="margin-bottom:10px;">
|
|
|
+ <div class="countItem">
|
|
|
+ <span>循环周期: </span>
|
|
|
+ <el-select v-model="weekList[0].week">
|
|
|
+ <el-option label="lalal"
|
|
|
+ value="111"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <span>开始时间</span>
|
|
|
+ <el-time-select placeholder=""
|
|
|
+ v-model="weekList[0].startTime"
|
|
|
+ :picker-options="{
|
|
|
+ start: '08:30',
|
|
|
+ step: '00:15',
|
|
|
+ end: '18:30'
|
|
|
+ }">
|
|
|
+ </el-time-select>
|
|
|
+ <span>结束时间</span>
|
|
|
+ <el-time-select placeholder=""
|
|
|
+ v-model="weekList[0].endTime"
|
|
|
+ :picker-options="{
|
|
|
+ start: '08:30',
|
|
|
+ step: '00:15',
|
|
|
+ end: '18:30'
|
|
|
+ }">
|
|
|
+ </el-time-select>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -255,7 +336,20 @@ export default {
|
|
|
isNewClass: true,
|
|
|
className: '', // 班级名称
|
|
|
activeClass: '', // 当前操作的班级
|
|
|
- soundList: []
|
|
|
+ soundList: [],
|
|
|
+ infoVisible: true,
|
|
|
+ teacherForm: {
|
|
|
+ coreTeacher: '',
|
|
|
+ assistant: '',
|
|
|
+ courseType: '',
|
|
|
+ courseTime: '',
|
|
|
+ checked: false
|
|
|
+ },
|
|
|
+ weekList: [{
|
|
|
+ week: '',
|
|
|
+ startTime: '',
|
|
|
+ endTime: ''
|
|
|
+ }]
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -277,8 +371,6 @@ export default {
|
|
|
// })
|
|
|
// getNoClassStudentAll({ musicGroupId: this.teamid }).then(res => {
|
|
|
// })
|
|
|
-
|
|
|
-
|
|
|
// 根据乐团id获取乐团的所有声部
|
|
|
findSound({ musicGroupId: this.teamid }).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -307,6 +399,8 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.activeClass = '';
|
|
|
+ this.activeListStudent = [];
|
|
|
+ this.studentList = [];
|
|
|
this.isNewClass = true;
|
|
|
this.studentVisible = true;
|
|
|
|
|
@@ -414,8 +508,24 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- // 临时班删除学员
|
|
|
+ //
|
|
|
temporaryRemoveStudent (item) {
|
|
|
+ console.log(item.userId);
|
|
|
+ // 列表中删除
|
|
|
+ for (let i in this.activeListStudent) {
|
|
|
+ if (this.activeListStudent[i].userId == item.userId) {
|
|
|
+ this.activeListStudent.splice(i, 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 查询列表中的项 取消勾选 temporaryStudentList toggleRowSelection
|
|
|
+ // 循环列表 找到相应的行取消勾选
|
|
|
+ for (let k in this.studentList) {
|
|
|
+ if (this.studentList[k].userId == item.userId) {
|
|
|
+ this.$refs['temporaryStudentList'].toggleRowSelection(item, false)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // console.log(this.$refs['temporaryStudentList'].toggleRowSelection)
|
|
|
+ // this.$refs['temporaryStudentList'].toggleRowSelection(row, selected);
|
|
|
|
|
|
},
|
|
|
// 对象数组去重
|
|
@@ -431,6 +541,9 @@ export default {
|
|
|
}
|
|
|
return result;
|
|
|
},
|
|
|
+ setInfoMsg () {
|
|
|
+ this.studentVisible;
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -504,4 +617,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.el-date-editor.el-input,
|
|
|
+.el-date-editor.el-input__inner {
|
|
|
+ width: 100px;
|
|
|
+}
|
|
|
</style>
|