|
@@ -22,7 +22,8 @@
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label='班级名称'>
|
|
|
- <el-select v-model="searchForm.className">
|
|
|
+ <el-select v-model="searchForm.className"
|
|
|
+ clearable>
|
|
|
<el-option v-for='(item,index) in classList'
|
|
|
:key='index'
|
|
|
:label="item.name"
|
|
@@ -111,7 +112,8 @@ export default {
|
|
|
sign: ''
|
|
|
},
|
|
|
|
|
|
- teamid: ''
|
|
|
+ teamid: '',
|
|
|
+ classList: []
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -127,6 +129,11 @@ export default {
|
|
|
mounted () {
|
|
|
this.getList();
|
|
|
// 获取乐团所有班级
|
|
|
+ getMusicGroupAllClass({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.classList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
search () {
|
|
@@ -171,7 +178,8 @@ export default {
|
|
|
let userName = this.searchForm.studentName || null
|
|
|
let signStatus = this.searchForm.sign || null
|
|
|
let musicGroupId = this.teamid
|
|
|
- getStudentRecord({ musicGroupId, page: this.rules.page, rows: this.rules.limit, startTime, endTime, courseScheduleName, userName, signStatus }).then(res => {
|
|
|
+ let classGroupId = this.searchForm.className || null
|
|
|
+ getStudentRecord({ musicGroupId, page: this.rules.page, rows: this.rules.limit, startTime, endTime, courseScheduleName, userName, signStatus, classGroupId }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableList = res.data.rows;
|
|
|
this.rules.total = res.data.total;
|