Przeglądaj źródła

分页错误修改

xiao547607 4 lat temu
rodzic
commit
19c2d2be06

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
-VUE_APP_BACKEND_URL=http://192.168.33.159:8081/picc-admin-server
+VUE_APP_BACKEND_URL=http://127.0.0.1:8081/picc-admin-server
 //VUE_APP_BACKEND_URL=http://192.168.33.120:8081/picc-admin-server
 //VUE_APP_BACKEND_URL=http://gyxm.jing-zhou.gov.cn/picc-admin-server
 //VUE_APP_BACKEND_URL=http://picc.jzrccs.com/picc-admin-server

+ 2 - 2
src/api/business/insuranceApplication.js

@@ -47,10 +47,10 @@ function batchRemove(idList) {
 
 function insureDetail(formData) {
   return request.post(constant.serverUrl + "/insuranceApplication/insureDetail", formData);
-}
+} 
 
 function acceptDetail(formData) {
-  //获取承保信息
+  //获取承保信息 
   return request.post(constant.serverUrl + "/insuranceApplication/acceptDetail", formData);
 }
 

+ 3 - 1
src/views/business/insuranceFirst-firstDetails.vue

@@ -349,7 +349,7 @@ export default {
       formData.append("policyId", self.policyId);
 
       approvalApi
-        .pageList(formData)
+        .pageList(formData) 
         .then(function(response) {
           self.loading = false;
           var jsonData = response.data.data;
@@ -364,6 +364,7 @@ export default {
     },
     pageSizeChange(pageSize) {
       this.pageSize = pageSize;
+      this.changePage(this.pageIndex);
     },
     sortChange(data) {
       this.field = data.column.field;
@@ -373,6 +374,7 @@ export default {
     },
     handleSelectionChange(val) {
       this.multipleSelection = val;
+      this.changePage(this.pageIndex);
     },
     insureDetail() {
       var self = this;