修复layui不分页的显示条数问题

pull/65/head
fengshuonan 2021-01-16 18:57:07 +08:00
parent 0fbc1f43a4
commit 0a1e0025f6
3 changed files with 8 additions and 3 deletions

View File

@ -41,13 +41,15 @@ layui.use(['layer', 'form', 'table', 'HttpRequest', 'func', 'tree'], function ()
{field: 'chineseName', title: '中文名称', width: 150}, {field: 'chineseName', title: '中文名称', width: 150},
{field: 'fieldClassType', title: '字段类型', width: 150}, {field: 'fieldClassType', title: '字段类型', width: 150},
{field: 'fieldName', title: '字段名称', width: 200}, {field: 'fieldName', title: '字段名称', width: 200},
{field: 'validationMessages', title: '校验信息'} {field: 'validationMessages', title: '可能出现的参数校验错误提示'}
]]; ]];
// 渲染请求参数列表 // 渲染请求参数列表
table.render({ table.render({
elem: '#requestParamsTable', elem: '#requestParamsTable',
cols: columns, cols: columns,
page: false,
limit: Number.MAX_VALUE,
data: detailResult.data.paramFieldDescriptions, data: detailResult.data.paramFieldDescriptions,
even: true even: true
}); });
@ -56,6 +58,8 @@ layui.use(['layer', 'form', 'table', 'HttpRequest', 'func', 'tree'], function ()
table.render({ table.render({
elem: '#responseParamsTable', elem: '#responseParamsTable',
cols: columns, cols: columns,
page: false,
limit: Number.MAX_VALUE,
data: detailResult.data.responseFieldDescriptions, data: detailResult.data.responseFieldDescriptions,
even: true even: true
}); });

View File

@ -59,6 +59,7 @@ layui.use(['table', 'HttpRequest'], function () {
var tableResult = table.render({ var tableResult = table.render({
elem: '#' + OnlineUser.tableId, elem: '#' + OnlineUser.tableId,
url: Feng.ctxPath + '/sysUser/onlineUserList', url: Feng.ctxPath + '/sysUser/onlineUserList',
limit: Number.MAX_VALUE,
page: false, page: false,
height: "full-158", height: "full-158",
cellMinWidth: 100, cellMinWidth: 100,

View File

@ -76,13 +76,13 @@
<legend>请求参数</legend> <legend>请求参数</legend>
</fieldset> </fieldset>
<table class="layui-hide" id="requestParamsTable"></table> <table class="layui-hide" id="requestParamsTable" lay-filter="requestParamsTable"></table>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;"> <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
<legend>响应参数</legend> <legend>响应参数</legend>
</fieldset> </fieldset>
<table class="layui-hide" id="responseParamsTable"></table> <table class="layui-hide" id="responseParamsTable" lay-filter="responseParamsTable"></table>
</div> </div>
</div> </div>