From fb0d072626c2d5ce67072b1b1750518c492cc8e0 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Thu, 27 Feb 2020 15:50:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A8=E6=80=81=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/codetemplate/default/route/list.ftl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/list.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/list.ftl index 6fa0faa..b7e30bf 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/list.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/route/list.ftl @@ -212,7 +212,7 @@ }); } // 重载表格 - function reloadTable() { + function reloadTable(currentPage) { table.reload('dataTable', { url: top.restAjax.path(tableUrl, []), where: { @@ -221,7 +221,7 @@ endTime: $('#endTime').val() }, page: { - curr: 1 + curr: currentPage }, height: $win.height() - 90, }); @@ -271,7 +271,7 @@ }); // 事件 - 搜索 $(document).on('click', '#search', function() { - reloadTable(); + reloadTable(1); }); // 事件 - 增删改 table.on('toolbar(dataTable)', function(obj) {