Browse Source

按条件搜索跳到第一页

suxinf 4 years ago
parent
commit
c07f5474c7

BIN
public/favicon.ico


+ 1 - 21
src/views/account/AccountIndex.vue

@@ -158,6 +158,7 @@ export default {
       }
     },
     submit: function () {
+      this.currentPage = 1;
       let req = {
         queryParams: this.inputValue,
         localArea: this.areaValue,
@@ -207,27 +208,6 @@ export default {
           console.log(err);
         });
     },
-    // testSyncInterFace(){//测试同步接口
-    //   this.$http({
-    //     method: 'post',
-    //     url: '/interface/loadBaseData',
-    //     data: {
-    //       user: '111'
-    //     },
-    //   }).then((res) => {
-    //     console.log(res);
-    //     if(res.status === 200){
-    //       if(res.data.code === 200) {
-    //         console.log(res.data, '200');
-    //       }else {
-    //         let message = res.data.message;
-    //         console.log('message', message);
-    //       }
-    //     }
-    //   }).catch((err) => {
-    //     console.log(err);
-    //   })
-    // }
     // 获取 所有区域  接口
     getAreaList: function () {
       this.$http({

+ 1 - 0
src/views/data/InforList.vue

@@ -366,6 +366,7 @@ export default {
     searchByCondition: function () {
       let asc = this.timeSortVal === "dec" ? false : true;
       let report = "";
+      this.currentPage = 1;
       if (this.reportSortVal === "already") {
         report = this.reportSortVal === "already" ? true : false;
       } else if (this.reportSortVal === "notyet") {

+ 1 - 0
src/views/data/UploadLinks.vue

@@ -126,6 +126,7 @@ export default {
     search: function () {
       this.startTime = this.formatDateToDate(this.startTimeValue);
       this.endTime = this.formatDateToDate(this.endTimeValue);
+      this.currentPage = 1;
       let data = {
         queryParams: this.inputValue,
         localArea: this.areaValue,