From 942c2cc31fa822f7b6d1347d6f9c391d924d085a Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 20 Feb 2023 17:23:47 +0800
Subject: [PATCH] 滑动条
---
src/main/resources/templates/febs/views/modules/order/orderList.html | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 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 3c78844..ae54f9f 100644
--- a/src/main/resources/templates/febs/views/modules/order/orderList.html
+++ b/src/main/resources/templates/febs/views/modules/order/orderList.html
@@ -7,9 +7,9 @@
<div class="layui-form-item">
<div class="layui-col-md10">
<div class="layui-inline">
- <label class="layui-form-label">用户名:</label>
+ <label class="layui-form-label">购买人:</label>
<div class="layui-input-inline">
- <input type="text" placeholder="用户名" name="name" autocomplete="off" class="layui-input">
+ <input type="text" placeholder="购买人" name="name" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-inline">
@@ -19,7 +19,7 @@
</div>
</div>
<div class="layui-inline">
- <label class="layui-form-label layui-form-label-sm">订单状态</label>
+ <label class="layui-form-label layui-form-label-sm">状态</label>
<div class="layui-input-inline">
<select name="status">
<option value="">请选择</option>
@@ -89,7 +89,7 @@
</form>
<table lay-filter="orderTable" lay-data="{id: 'orderTable'}"></table>
<style type="text/css">
- .layui-table-cell{
+ .layui-table cell{
text-align:center;
height: auto;
white-space: nowrap; /*文本不会换行,在同一行显示*/
@@ -98,6 +98,11 @@
}
.layui-table img{
max-width:100px
+ }
+
+ ::-webkit-scrollbar {
+ height: 20px !important;
+ background-color: #f4f4f4;
}
</style>
</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