From c718beff5237f0a2ff7d26263008c718dd26113f Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <279049017@qq.com>
Date: Tue, 17 Nov 2020 17:53:26 +0800
Subject: [PATCH] 统一修改page

---
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productEnd.html       |    2 
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/sysdictionaries.html  |    6 ++
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/dataNeed.html         |    2 
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html           |    5 ++
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html    |    6 ++
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/feedback.html         |    2 
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/businessRecords.html  |    2 
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html         |    8 +++-
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/product.html          |    5 ++
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/equipmentDocking.html |    2 
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html         |    6 ++
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/groupProduct.html     |    6 ++
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html   |    2 
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/diagnosisRecord.html  |    3 -
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/verifyRecharge.html   |    6 ++
 15 files changed, 46 insertions(+), 17 deletions(-)

diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/businessRecords.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/businessRecords.html
index bfa2894..17b71bd 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/businessRecords.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/businessRecords.html
@@ -69,7 +69,7 @@
                 }
             }
 
-            table.reload('app-table', { where: { recordTitle: key, startTime: startTime, endTime: endTime} });
+            table.reload('app-table', { where: { recordTitle: key, startTime: startTime, endTime: endTime},page: {curr: 1  } });
         });
         //比较日期大小
         function compareDate(logintime, logouttime) {
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html
index 804ebe2..ecba5e1 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/contract.html
@@ -120,7 +120,11 @@
             {
                 $("#hospitalId").val("");
             }
-            table.reload('contract-table', { where: { hospitalId: $("#hospitalId").val()} });
+            table.reload('contract-table', { 
+                where: { hospitalId: $("#hospitalId").val()},
+                page: {
+                        curr: 1 
+                    }  });
         });
 
         var showModel=function(orderId){
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/dataNeed.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/dataNeed.html
index 9c81e99..daaa6c0 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/dataNeed.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/dataNeed.html
@@ -222,7 +222,7 @@
                 }
             }
 
-            table.reload('app-table', { where: { doctorName: key, needBegintime: needBegintime, needEndtime: needEndtime } });
+            table.reload('app-table', { where: { doctorName: key, needBegintime: needBegintime, needEndtime: needEndtime },page: {curr: 1  }  });
         });
         //比较日期大小
         function compareDate(logintime, logouttime) {
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/diagnosisRecord.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/diagnosisRecord.html
index e8ec4f1..dc6173c 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/diagnosisRecord.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/diagnosisRecord.html
@@ -109,7 +109,6 @@
         });
         // 搜索按钮点击事件
         $('#diagnostic-btn-search').click(function () {
-            debugger
             var diagnosticHospitalId = $('#hospitalId').val();
             if (!strUtil.isEmpty(diagnosticHospitalId)) {
                 var childName = $('#childName').val();
@@ -131,7 +130,7 @@
                     startTime: datebegin,
                     endTime: dateend
                 };
-                table.reload('diagnostic-table', { where: whereData });
+                table.reload('diagnostic-table', { where: whereData,page: {curr: 1  }});
             }
         });
         // 工具条点击事件
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html
index 30f7296..89e1d22 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctor.html
@@ -600,7 +600,10 @@
                         hospitalName: hospitalName,
                         doctorTel: doctorTel,
                         doctorName: doctorName
-                    }
+                    },
+                    page: {
+                        curr: 1 
+                    } 
                 });
             });
 
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html
index 5c3640e..0604d12 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html
@@ -169,7 +169,7 @@
             var templeteType = $('#templeteType').val();
             var publicType = $('#publicType').val();
             var templeteTitle = $('#templeteTitle').val();
-            table.reload('app-table', { where: { templeteType: templeteType, publicType: publicType, templeteTitle: templeteTitle } });
+            table.reload('app-table', { where: { templeteType: templeteType, publicType: publicType, templeteTitle: templeteTitle },page: {curr: 1  } });
         });
 
         // 修改user状态
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/equipmentDocking.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/equipmentDocking.html
index ab66076..12c196e 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/equipmentDocking.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/equipmentDocking.html
@@ -256,7 +256,7 @@
             var departId = $('#departmentId-serch').val();
             var hospitalId = $('#hospitalId-serch').val();
             var templeteTitle = $('#templeteTitle').val();
