From b743b62c7d57c84d16422841b0b51e85fe53a891 Mon Sep 17 00:00:00 2001 From: 18516761980 <56479841@qq.com> Date: 星期五, 22 七月 2022 19:33:10 +0800 Subject: [PATCH] # --- src/main/webapp/jsFiles/sapRequestLog.js | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/jsFiles/sapRequestLog.js b/src/main/webapp/jsFiles/sapRequestLog.js index 656f31c..015f83f 100644 --- a/src/main/webapp/jsFiles/sapRequestLog.js +++ b/src/main/webapp/jsFiles/sapRequestLog.js @@ -16,7 +16,10 @@ clickToSelect: true, // 鍗曞嚮琛屽嵆鍙互閫変腑 search: false,//鏄剧ず鎼滅礌琛ㄥ崟 silent: true, //鍒锋柊浜嬩欢蹇呴』璁剧疆 + pagination: true, sidePagination: "client", //鍓嶇鍒嗛〉 + pageSize : 10,//鍗曢〉璁板綍鏁� + pageList : [ 5, 10, 20, 30 ,50],//鍙�夋嫨鍗曢〉璁板綍鏁� columns: [ { field: "matnr", @@ -69,12 +72,11 @@ ], queryParamsType: "undefined", queryParams: function queryParams(params) { //璁剧疆鏌ヨ鍙傛暟 - // var param = { - // pageNumber: params.pageNumber, - // pageSize: params.pageSize - // // searchText: params.searchText - // }; - // return param; + var condition = $("#condition").val(); + var param = { + condition: condition + }; + return param; }, formatLoadingMessage: function () { return "璇风◢绛夛紝姝e湪鍔犺浇涓�..."; @@ -200,4 +202,14 @@ function closeModal() { // 鏄剧ず妯℃�佹 $("#showDetail").modal('hide'); -} \ No newline at end of file +} + +function onSearch() { + $("#test-table").bootstrapTable('refreshOptions',{pageNumber:1}); //鍒嗛〉鍚庨噸鏂版悳绱㈡椂锛屽垵濮嬪寲椤电爜涓�1 +} + +$('#content').keydown(function () { + if (event.keyCode === 13) { + onSearch(); + } +}); \ No newline at end of file -- Gitblit v1.9.1