From a2a4dd75b0c0e51b325c4fbe89da80dfa4a5d24f Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 20 Feb 2023 17:13:57 +0800 Subject: [PATCH] 滑动条 --- src/main/resources/templates/febs/views/modules/order/orderList.html | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/order/orderList.html b/src/main/resources/templates/febs/views/modules/order/orderList.html index 7c5a871..5e445e9 100644 --- a/src/main/resources/templates/febs/views/modules/order/orderList.html +++ b/src/main/resources/templates/febs/views/modules/order/orderList.html @@ -99,6 +99,11 @@ .layui-table img{ max-width:100px } + + ::-webkit-scrollbar { + height: 20px !important; + background-color: #f4f4f4; + } </style> </div> </div> @@ -143,6 +148,9 @@ laydate = layui.laydate, tableIns; + let currPageOrder = 1;//首先默认值为1,防止出错 + //获取当前页 + currPageOrder = $view.find(".layui-laypage-em").next().html(); //日期范围 laydate.render({ elem: '#febs-form-group-date-start' @@ -357,14 +365,14 @@ // 查询按钮 $query.on('click', function () { var params = $.extend(getQueryParams(), {field: sortObject.field, order: sortObject.type}); - tableIns.reload({where: params, page: {curr: 1}}); + tableIns.reload({where: params, page: {curr: currPageOrder}}); }); // 刷新按钮 $reset.on('click', function () { $searchForm[0].reset(); sortObject.type = 'null'; - tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject}); + tableIns.reload({where: getQueryParams(), page: {curr: currPageOrder}, initSort: sortObject}); }); $add.on('click', function () { -- Gitblit v1.9.1