Просмотр исходного кода

feat: 支持根据知识点和标签查找题目

yhd12345 3 лет назад
Родитель
Сommit
c4e4bbd19a
1 измененных файлов с 30 добавлено и 32 удалено
  1. 30 32
      src/views/EvalPage/QuestionList.vue

+ 30 - 32
src/views/EvalPage/QuestionList.vue

@@ -40,8 +40,6 @@
         <span style="font-size: 20px">试题列表</span>
         <el-divider></el-divider>
         <el-row>
-          <el-col :span="8"></el-col>
-          <el-col :span="8"></el-col>
           <el-col :span="8">
             <el-input
                 v-model="stem"
@@ -57,37 +55,37 @@
               </template>
             </el-input>
           </el-col>
-<!--          <el-col :span="8">-->
+          <el-col :span="8">
 
-<!--            <el-input-->
-<!--                v-model="tags"-->
-<!--                class="w-50 m-2"-->
-<!--                placeholder="根据标签查找"-->
-<!--                size="small"-->
-<!--                @input="onSearch"-->
-<!--            >-->
-<!--            <template #prefix>-->
-<!--              <el-icon>-->
-<!--                <Search />-->
-<!--              </el-icon>-->
-<!--            </template>-->
-<!--            </el-input>-->
-<!--          </el-col>-->
-<!--          <el-col :span="8">-->
-<!--            <el-input-->
-<!--                v-model="knowledgeName"-->
-<!--                class="w-50 m-2"-->
-<!--                placeholder="根据关键词查找"-->
-<!--                size="small"-->
-<!--                @input="onSearch"-->
-<!--            >-->
-<!--              <template #prefix>-->
-<!--                <el-icon>-->
-<!--                  <Search />-->
-<!--                </el-icon>-->
-<!--              </template>-->
-<!--            </el-input>-->
-<!--          </el-col>-->
+            <el-input
+                v-model="tags"
+                class="w-50 m-2"
+                placeholder="根据标签查找"
+                size="small"
+                @input="onSearch"
+            >
+            <template #prefix>
+              <el-icon>
+                <Search />
+              </el-icon>
+            </template>
+            </el-input>
+          </el-col>
+          <el-col :span="8">
+            <el-input
+                v-model="knowledgeName"
+                class="w-50 m-2"
+                placeholder="根据关键词查找"
+                size="small"
+                @input="onSearch"
+            >
+              <template #prefix>
+                <el-icon>
+                  <Search />
+                </el-icon>
+              </template>
+            </el-input>
+          </el-col>
         </el-row>
         <el-table ref="questionsTable" :data="questions" :row-key="getRowKeys" style="width: 100%"
                   @select="handleSelect" @select-all="handleSelectAll">