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); + } + }); + }); } } };