后台代码:
@GetMapping("/getAll")
//多层封装 多条信息查询用list
public Result getAll(){
List
return Result.success(list);
}
public List
return adminDao.selectAll();
}
params类
@Data
public class Params {
private String name;
private String phone;
private Integer currentPage;
private Integer pageSize;
}
前台代码:
load() {
request.get("/admin/getAll").then(res => {
if (res.code === '0') {
this.filterTableData = res.data;
}
})
},