|
@@ -11,11 +11,17 @@
|
|
|
<link rel='stylesheet' href='../luckysheet/dist/assets/iconfont/iconfont.css' />
|
|
|
<link rel="stylesheet" href="../dist/css/layui.css">
|
|
|
<style>
|
|
|
- .la-btn {
|
|
|
+ .la-btn{
|
|
|
position: absolute;
|
|
|
- bottom: 20px;
|
|
|
- left: 50%;
|
|
|
- margin-left: -35px
|
|
|
+ bottom: 35px;
|
|
|
+ width: 96%;
|
|
|
+ padding:0 2%;
|
|
|
+ }
|
|
|
+ .btn{
|
|
|
+ width:100%;
|
|
|
+ }
|
|
|
+ .layui-laypage-em{
|
|
|
+ background-color: #1e9fff !important;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
@@ -25,7 +31,9 @@
|
|
|
|
|
|
<table id="demo" lay-filter="test"></table>
|
|
|
|
|
|
- <button id="recordBtn" type="button" class="layui-btn layui-btn-normal layui-btn-sm la-btn">运行记录</button>
|
|
|
+ <div class="la-btn">
|
|
|
+ <button id="recordBtn" type="button" class="layui-btn layui-btn-normal layui-btn-sm btn">运行记录</button>
|
|
|
+ </div>
|
|
|
|
|
|
<script src="../jquery.min.js"></script>
|
|
|
<script src="../dist/layui.js"></script>
|
|
@@ -80,16 +88,16 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- //第一个实例
|
|
|
var tableReload = table.render({
|
|
|
elem: '#demo',
|
|
|
- height: 312,
|
|
|
width: 300,
|
|
|
+ page: {
|
|
|
+ elem: '#demo',
|
|
|
+ layout: ['prev', 'page', 'next', 'count']
|
|
|
+ },
|
|
|
url: 'http://192.168.0.40:8081/reportTable/getAutoChReportTable',
|
|
|
where: {
|
|
|
- autoTableId: id,
|
|
|
- page: 1,
|
|
|
- limit: 10,
|
|
|
+ autoTableId: id
|
|
|
},
|
|
|
text: {
|
|
|
none: '暂无数据' //默认:无数据。
|