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
代码如下: 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; } });
The text was updated successfully, but these errors were encountered:
可能你配置有问题,treeview我测试没有问题,你可以先把 treeView设为false试试看
Sorry, something went wrong.
No branches or pull requests
代码如下:
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;
}
});
The text was updated successfully, but these errors were encountered: