瀏覽代碼

1212 11:57

11
mo 5 年之前
父節點
當前提交
15d19816e5
共有 1 個文件被更改,包括 13 次插入3 次删除
  1. 13 3
      src/views/teamDetail/components/studentList.vue

+ 13 - 3
src/views/teamDetail/components/studentList.vue

@@ -29,6 +29,10 @@
     <el-form :inline="true"
              class="searchForm"
              v-model="searchForm">
+      <el-form-item label="学生姓名">
+        <el-input v-model="searchForm.search"
+                  @keyup.enter.native='search'></el-input>
+      </el-form-item>
       <el-form-item label="学员状态">
         <el-select v-model="searchForm.studentStatus"
                    clearable
@@ -72,7 +76,7 @@
       </el-form-item> -->
       <el-form-item>
         <div class='searchBtn'
-             @click='getList'>筛选</div>
+             @click='search'>搜索</div>
       </el-form-item>
     </el-form>
 
@@ -486,6 +490,7 @@ export default {
         studentStatus: '', // 学生状态
         major: '', // 报名专业
         isPay: '', // 是否缴费
+        search: ''
 
       },
       quitForm: { // 退团信息确认
@@ -632,6 +637,10 @@ export default {
 
   },
   methods: {
+    search () {
+      this.rules.page = 1;
+      this.getList()
+    },
     onCreateQRCode () { // 生成报名二维码
       this.qrcodeStatus = true
       let id = this.$route.query.id
@@ -657,7 +666,8 @@ export default {
         rows: this.rules.limit,
         studentStatus: this.searchForm.studentStatus || null,
         paymentStatus: this.searchForm.isPay || null,
-        subjectId: this.searchForm.major || null
+        subjectId: this.searchForm.major || null,
+        search: this.searchForm.search || null
       }
       getTeamStudentList(obj).then(res => {
         if (res.code == 200) {
@@ -907,7 +917,7 @@ export default {
 //   }
 // }
 .el-select {
-    width: 180px !important;
+  width: 180px !important;
 }
 
 .headWrap {