From 55cc4c8bbbd66ce4b33fff8712d4c53e2080b5a0 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期一, 22 七月 2024 16:25:25 +0800
Subject: [PATCH] 提交

---
 src/views/onlineEducation/classHourBatch/components/handleStudent.vue |   70 +++++++++++++++++++++++++++-------
 1 files changed, 55 insertions(+), 15 deletions(-)

diff --git a/src/views/onlineEducation/classHourBatch/components/handleStudent.vue b/src/views/onlineEducation/classHourBatch/components/handleStudent.vue
index a937f6b..b02d810 100644
--- a/src/views/onlineEducation/classHourBatch/components/handleStudent.vue
+++ b/src/views/onlineEducation/classHourBatch/components/handleStudent.vue
@@ -1,18 +1,44 @@
 <template>
   <div class="app-container">
-    <div style="margin-bottom: 10px;display: flex;align-items: center;justify-content: space-between">
-      <el-button
-          type="primary"
-          plain
-          icon="Plus"
-          @click="openDialog()"
-      >选择学员</el-button>
-      <el-button
-          type="danger"
-          plain
-          icon="Delete"
-          @click="handleDeleteBatch"
-      >批量删除</el-button>
+    <div style="display: flex;justify-content: space-between">
+      <el-form :inline="true" style="display: flex;align-items: center;flex-wrap: wrap;" >
+        <el-form-item>
+          <el-button
+              type="primary"
+              plain
+              icon="Plus"
+              @click="openDialog()"
+          >选择学员</el-button>
+        </el-form-item>
+        <el-form-item label="学生姓名:" >
+          <el-input v-model="data.queryParams.studentName" placeholder="请输入学生姓名"></el-input>
+        </el-form-item>
+        <el-form-item >
+          <el-button
+              type="primary"
+              @click="getList"
+          >查询</el-button>
+          <el-button
+              type="primary"
+              plain
+              @click="reset"
+          >重置</el-button>
+        </el-form-item>
+      </el-form>
+      <div>
+        <el-button
+            type="danger"
+            plain
+            icon="Delete"
+            @click="handleDeleteBatch"
+        >批量删除</el-button>
+        <el-button
+            type="primary"
+            plain
+            @click="back"
+        >返回</el-button>
+      </div>
+
     </div>
     <!-- 表格数据 -->
     <el-table ref="tableRef" v-loading="loading" :data="dataList" :border="true" :row-key="getRowKey"  @selection-change="handleSelectionChange">
@@ -49,7 +75,7 @@
 import Cookies from "js-cookie";
 import {delQuestionBank, getQuestionBank} from "@/api/onlineEducation/questionBank";
 import {batchDelStudent, delBatchStu, getBatchStudent} from "@/api/onlineEducation/batch";
-import {useRoute} from 'vue-router'
+import {useRoute, useRouter} from 'vue-router'
 const route = useRoute()
 
 
@@ -57,12 +83,14 @@
 const loading = ref(false);
 const dialogRef = ref();
 const tableRef = ref();
+const router = useRouter();
 const data = reactive({
   queryParams: {
     pageId: null,
     phaseId: null,
     pageNum: 1,
     pageSize: 10,
+    studentName: ''
   },
   total: 0,
   dataList: [],
@@ -111,7 +139,15 @@
 
 /** 重置新增的表单以及其他数据  */
 function reset() {
-  proxy.resetForm("roleRef");
+  data.queryParams = {
+    pageNum: 1,
+    pageSize: 10,
+    studentName: '',
+    phaseId: data.queryParams.phaseId,
+    pageId: data.queryParams.pageId
+  }
+
+  getList()
 }
 const handleSelectionChange = (val) => {
 
@@ -164,5 +200,9 @@
         }
       })
 }
+const back = () => {
+  router.push("/class");
+}
+
 
 </script>

--
Gitblit v1.9.2