From c36b440848d5d78f29c583080e0b86a51488917c Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期一, 21 十月 2024 15:43:21 +0800
Subject: [PATCH] 修改

---
 src/views/onlineEducation/questionManage/index.vue |   52 +++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 49 insertions(+), 3 deletions(-)

diff --git a/src/views/onlineEducation/questionManage/index.vue b/src/views/onlineEducation/questionManage/index.vue
index a3803a4..1e5439a 100644
--- a/src/views/onlineEducation/questionManage/index.vue
+++ b/src/views/onlineEducation/questionManage/index.vue
@@ -1,5 +1,33 @@
 <template>
   <div class="app-container">
+    <div style="display: flex">
+      <div>
+        <span style="font-size: 14px;margin-right:10px">题库名称:</span>
+        <el-input v-model="queryParams.name" style="width: 200px" placeholder="请输入题库名称" clearable></el-input>
+        <span style="font-size: 14px;margin: 0 20px">平台:</span>
+        <el-select v-model="queryParams.institutionId" placeholder="请选择平台" clearable>
+          <el-option
+            v-for="item in platformList"
+            :key="item.id"
+            :label="item.institutionalName"
+            :value="item.id">
+          </el-option>
+        </el-select>
+        <el-button
+          size="small"
+          type="primary"
+          style="margin-bottom: 10px;margin-left: 20px"
+          @click="handleQuery()"
+        >查询</el-button>
+        <el-button
+          plain
+          size="small"
+          type="primary"
+          style="margin-bottom: 10px"
+          @click="resetQuery()"
+        >重置</el-button>
+      </div>
+    </div>
     <el-table v-loading="loading" :data="dataList">
       <el-table-column label="序号" align="center" type="index" width="80" />
       <el-table-column label="更新时间" align="center" prop="updateTime" />
@@ -50,7 +78,7 @@
 
 <script>
 
-import { delPlat } from '@/api/onlineEducation/plat'
+import { delPlat, listPlatSelect } from '@/api/onlineEducation/plat'
 import { getQuestion } from '@/api/onlineEducation/question'
 
 export default {
@@ -68,15 +96,19 @@
       expertTypes: [],
       dataList: [],
       queryParams: {
+        name: '',
+        institutionId: null,
         pageNum: 1,
         pageSize: 10,
       },
+      platformList: [],
       btnLoading:false,
       showDialog:false,
       chooseItem: {}
     };
   },
   created() {
+    this.getPlat();
     this.getList();
   },
   methods: {
@@ -95,14 +127,28 @@
         }
       })
     },
+    getPlat() {
+      listPlatSelect().then((res) => {
+        if (res.code == 200) {
+          this.platformList = res.data
+        }
+      })
+
+    },
     handleChange(){
 
     },
     handleQuery(){
-
+      this.getList();
     },
     resetQuery(){
-
+      this.queryParams = {
+        pageNum: 1,
+        pageSize: 10,
+        institutionId: '',
+        name: ''
+      }
+      this.getList();
     },
     groupExam(row){
       this.$confirm('确认立即组卷该题库?', '提示', {

--
Gitblit v1.9.2