Skip to content
New issue

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

通过queryParams带参查询,不能正常显示树形数据结构 #13

Open
jqiaoGean opened this issue Apr 18, 2018 · 1 comment
Open

Comments

@jqiaoGean
Copy link

代码如下:
tblResouce.bootstrapTable('destroy').bootstrapTable({
toolbar : "#toolbar",
toolbarAlign : 'left',
url : url,
method : 'post',
sidePagination: 'client',
height: 345,
sortName : 'sequenceNum',
sortOrder : 'asc',
pagination: false,
treeView: true,
treeId: "id",
treeField: "resourceType",
columns : [
{field : 'resourceType',title : '类型',formatter : function(value, row) {
return resourceMap.get('resource.type.'+value.toLowerCase())
}
},
{field : 'resName',title : '资源名称'},
{field : 'resDesc',title : '资源描述'}
],
queryParams : function(params) {
var param = {
roleId : roleId
};
return param;
},
responseHandler: function(data){ //客户端分页
return data.resourceList;
}
});

@lslvxy
Copy link
Owner

lslvxy commented Apr 18, 2018

可能你配置有问题,treeview我测试没有问题,你可以先把 treeView设为false试试看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants