From dc91db9bb3473c3ed058f86f74359e15c035a8a5 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Mon, 23 Aug 2021 22:13:10 +0800
Subject: [PATCH] 表查询完善

---
 src/views/securityUnitOperation/economicTable.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/views/securityUnitOperation/economicTable.vue b/src/views/securityUnitOperation/economicTable.vue
index b149b5a..9ca75a8 100644
--- a/src/views/securityUnitOperation/economicTable.vue
+++ b/src/views/securityUnitOperation/economicTable.vue
@@ -33,6 +33,7 @@
         currentPage: 1,
         total: 0
       },
+      query:{},
       value1: "",
       value2: "",
       tableData: [
@@ -304,9 +305,11 @@
     },
     currentChange(currentPage) {
       this.page.currentPage = currentPage;
+      this.onLoad(this.page, this.query);
     },
     sizeChange(pageSize) {
       this.page.pageSize = pageSize;
+      this.onLoad(this.page, this.query);
     },
     refreshChange() {
       this.onLoad(this.page, this.query);
@@ -314,14 +317,14 @@
     onLoad(page, params = {}) {
       this.loading = true;
       let param = {};
-      param["jurisdiction"] = params["jurisdiction"] || "";
+      param["jurisdiction"] = params["jurname"] || "";
       param["enterpriseName"] = params["enterpriseName"] || "";
       param["current"] = page.currentPage;
       param["size"] = page.pageSize;
       selectJj(param).then(res => {
         const data = res.data.data;
         this.page.total = data.total;
-        this.tableData = res.data.data;
+        this.tableData = data.records;
         this.loading = false;
       });
     },
@@ -346,7 +349,7 @@
         let mm = urlArr[i].split("=");
         object[decodeURIComponent(mm[0])] = decodeURIComponent(mm[1]);
       }
-      let jurisdiction = object["jurisdiction"] || "";
+      let jurisdiction = object["jurisdiction1"] || "";
       let enterpriseName = object["enterpriseName"] || "";
       let obj = { jurisdiction: jurisdiction, enterpriseName: enterpriseName };
       this.onLoad(this.page, obj);

--
Gitblit v1.9.3