We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
功能请求
V2.9.8
Table组件自定义分页,按照文档说明,通过request属性将分页请求参数 page 修改成了 pageThis ,加载第一页数据时默认传递的是 pageThis = 1,是否有办法可以修改该参数的值呢?比如想要传递 pageThis = 0
table.render({ elem: "#alarmDetailTable", method: 'post', where: parm, url: chartUrl, contentType: 'application/json', pagebar: '#alarmDetail-pagebar', page: { // 支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) layout: ['prev', 'page', 'next', 'count'], //自定义分页布局 curr: 0, //设定初始在第1页 groups: 5, //只显示5个连续页码 first: false, //不显示首页 last: false //不显示尾页 }, request: { pageName: 'pageThis', // 页码的参数名称 }, cols: cols, response: { statusCode: 200 // 重新规定成功的状态码为 200,table 组件默认为 0 }, parseData: function(res) { // res 即为原始返回的数据 return { "code": res.returnCode, // 解析接口状态 "msg": res.returnMsg, // 解析提示文本 "count": res.returnData.countAll, // 解析数据长度 "data": res.returnData.dataList, // 解析数据列表 "curr": res.returnData.pageThis // 解析页码 }; } });
No response
123.0.6312.106(正式版本) (64 位)
The text was updated successfully, but these errors were encountered:
关联 #1889
Sorry, something went wrong.
No branches or pull requests
议题条件
议题类型
功能请求
使用版本
V2.9.8
问题描述
Table组件自定义分页,按照文档说明,通过request属性将分页请求参数 page 修改成了 pageThis ,加载第一页数据时默认传递的是 pageThis = 1,是否有办法可以修改该参数的值呢?比如想要传递 pageThis = 0
业务代码
截图补充
No response
浏览器
123.0.6312.106(正式版本) (64 位)
演示地址
No response
友好承诺
The text was updated successfully, but these errors were encountered: