统计图表增加详情静态页面
This commit is contained in:
@@ -19,6 +19,7 @@ import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.PageLog;
|
||||
import com.nis.util.CodeDicUtils;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.util.StringUtil;
|
||||
@@ -408,16 +409,19 @@ public class DashboardController extends BaseController{
|
||||
|
||||
@RequestMapping(value="ipActiveList")
|
||||
public String ipActiveList( HttpServletRequest request, HttpServletResponse response, Model model){
|
||||
Page<TrafficIpActiveStatistic> page = new Page<TrafficIpActiveStatistic>(request, response);
|
||||
TrafficIpActiveStatistic ip = new TrafficIpActiveStatistic();
|
||||
ip.setIpAddr("1.1.1.1");
|
||||
ip.setAreaId("11");
|
||||
ip.setLinkNum(1212);
|
||||
PageLog<TrafficIpActiveStatistic> page = new PageLog<TrafficIpActiveStatistic>(request, response);
|
||||
List list = new ArrayList();
|
||||
list.add(ip);
|
||||
for (int i = 1; i < 10; i++) {
|
||||
TrafficIpActiveStatistic ip = new TrafficIpActiveStatistic();
|
||||
ip.setId(i);
|
||||
ip.setIpAddr(3+i+".1.1."+i);
|
||||
ip.setAreaId("11");
|
||||
ip.setLinkNum(1212);
|
||||
list.add(ip);
|
||||
}
|
||||
page.setList(list);
|
||||
model.addAttribute("page", page);
|
||||
return "/dashboard/trafficIpActiveList";
|
||||
return "/dashboard/trafficConnList";
|
||||
}
|
||||
|
||||
|
||||
@@ -450,6 +454,7 @@ public class DashboardController extends BaseController{
|
||||
return "/dashboard/trafficIpActiveChart";
|
||||
}
|
||||
public class TrafficIpActiveStatistic{
|
||||
Integer id=1;
|
||||
String ipAddr="10.1.1.2";
|
||||
String areaId="1045";
|
||||
Integer linkNum=3121;
|
||||
@@ -459,6 +464,12 @@ public class DashboardController extends BaseController{
|
||||
Integer s2cByteLen=23323;
|
||||
String statTime;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getStatTime() {
|
||||
return statTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user