jfinal吧 关注:339贴子:439
  • 0回复贴,共1

jfinal 项目

只看楼主收藏回复

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


1楼2017-07-25 17:20回复