From 1192471cf1701e532ceb32dc103f1c8e0fb818ba Mon Sep 17 00:00:00 2001 From: 王佳豪 <g675230687@126.com> Date: 星期六, 26 六月 2021 09:36:06 +0800 Subject: [PATCH] sap请求日志 1.列表显示优化 2.增加Sap请求日志模糊搜索功能 --- src/main/webapp/jsFiles/sapRequestLog.js | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/jsFiles/sapRequestLog.js b/src/main/webapp/jsFiles/sapRequestLog.js index 656f31c..ffcd350 100644 --- a/src/main/webapp/jsFiles/sapRequestLog.js +++ b/src/main/webapp/jsFiles/sapRequestLog.js @@ -69,12 +69,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 +199,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