yuwandanmian 1 year ago
parent
commit
324794c080
1 changed files with 14 additions and 4 deletions
  1. 14 4
      src/views/search/index.vue

+ 14 - 4
src/views/search/index.vue

@@ -492,6 +492,7 @@ export default {
       departmentList: [],
       lock: false,
       searchNum: 0,
+      professionSearchData: {}
     };
   },
   mounted() {
@@ -639,12 +640,19 @@ export default {
     SizeChangeEvent(val) {
       this.paginationData.pageSize = val;
       const num = this.lock ? 1 : 0;
-      this.funQuery(num);
+      if (this.choice == 2) {
+        this.handleProfessionSearch(this.professionSearchData)
+      } else {
+        this.funQuery(num);
+      }
     },
     pageHasChanged() {
       const num = this.lock ? 1 : 0;
-      this.funQuery(num);
-      console.log('点击了分页');
+      if (this.choice == 2) {
+        this.handleProfessionSearch(this.professionSearchData)
+      } else {
+        this.funQuery(num);
+      }
     },
     funBlur() {
       if (this.formData1.ageday > 356) {
@@ -764,6 +772,7 @@ export default {
     // 专业检索
     handleProfessionSearch(params) {
       this.paginationData.currentPage = 1
+      this.professionSearchData = params
       this.$axios3.post('/bl/serach', params).then(res => {
         this.tableData = res.data.list || [];
         this.tableDataDetails = res.data.detail || [];
@@ -812,9 +821,10 @@ export default {
     },
     // 检索类型变化
     handleRadioChange(val) {
-      console.log(val)
       if (val == 2) {
         this.handleProfessionSearch({})
+      } else {
+        this.professionSearchData = {}
       }
     }
   },