Browse Source

修改学生点名

11
mo 5 years ago
parent
commit
d4e2b60d7a

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.c40b54fc.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.eed37d06.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-b1e176fc.04c77829.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-b1e176fc.f54864c3.js


+ 11 - 3
src/views/teamDetail/components/studentSignin.vue

@@ -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;

Some files were not shown because too many files changed in this diff