|
@@ -13,6 +13,17 @@
|
|
|
placeholder="乐团名或VIP课名" />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
+ <el-select v-model="searchForm.schoolId"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请选择教学点">
|
|
|
+ <el-option v-for="(item, index) in schoolList"
|
|
|
+ :key="index"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.name"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
<el-select v-model="searchForm.teacherIdList"
|
|
|
clearable
|
|
|
filterable
|
|
@@ -174,6 +185,7 @@
|
|
|
<script>
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
import { getTeacher, getMusicGroupAllClass, superFindCourseSchedules, getEmployeeOrgan } from '@/api/buildTeam'
|
|
|
+import { getSchool } from '@/api/systemManage'
|
|
|
import { courseType } from '@/utils/searchArray'
|
|
|
let nowTime = new Date()
|
|
|
nowTime = nowTime.getFullYear() + '-' + (nowTime.getMonth() + 1) + '-' + nowTime.getDate()
|
|
@@ -191,6 +203,7 @@ export default {
|
|
|
class: null,
|
|
|
search: null, // 乐团名称 编号 vip课名称
|
|
|
teacherIdList: null, // 老师编号
|
|
|
+ schoolId: null // 教学点编号
|
|
|
},
|
|
|
tableList: [],
|
|
|
searchLsit: [],
|
|
@@ -203,6 +216,7 @@ export default {
|
|
|
page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
teacherList: [],
|
|
|
+ schoolList: []
|
|
|
// classList: []
|
|
|
}
|
|
|
|
|
@@ -215,6 +229,34 @@ export default {
|
|
|
},
|
|
|
mounted () {
|
|
|
this.init();
|
|
|
+ this.getList();
|
|
|
+ // 获取所有老师
|
|
|
+ getTeacher().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.teacherList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ // 获取教学点
|
|
|
+ getSchool().then(res => {
|
|
|
+ if(res.code == 200) {
|
|
|
+ this.schoolList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ // 获取班级列表
|
|
|
+ // getMusicGroupAllClass().then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.classList = res.data;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+
|
|
|
+ // 获取分部
|
|
|
+ getEmployeeOrgan().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.organList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
@@ -263,7 +305,8 @@ export default {
|
|
|
classGroupId: searchForm.class || null,
|
|
|
organIdList: searchForm.organIdList || null,
|
|
|
search: searchForm.search || null,
|
|
|
- teacherIdList: searchForm.teacherIdList || null
|
|
|
+ teacherIdList: searchForm.teacherIdList || null,
|
|
|
+ schoolId: searchForm.schoolId || null
|
|
|
}
|
|
|
superFindCourseSchedules(obj).then(res => {
|
|
|
if (res.code == 200) {
|