From beca721acf4e026640d9ff22862136ea8c6df96c Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期六, 14 九月 2024 08:50:47 +0800
Subject: [PATCH] 物料列表后端分页完善
---
WebTM/views/基础资料/公用基础资料/Gy_Material.html | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Material.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Material.html"
index 0eab0a3..d7073a4 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Material.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Material.html"
@@ -324,6 +324,11 @@
//#region 閲嶇疆鎸夐挳
form.on('submit(btnReSearch)', function (data) {
set_ClearQuery();
+ if (page != 1) {
+ $("#page a:eq(1)").get(0).click();//鐐瑰嚮鍒嗛〉鏍忕涓�椤�
+ } else {
+ get_FastQuery();
+ }
//$("#btnSearch").click();
});
@@ -331,7 +336,11 @@
//#region 鏌ヨ鎸夐挳
form.on('submit(btnSearch)', function (data) {
+ if (page != 1) {
+ $("#page a:eq(1)").get(0).click();//鐐瑰嚮鍒嗛〉鏍忕涓�椤�
+ } else {
get_FastQuery();
+ }
});
//#endregion
@@ -433,6 +442,7 @@
Carousel.reload({ autoplay: false })
//鑾峰彇椤圭洰鍙�
Get_HProject();
+
//杩囨护鏂规
get_DefaultModule()
}
@@ -574,7 +584,7 @@
data: { "sWhere": sWhere, "user": sessionStorage["HUserName"], "Organization": Organization, "page": page, "size": size },
success: function (data1) {
option.limit = size;//鏀瑰彉琛ㄦ牸椤靛ぇ灏�
- if (data1.count != 0) {
+ if (data1.code==1) {
optionPage.count = data1.count;//鏀瑰彉鍒楄〃鏁版嵁鎬绘暟
var data = [];
var col = [];
--
Gitblit v1.9.1