| | |
| | | <div class="cell-list control">
|
| | | <img src="image/webStatus/control_normal.gif" alt="线程监控程序" title="线程监控程序运行:正常">
|
| | | </div>
|
| | | <div class="cell-list server-time"> |
| | | 2018-11-26 00:00:00
|
| | | </div> |
| | | </div>
|
| | | <div class="international">
|
| | | <c:choose>
|
| | |
| | | }
|
| | |
|
| | |
|
| | | |
| | | |
| | | $(function(){
|
| | | $.ajax({
|
| | | type: "post",
|
| | |
| | | warnAlarmData = temp;
|
| | | }
|
| | |
|
| | | seachServerTime();
|
| | | //获取服务器上的时间
|
| | | function seachServerTime(){ |
| | | $.ajax({ |
| | | type:"post", |
| | | url: "User_infAction!searchServerTime", |
| | | async:true, |
| | | dataType:'text',
|
| | | data:null, |
| | | success: function(data){ |
| | | data = eval('('+data+')');
|
| | | var model = eval('('+data.result+')');
|
| | | if(model.code == 1){
|
| | | $('.server-time').text(model.msg);
|
| | | }else{
|
| | | |
| | | }
|
| | | setTimeout(seachServerTime, 1000); |
| | | },
|
| | | error:function() {
|
| | | setTimeout(seachServerTime, 2000);
|
| | | } |
| | | });
|
| | | }
|
| | | |
| | | // 监测当前的告警信息是否为最新的告警
|
| | | function checkWarnDataIsNew(warnData) {
|
| | | var rs = 0;
|
| | |
| | | package com.fgkj.actions;
|
| | |
|
| | | import java.text.SimpleDateFormat;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import com.fgkj.dao.UinfDaoFactory;
|
| | |
| | | public String checkService(){
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //获取服务器的时间
|
| | | public String searchServerTime(){
|
| | | ServiceModel model = new ServiceModel();
|
| | | model.setCode(1);
|
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| | | model.setMsg(sdf.format(new Date()));
|
| | | result = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").toJson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | public String test(){
|
| | | System.out.println(upjson);
|
| | | System.out.println(uif);
|