public class MonitorController extends BaseController {
NodeService nodeService = NodeServiceImpl.service;
public void cloudService(){
String nodeId = getPara("nodeId");
OSClientV3 os = nodeService.getOsClientByNodeId(nodeId);
List<? extends Service> services = os.getToken().getCatalog();
List<Record> results = new ArrayList<>();
services.forEach(s->{
Record rec = new Record().set("id", s.getId());
rec.set("name", s.getName());
rec.set("type", s.getType());
rec.set("enable", s.isEnabled());
results.add(rec);
});
renderJson(results);
}
}
怎么把前端获取到的数据,显示在界面上,,前端采用easyui
NodeService nodeService = NodeServiceImpl.service;
public void cloudService(){
String nodeId = getPara("nodeId");
OSClientV3 os = nodeService.getOsClientByNodeId(nodeId);
List<? extends Service> services = os.getToken().getCatalog();
List<Record> results = new ArrayList<>();
services.forEach(s->{
Record rec = new Record().set("id", s.getId());
rec.set("name", s.getName());
rec.set("type", s.getType());
rec.set("enable", s.isEnabled());
results.add(rec);
});
renderJson(results);
}
}
怎么把前端获取到的数据,显示在界面上,,前端采用easyui