$('#zdrgkZdckryTable').bootstrapTable中的queryParams : function(params) { var searchParam = $("#searchForm").serializeJSON(); searchParam.bkglBkzt = "003"; searchParam.pageNo = params.limit === undefined? "1" :params.offset/params.limit+1; searchParam.pageSize = params.limit === undefined? -1 : params.limit; if(params.sort && params.order){ searchParam.orderBy = params.sort+ " "+ params.order; } return searchParam; },前提下在JEEPLUS中左树右表的情况下bind("activate_node.jstree", function (obj, e)中点击树节点“崇武镇”时在 $('#zdrgkZdckryTable').bootstrapTabl中的queryParams : function(params)添加一个searchParam.bkglCkbm= "0"
时间: 2024-02-24 18:56:24 浏览: 59
java调用bing search api搜索关键字.docx
5星 · 资源好评率100%
您的问题是如何在JEEPLUS中左树右表的情况下,在bind("activate_node.jstree", function (obj, e)中点击树节点“崇武镇”时,在 $('#zdrgkZdckryTable').bootstrapTable中的queryParams : function(params)函数中添加一个searchParam.bkglCkbm= "0"的参数?
您可以在bind("activate_node.jstree", function (obj, e)函数中添加以下代码:
```
$('#zdrgkZdckryTable').bootstrapTable('refreshOptions', {
queryParams: function(params) {
var searchParam = $("#searchForm").serializeJSON();
searchParam.bkglBkzt = "003";
searchParam.pageNo = params.limit === undefined? "1" :params.offset/params.limit+1;
searchParam.pageSize = params.limit === undefined? -1 : params.limit;
if(params.sort && params.order){
searchParam.orderBy = params.sort+ " "+ params.order;
}
searchParam.bkglCkbm = "0"; // 添加该参数
return searchParam;
}
});
```
这将会在每次点击树节点时,重新配置表格的queryParams函数,并添加一个搜索参数"bkglCkbm",值为"0"。
阅读全文