Quellcode durchsuchen

模拟志愿列表搜索

shilipojs vor 2 Jahren
Ursprung
Commit
43f372e1bc
1 geänderte Dateien mit 12 neuen und 2 gelöschten Zeilen
  1. 12 2
      src/views/career/zhiyuan/components/recommend.vue

+ 12 - 2
src/views/career/zhiyuan/components/recommend.vue

@@ -61,6 +61,8 @@
           </el-radio-group>
         </el-row>
       </div>
+      <mx-search-group class="mb10" justify="end" :span="6" v-model="name" placeholder="请输入院校名称" @search="getListByName"
+      ></mx-search-group>
     </div>
     <div class="zhiyuan-list">
       <zhiyuan-list  :tableList="rows" @apply="apply" :cols="cols" @expand="expand"></zhiyuan-list>
@@ -97,9 +99,9 @@
 </template>
 <script>
 import FilterForm from '@/views/career/components/FilterForm';
-import { Debounce, Throttle } from '@/utils/common.js'
 import ZhiyuanList from '@/views/career/zhiyuan/components/zhiyuan-list';
 import { allMajor,getRecommendVoluntary,getVoluntaryMarjors,getVoluntaryHeaders,saveZhiyuan } from '@/api/webApi/professlib'
+import MxSearchGroup from '@/components/MxSearch/mx-search-group'
 export default {
   props: {
     formSubject: {
@@ -113,7 +115,8 @@ export default {
   },
   components:{
     FilterForm,
-    ZhiyuanList
+    ZhiyuanList,
+    MxSearchGroup
   },
   data() {
     return {
@@ -125,7 +128,9 @@ export default {
         type:'',
         features:'',
         pickType:'',
+        name:''
       },
+      name:'',
       currentMajor:'',
       majorList:[],
       show: false,
@@ -234,6 +239,9 @@ export default {
     },
   },
   methods: {
+    getListByName() {
+      this.filter_form.name = this.name
+    },
     confirm() {
       this.pageForm.pageNum = 1
       this.getList()
@@ -332,6 +340,7 @@ export default {
         pickType:  this.filter_form.pickType,
         // "rank": 0,
         score: this.formSubject.score,
+        batchMinScore:this.batch.score2,
         university: {
           // "code": "string",
           features: this.filter_form.features,
@@ -339,6 +348,7 @@ export default {
           location: this.filter_form.location,
           type: this.filter_form.type,
           natureTypeCN: this.filter_form.natureTypeCN,
+          name:this.filter_form.name,
           // "status": 0,
           // "type": "string"
         },