-            table.reload('app-table', { where: { hospitalId: hospitalId, departId: departId } });
+            table.reload('app-table', { where: { hospitalId: hospitalId, departId: departId },page: {curr: 1} });
         });
 
         // 修改user状态
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/feedback.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/feedback.html
index 7d65120..18b8fff 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/feedback.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/feedback.html
@@ -150,7 +150,7 @@
                 dateend = dateUtil.getNowDate();
                 $('#dateend').val(dateend);
             }
-            table.reload('feedback-table', { where: { doctorName: doctorName, createTime: datebegin, updateTime: dateend } });
+            table.reload('feedback-table', { where: { doctorName: doctorName, createTime: datebegin, updateTime: dateend },page: {curr: 1  } });
         });
     });
 </script>
\ No newline at end of file
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/groupProduct.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/groupProduct.html
index 414aa09..cb35adb 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/groupProduct.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/groupProduct.html
@@ -59,7 +59,11 @@
                 updateTime = dateUtil.getNowDate();
                 $('#dateend').val(updateTime);
             }
-            table.reload('product-table', { where: { createTime: createTime,updateTime: updateTime } });
+            table.reload('product-table', { 
+                where: { createTime: createTime,updateTime: updateTime},
+                page: {
+                    curr: 1 
+                } });
         });
     });
 </script>
\ No newline at end of file
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html
index 3fe2544..9e6699a 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital.html
@@ -257,10 +257,14 @@
                 hospitalName: hospitalName,
                 hospitalProvince: hospitalProvince,
                 hospitalCity: hospitalCity,
-                hospitalArea: hospitalArea
+                hospitalArea: hospitalArea,
+                // page: 1,
             };
             table.reload('hospital-table', {
-                where: whereModel
+                where: whereModel,
+                page: {
+                    curr: 1 
+                }
             });
         });
 
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/product.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/product.html
index f2c679f..7d953d9 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/product.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/product.html
@@ -126,7 +126,10 @@
         // 搜索按钮点击事件
         $('#product-btn-search').click(function () {
             var proName = $('#product-search-value').val();
-            table.reload('product-table', { where: { proName: proName } });
+            table.reload('product-table', { where: { proName: proName},
+                page: {
+                    curr: 1 
+                } });
         });
         // 添加按钮点击事件
         $('#product-btn-add').click(function () {
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productEnd.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productEnd.html
index 07cbb55..ff98c98 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productEnd.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productEnd.html
@@ -65,7 +65,7 @@
         $('#product-btn-search').click(function () {
             var monthPar = $('#monthPar').val();
             var aiCountPar = $('#aiCountPar').val();
-            table.reload('product-end-table', { where: { monthPar: monthPar, aiCountPar: aiCountPar } });
+            table.reload('product-end-table', { where: { monthPar: monthPar, aiCountPar: aiCountPar },page: {curr: 1  } });
         });
         renderTable();
     });
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html
index 0a02a13..98ac489 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html
@@ -134,7 +134,11 @@
             }
             var proName = $('#product-search-value').val();
                 var hospitalId = $('#hospitalId').val();
-            table.reload('product-table', { where: { proName: proName,hospitalId: hospitalId,startTime: startTime, endTime: endTime } });
+            table.reload('product-table', { 
+                where: { proName: proName,hospitalId: hospitalId,startTime: startTime, endTime: endTime },
+                page: {
+                        curr: 1 
+                    }  });
         });
        
         //比较日期大小
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/sysdictionaries.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/sysdictionaries.html
index 1697a1c..041559d 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/sysdictionaries.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/sysdictionaries.html
@@ -194,7 +194,11 @@
         // 搜索按钮点击事件
         $('#app-btn-search').click(function () {
             var key = $('#app-edit-search').val();
-            table.reload('app-table', { where: { dictionariesName: key } });
+            table.reload('app-table', { 
+                where: { dictionariesName: key },
+                page: {
+                    curr: 1 
+                }  });
         });
         // 修改role状态
         form.on('switch(dictionaries-tpl-state)', function (obj) {
diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/verifyRecharge.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/verifyRecharge.html
index 5d8d669..82ae38f 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/verifyRecharge.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/verifyRecharge.html
@@ -102,7 +102,11 @@
         $('#product-btn-search').click(function () {
             var proName = $('#product-search-value').val();
             var hospitalName = $('#hospital-search-value').val();
-            table.reload('product-table', { where: { proName: proName, hospitalName: hospitalName } });
+            table.reload('product-table', { 
+                where: { proName: proName, hospitalName: hospitalName },
+                page: {
+                        curr: 1 
+                    }  });
         });
     });
 </script>
\ No newline at end of file

--
Gitblit v1.8.0