1、后台代码片段:
@GetMapping("tableList")
public R tableList(String tableName)
{
//startPage();
Map<String, Object> params = new HashMap<>();
params.put("tableName", tableName);
params.put("fields", "*");
params.put("page", getRequest().getAttribute("pageNum")==null?1:getRequest().getAttribute("pageNum"));
params.put("pageSize", 100);
params.put("total", 0);
params.put("totalPage", 0);
List<Map<String,Object>> maps = dbTableService.get(params);
System.out.println(params);
JSONObject jb = new JSONObject();
jb.put("title", "序号");
jb.put("dataIndex", "id");
JSONObject jb2 = new JSONObject();
jb2.put("title", "姓名");
jb2.put("dataIndex", "name");
JSONObject jb3 = new JSONObject();
jb3.put("title", "卡号&#