Explorar el Código

keywords search not working bug fixed

hare8999@163.com hace 2 años
padre
commit
fbcddf106b
Se han modificado 1 ficheros con 11 adiciones y 19 borrados
  1. 11 19
      src/views/career/components/UniversitiesLine.vue

+ 11 - 19
src/views/career/components/UniversitiesLine.vue

@@ -1,24 +1,20 @@
 <template>
   <div>
     <div style="background-color: #ffffff;font-size: 14px;padding:5px;">
-      <mx-condition ref="condition" :query-params="queryParams" :require-fields="requireFields" @query="handleQuery"
-                    @invalid="handleInvalidQuery"
-      ></mx-condition>
-      <mx-search-group class="mb10" justify="space-between" :span="6" v-model="queryParams.name" placeholder="请输入名称" @search="toGetList"
-      >
+      <mx-condition :query-params="queryParams" :require-fields="requireFields" @query="handleQuery"
+                    @invalid="handleInvalidQuery" label-width="80px"></mx-condition>
+      <mx-search-group class="mb10" justify="space-between" :span="6" v-model="queryParams.univerName"
+                       placeholder="请输入名称" @search="handleQuery">
         <el-col :span="12">
-          <el-alert v-if="isThreeFormSix"  style="font-size: 16px;" type="warning" :closable="false" show-icon>
+          <el-alert v-if="isThreeFormSix" style="font-size: 16px;" type="warning" :closable="false" show-icon>
             新高考改革后,本省采用“院校专业”的志愿填报方式,自改革年份起的数据,请查询专业投档线。
           </el-alert>
         </el-col>
-
       </mx-search-group>
       <!-- 表格数据 -->
       <universities-line-table :tableList="tableList"></universities-line-table>
       <pagination class="mt10" :total="total" :autoScroll="false" @pagination="getUniversityList"
-                  :page.sync="pageForm.pageNum"
-                  :limit.sync="pageForm.pageSize"
-      ></pagination>
+                  :page.sync="pageForm.pageNum" :limit.sync="pageForm.pageSize"></pagination>
     </div>
   </div>
 </template>
@@ -28,7 +24,7 @@ import { selectUniversityList } from '@/api/webApi/shiftLine'
 import UniversitiesLineTable from '@/views/career/components/UniversitiesLineTable'
 import MxSearchGroup from '@/components/MxSearch/mx-search-group'
 import MxCondition from '@/components/MxCondition/mx-condition'
-import MxConst from  '@/common/mx-const'
+import MxConst from '@/common/mx-const'
 import { mapGetters } from 'vuex'
 
 export default {
@@ -44,7 +40,6 @@ export default {
         lineLocation: '',
         univerName: ''
       },
-      name: '',
       tableLoading: false,
       total: 0,
       tableList: [],
@@ -70,17 +65,14 @@ export default {
     },
     handleInvalidQuery() {
 
-    },
-    toGetList() {
-      this.universityParams.univerName = this.name
     },
     async getUniversityList() {
       this.tableLoading = true
       await selectUniversityList({
         year: this.queryParams.lineYear,
-        level:this.queryParams.lineLevel,
-        type:this.queryParams.lineType,
-        location:this.queryParams.lineLocation,
+        level: this.queryParams.lineLevel,
+        type: this.queryParams.lineType,
+        location: this.queryParams.lineLocation,
         univerName: this.queryParams.univerName,
         ...this.pageForm
       }).then(res => {
@@ -95,7 +87,7 @@ export default {
 </script>
 
 <style scoped>
->>> .el-alert .el-alert__description{
+>>> .el-alert .el-alert__description {
   font-size: 15px;
 }
 </style>