|
@@ -6,6 +6,20 @@
|
|
|
class="searchForm"
|
|
|
v-model="searchForm">
|
|
|
<el-form-item>
|
|
|
+ <el-input v-model="searchForm.search" placeholder="乐团名或VIP课名" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-select v-model="searchForm.teacherIdList"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请选择老师">
|
|
|
+ <el-option v-for="(item, index) in teacherList"
|
|
|
+ :key="index"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.realName"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
<el-select class='multiple'
|
|
|
v-model="searchForm.organIdList"
|
|
|
filterable
|
|
@@ -18,9 +32,6 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-input v-model="searchForm.search" placeholder="乐团名或VIP课名" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
<el-select v-model="searchForm.courseType"
|
|
|
clearable
|
|
|
filterable
|
|
@@ -183,6 +194,7 @@ export default {
|
|
|
timer: [nowTime, nowTime], // 时间
|
|
|
class: null,
|
|
|
search: null, // 乐团名称 编号 vip课名称
|
|
|
+ teacherIdList: null, // 老师编号
|
|
|
},
|
|
|
tableList: [],
|
|
|
searchLsit: [],
|
|
@@ -194,7 +206,7 @@ export default {
|
|
|
total: 0, // 总条数
|
|
|
page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
- // teacherList: [],
|
|
|
+ teacherList: [],
|
|
|
// classList: []
|
|
|
}
|
|
|
|
|
@@ -205,11 +217,11 @@ export default {
|
|
|
mounted () {
|
|
|
this.getList();
|
|
|
// 获取所有老师
|
|
|
- // getTeacher().then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.teacherList = res.data;
|
|
|
- // }
|
|
|
- // })
|
|
|
+ getTeacher().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.teacherList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
// 获取班级列表
|
|
|
// getMusicGroupAllClass().then(res => {
|
|
@@ -248,7 +260,8 @@ export default {
|
|
|
page: this.rules.page, rows: this.rules.limit,
|
|
|
classGroupId: searchForm.class || null,
|
|
|
organIdList: searchForm.organIdList || null,
|
|
|
- search: searchForm.search || null
|
|
|
+ search: searchForm.search || null,
|
|
|
+ teacherIdList: searchForm.teacherIdList || null
|
|
|
}
|
|
|
superFindCourseSchedules(obj).then(res => {
|
|
|
if (res.code == 200) {
|