From 6aaccff99d4f728cda7ecc59d5c0cfafaab0eb4f Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 9 Jul 2024 16:10:10 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=9E=90=EB=A3=8C=EA=B2=80?= =?UTF-8?q?=EC=82=AC=20=ED=99=94=EB=A9=B4=20=EC=9E=AC=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/js/fims/cmmn/fims-cmmnUtil.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js b/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js index b0a001c0..4584760b 100644 --- a/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js +++ b/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js @@ -136,6 +136,23 @@ const Apply = { } }); }); + }, + reload : async function(control){ + return new Promise((resolve, reject) => { + var orgnQuery = Object.assign({}, control.query); + control.query.fetchSize = control.defaultFetchSize * control.query.pageNum; + control.query.pageNum = 1; + + ajax.get({ + url:control.urls.load, + data:control.query, + success:(resp) => { + control.query.pageNum = orgnQuery.pageNum; + control.query.fetchSize = orgnQuery.fetchSize; + resolve(resp); + } + }); + }); } } };