From 9dec8b50fffeb8c1d77a83a6fecd37cc3ec3860f Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 29 七月 2020 11:06:52 +0800 Subject: [PATCH] #当前本版十分完美、冻结 --- src/main/webapp/static/js/report/workIn.js | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/js/report/workIn.js b/src/main/webapp/static/js/report/workIn.js index bc173d9..185e5cb 100644 --- a/src/main/webapp/static/js/report/workIn.js +++ b/src/main/webapp/static/js/report/workIn.js @@ -22,13 +22,14 @@ headers: {token: localStorage.getItem('token')}, url: baseUrl+'/report/viewWorkInList.action', page: true, - limit: 10, + limit: 16, + limits: [16, 30, 50, 100, 200, 500], toolbar: '#toolbar', cellMinWidth: 50, cols: [getCol()], request: { - pageName: 'curr', - pageSize: 'limit' + pageName: 'pageNumber', + limitName: 'pageSize' }, parseData: function (res) { return { @@ -118,6 +119,17 @@ pageCurr = 1; tableReload(false); }); + // 鎼滅储鏍忛噸缃簨浠� + form.on('submit(reset)', function (data) { + pageCurr = 1; + clearFormVal($('#search-box')); + tableReload(false); + }); + layDate.render({ + elem: '.layui-laydate-range' + ,type: 'datetime' + ,range: true + }); }); // 鍏抽棴鍔ㄤ綔 -- Gitblit v1.9.1