|
@@ -36,6 +36,16 @@
|
|
|
value="OVER"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="班级名称">
|
|
|
+ <!-- getMusicGroupAllClass -->
|
|
|
+ <el-select v-model="searchForm.class"
|
|
|
+ clearable>
|
|
|
+ <el-option v-for='(item,index) in classList'
|
|
|
+ :key="index"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.name"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="选择日期">
|
|
|
<el-date-picker v-model="searchForm.timer"
|
|
|
style="width:420px;"
|
|
@@ -204,7 +214,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
-import { getCourseList, findMusicGroupClassTeacher, resetCourse, getTeacher } from '@/api/buildTeam'
|
|
|
+import { getCourseList, findMusicGroupClassTeacher, resetCourse, getTeacher, getMusicGroupAllClass } from '@/api/buildTeam'
|
|
|
export default {
|
|
|
props: {
|
|
|
teamid: {
|
|
@@ -218,7 +228,8 @@ export default {
|
|
|
searchForm: {
|
|
|
courseStatus: '', // 课程类型
|
|
|
classStatus: '', // 课程状态
|
|
|
- timer: [] // 时间
|
|
|
+ timer: [], // 时间
|
|
|
+ class: ''
|
|
|
},
|
|
|
tableList: [],
|
|
|
searchLsit: [],
|
|
@@ -243,7 +254,8 @@ export default {
|
|
|
startTime: [{ required: true, message: '请选择上课开始时间', trigger: 'blur' },],
|
|
|
endTime: [{ required: true, message: '请选择上课结束时间', trigger: 'blur' },],
|
|
|
},
|
|
|
- teacherList: []
|
|
|
+ teacherList: [],
|
|
|
+ classList: []
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -262,6 +274,13 @@ export default {
|
|
|
this.teacherList = res.data;
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ // 获取班级列表
|
|
|
+ getMusicGroupAllClass({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.classList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
@@ -284,7 +303,8 @@ export default {
|
|
|
musicGroupId: this.teamid,
|
|
|
startTime: this.searchForm.timer[0] || null,
|
|
|
endTime: this.searchForm.timer[1] || null,
|
|
|
- page: this.rules.page, rows: this.rules.limit
|
|
|
+ page: this.rules.page, rows: this.rules.limit,
|
|
|
+ classGroupId: this.searchForm.class || null
|
|
|
|
|
|
}
|
|
|
getCourseList(obj).then(res => {
|