1.事务添加
2.亦庄bug修改 3.业务系统添加逻辑变更
This commit is contained in:
@@ -1,231 +1,231 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ taglib uri="/jstl/c" prefix="c"%>
|
||||
<%@ taglib uri="/jstl/fn" prefix="fn"%>
|
||||
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
request.setAttribute("vEnter","\n");
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>i18n_dwi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
</head>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
function goBack(){
|
||||
var nodeType='${nodeType}';
|
||||
var url;
|
||||
if("${type}"=="3Droom"){
|
||||
url="<c:url value='/detection/detectionWarning.do?action=queryAll'/>";
|
||||
}else if(nodeType == '0'){
|
||||
url="<c:url value='/detection/detectionWarning.do?action=query'/>";
|
||||
}else if(nodeType == '1'){
|
||||
url="<c:url value='/detection/detectionWarning.do?action=queryNE'/>";
|
||||
}else{
|
||||
url="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";//告警信息
|
||||
}
|
||||
document.Mkform.action=url;
|
||||
document.Mkform.submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<body>
|
||||
<div class="middle_list" >
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_dwi.button.back_n81i"/>
|
||||
</div>
|
||||
<div style="height: 25px"></div>
|
||||
<form action="" name="Mkform" method="post">
|
||||
<!-- 查询页面查询条件 Start -->
|
||||
<input type="hidden" name="police_level" value="${police_level }">
|
||||
<input type="hidden" name="ctn" value="${ctn }" />
|
||||
<input type="hidden" name="ip" value="${ip }" />
|
||||
<input type="hidden" name="dct" value="${dct }" />
|
||||
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
|
||||
<input type="hidden" name="pIden" value="${pIden }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="timeoutDetecFilter" value="${timeoutDetecFilter}" />
|
||||
<!-- 从监测网元信息进入的参数 -->
|
||||
<input type="hidden" name="entry" value="${entry}"/>
|
||||
<input type="hidden" name="detectId" value="${detectId}"/>
|
||||
<input type="hidden" name="seqId" value="${seqId}"/>
|
||||
<input type="hidden" name="police_emergent" value="${police_emergent}"/>
|
||||
<input type="hidden" name="nodeIpRange" value="${nodeIpRange}"/>
|
||||
|
||||
<input type="hidden" name="nodeType" value="${nodeType}"/>
|
||||
<input type="hidden" name="type" value="${type}"/>
|
||||
|
||||
<input type="hidden" name="nameFlag" value="${nameFlag}"/>
|
||||
<input type="hidden" name="pid" value="${pid}"/>
|
||||
<input type="hidden" name="isLeaf" value="${isLeaf}"/>
|
||||
<input type="hidden" name="picId" value="${picId}"/>
|
||||
<input type="hidden" name="queryParConditionDisplay" value="${queryParConditionDisplay}"/>
|
||||
<input type="hidden" name="queryChildConditionDisplay" value="${queryChildConditionDisplay}"/>
|
||||
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
|
||||
<!-- 查询页面查询条件 end -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_dwi.message.warningInfo_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_dwi.text.processIdenName_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" width="20%">
|
||||
${detectionWarningInfo.detectionSetInfo.processIdenName}
|
||||
</td>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_dwi.text.nodeIp_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" width="20%">
|
||||
${nodeIp}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dwi.text.detecationState_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
<c:if test="${detectionWarningInfo.detectionedState=='0' }"><font color="#FF0000">i18n_dwi.message.abnormal_n81i</font></c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionedState=='1' }">i18n_dwi.message.normal_n81i</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionedState=='-1' }"><font color="#FF0000">i18n_dwi.message.execFailed_n81i</font></c:if>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.viewLevel_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='1' }">i18n_dwi.message.publisher_n81i</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='2' }">i18n_dwi.message.publisherGroup_n81i</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='3' }">i18n_dwi.message.allInSys_n81i</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='4' }">i18n_dwi.message.unlimited_n81i</c:if>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.stateInfo_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" colspan="3">
|
||||
${fn:replace(fn:replace(detectionWarningInfo.detectionStateInfo,vEnter,'$@$'),'$@$','<br/>')}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.performaceData_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" colspan="3">
|
||||
${fn:replace(fn:replace(detectionWarningInfo.performaceData,vEnter,'$@$'),'$@$','<br/>')}
|
||||
</td>
|
||||
</tr>
|
||||
<%-- <tr>--%>
|
||||
<%-- <td class="color_1" align="right">--%>
|
||||
<%-- 监测首次执行时间:--%>
|
||||
<%-- </td>--%>
|
||||
<%-- <td class="color_3" align="left">--%>
|
||||
<%-- <fmt:formatDate value="${detectionWarningInfo.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- <td class="color_1" align="right">--%>
|
||||
<%-- 上传监测数据时间间隔(分钟):--%>
|
||||
<%-- </td>--%>
|
||||
<%-- <td class="color_3" align="left">--%>
|
||||
<%-- ${detectionWarningInfo.detectionSetInfo.uploadGap}--%>
|
||||
<%-- </td>--%>
|
||||
<%-- </tr>--%>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.checkGap_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${detectionWarningInfo.detectionSetInfo.checkGap}
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.currentTimes_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${detectionWarningInfo.currentTimes }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.nextCheckTime_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<fmt:formatDate value="${detectionWarningInfo.nextCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
</td>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dwi.text.dataArriveTime_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
<fmt:formatDate value="${detectionWarningInfo.dataArriveTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dwi.text.dataCheckTime_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" colspan="3">
|
||||
<fmt:formatDate value="${detectionWarningInfo.dataCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
</td>
|
||||
<!--
|
||||
<td class="color_1" align="right">
|
||||
监测方式:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '0'}">主动</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '1'}">被动</c:if>
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" align="center" class="color_8">
|
||||
<strong>i18n_dwi.text.warningInfo_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="4" class="color_6">
|
||||
<c:if test="${!empty infoMap}">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="1" >
|
||||
<c:forEach items="${infoMap}" var="datarow" >
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
${datarow.key}:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
${datarow.value}
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</c:if>
|
||||
<c:if test="${empty infoMap}">i18n_dwi.text.noRecord_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ taglib uri="/jstl/c" prefix="c"%>
|
||||
<%@ taglib uri="/jstl/fn" prefix="fn"%>
|
||||
<%@ taglib uri="/jstl/fmt" prefix="fmt"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
request.setAttribute("vEnter","\n");
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>i18n_dwi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
</head>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
function goBack(){
|
||||
var nodeType='${nodeType}';
|
||||
var url;
|
||||
if("${type}"=="3Droom"){
|
||||
url="<c:url value='/detection/detectionWarning.do?action=queryAll'/>";
|
||||
}else if(nodeType == '0'){
|
||||
url="<c:url value='/detection/detectionWarning.do?action=query'/>";
|
||||
}else if(nodeType == '1'){
|
||||
url="<c:url value='/detection/detectionWarning.do?action=queryNE'/>";
|
||||
}else{
|
||||
url="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";//告警信息
|
||||
}
|
||||
document.Mkform.action=url;
|
||||
document.Mkform.submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<body>
|
||||
<div class="middle_list" >
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_dwi.button.back_n81i"/>
|
||||
</div>
|
||||
<div style="height: 25px"></div>
|
||||
<form action="" name="Mkform" method="post">
|
||||
<!-- 查询页面查询条件 Start -->
|
||||
<input type="hidden" name="police_level" value="${police_level }">
|
||||
<input type="hidden" name="ctn" value="${ctn }" />
|
||||
<input type="hidden" name="ip" value="${ip }" />
|
||||
<input type="hidden" name="dct" value="${dct }" />
|
||||
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
|
||||
<input type="hidden" name="pIden" value="${pIden }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="timeoutDetecFilter" value="${timeoutDetecFilter}" />
|
||||
<!-- 从监测网元信息进入的参数 -->
|
||||
<input type="hidden" name="entry" value="${entry}"/>
|
||||
<input type="hidden" name="detectId" value="${detectId}"/>
|
||||
<input type="hidden" name="seqId" value="${seqId}"/>
|
||||
<input type="hidden" name="police_emergent" value="${police_emergent}"/>
|
||||
<input type="hidden" name="nodeIpRange" value="${nodeIpRange}"/>
|
||||
|
||||
<input type="hidden" name="nodeType" value="${nodeType}"/>
|
||||
<input type="hidden" name="type" value="${type}"/>
|
||||
|
||||
<input type="hidden" name="nameFlag" value="${nameFlag}"/>
|
||||
<input type="hidden" name="pid" value="${pid}"/>
|
||||
<input type="hidden" name="isLeaf" value="${isLeaf}"/>
|
||||
<input type="hidden" name="picId" value="${picId}"/>
|
||||
<input type="hidden" name="queryParConditionDisplay" value="${queryParConditionDisplay}"/>
|
||||
<input type="hidden" name="queryChildConditionDisplay" value="${queryChildConditionDisplay}"/>
|
||||
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
|
||||
<!-- 查询页面查询条件 end -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_dwi.message.warningInfo_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_dwi.text.processIdenName_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" width="20%">
|
||||
${detectionWarningInfo.detectionSetInfo.processIdenName}
|
||||
</td>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_dwi.text.nodeIp_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" width="20%">
|
||||
${nodeIp}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dwi.text.detecationState_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
<c:if test="${detectionWarningInfo.detectionedState=='0' }"><font color="#FF0000">i18n_dwi.message.abnormal_n81i</font></c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionedState=='1' }">i18n_dwi.message.normal_n81i</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionedState=='-1' }"><font color="#FF0000">i18n_dwi.message.execFailed_n81i</font></c:if>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.viewLevel_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='1' }">i18n_dwi.message.publisher_n81i</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='2' }">i18n_dwi.message.publisherGroup_n81i</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='3' }">i18n_dwi.message.allInSys_n81i</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='4' }">i18n_dwi.message.unlimited_n81i</c:if>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.stateInfo_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" colspan="3">
|
||||
${fn:replace(fn:replace(detectionWarningInfo.detectionStateInfo,vEnter,'$@$'),'$@$','<br/>')}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.performaceData_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" colspan="3">
|
||||
${fn:replace(fn:replace(detectionWarningInfo.performaceData,vEnter,'$@$'),'$@$','<br/>')}
|
||||
</td>
|
||||
</tr>
|
||||
<%-- <tr>--%>
|
||||
<%-- <td class="color_1" align="right">--%>
|
||||
<%-- 监测首次执行时间:--%>
|
||||
<%-- </td>--%>
|
||||
<%-- <td class="color_3" align="left">--%>
|
||||
<%-- <fmt:formatDate value="${detectionWarningInfo.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%>
|
||||
<%-- </td>--%>
|
||||
<%-- <td class="color_1" align="right">--%>
|
||||
<%-- 上传监测数据时间间隔(分钟):--%>
|
||||
<%-- </td>--%>
|
||||
<%-- <td class="color_3" align="left">--%>
|
||||
<%-- ${detectionWarningInfo.detectionSetInfo.uploadGap}--%>
|
||||
<%-- </td>--%>
|
||||
<%-- </tr>--%>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.checkGap_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${detectionWarningInfo.detectionSetInfo.checkGap}
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.currentTimes_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${detectionWarningInfo.currentTimes }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dwi.text.nextCheckTime_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<fmt:formatDate value="${detectionWarningInfo.nextCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
</td>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dwi.text.dataArriveTime_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
<fmt:formatDate value="${detectionWarningInfo.dataArriveTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dwi.text.dataCheckTime_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" colspan="3">
|
||||
<fmt:formatDate value="${detectionWarningInfo.dataCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
</td>
|
||||
<!--
|
||||
<td class="color_1" align="right">
|
||||
监测方式:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '0'}">主动</c:if>
|
||||
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '1'}">被动</c:if>
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" align="center" class="color_8">
|
||||
<strong>i18n_dwi.text.warningInfo_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="4" class="color_6">
|
||||
<c:if test="${!empty infoMap}">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="1" >
|
||||
<c:forEach items="${infoMap}" var="datarow" >
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
${datarow.key}:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
${datarow.value}
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</c:if>
|
||||
<c:if test="${empty infoMap}">i18n_dwi.text.noRecord_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,167 +1,167 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
request.setAttribute("vEnter","\n");
|
||||
%>
|
||||
</script>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(detecWarningList) > 0}">
|
||||
<c:forEach items="${detecWarningList}" var="detecWarning"
|
||||
varStatus="vs">
|
||||
<c:set var="color" value="color_1" />
|
||||
<c:set var="color_end" value="color_7" />
|
||||
<c:if test="${vs.count%2!=0 }">
|
||||
<c:set var="color" value="color_3" />
|
||||
<c:set var="color_end" value="color_6" />
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="${color }">
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS,此处远程连接调用JS在/common/remoteConn.jsp中 -->
|
||||
<a
|
||||
href="javascript:void(0);"
|
||||
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
|
||||
style="color:${detecWarning.bgcolor};}">
|
||||
${detecWarning.nodeIp} </a>
|
||||
</font>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dclwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
|
||||
title="i18n_dclwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
|
||||
</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${detecWarning.checkWay=='0' }">i18n_dclwlc.message.active_n81i</c:if>
|
||||
<c:if test="${detecWarning.checkWay=='1' }">i18n_dclwlc.message.passive_n81i</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<fmt:formatDate value="${detecWarning.dataCheckTime}"
|
||||
pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.persistTime}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.currentTimes}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.policeLevel}
|
||||
</td>
|
||||
<td class="${color }" >
|
||||
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
|
||||
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
|
||||
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
|
||||
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%>>
|
||||
<%-- <c:if test="${fn:length(stateInfo) >= 25}">
|
||||
${fn:substring(stateInfo,0,25)}...
|
||||
</c:if>
|
||||
<c:if test="${fn:length(stateInfo) < 25}">
|
||||
${stateInfo}
|
||||
</c:if> --%>
|
||||
<span class="stateInfoVal">${stateInfoParam}</span>
|
||||
<%-- <span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
|
||||
</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
|
||||
<script type="text/javascript" >
|
||||
/*--------------控制表格输出长度--------------------*/
|
||||
$(function(){
|
||||
$(".prop").each(function(){
|
||||
var obj = $(this);
|
||||
var tx = document.body.clientWidth; //文档的可见长宽
|
||||
var ty = document.body.clientHeight;
|
||||
$(obj).on("mouseenter",function(event){
|
||||
event = event ? event : window.event;
|
||||
$(".popover").remove();
|
||||
var x = event.clientX;//鼠标位置
|
||||
var y = event.clientY;
|
||||
//alert(tx + "," + ty + "," + x + "," + y);
|
||||
if (y < ty/2) {
|
||||
var placement = "bottom";
|
||||
} else {
|
||||
var placement = "top";
|
||||
}
|
||||
$(obj).popover({
|
||||
html:true,
|
||||
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
|
||||
placement:placement
|
||||
});
|
||||
$(obj).popover("show");
|
||||
const ps = new PerfectScrollbar('.pop-content');
|
||||
|
||||
//修复因浏览器兼容性导致的弹出框位置不对的问题
|
||||
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
|
||||
var popx1 = pop.offsetLeft;
|
||||
var popy1 = pop.offsetTop;
|
||||
var popx2 = pop.offsetLeft + pop.offsetWidth;
|
||||
var popy2 = pop.offsetTop + pop.offsetHeight;
|
||||
|
||||
var propy1 = $(obj).offset().top;
|
||||
var propy2 = $(obj).offset().top + $(obj).height();
|
||||
if (placement == "top") {
|
||||
if (propy1 < popy2) {
|
||||
$(pop).css("top", propy1 - 3);
|
||||
}
|
||||
} else if (placement == "bottom") {
|
||||
if (propy2 > popy1) {
|
||||
$(pop).css("top", propy2 + 3);
|
||||
}
|
||||
}
|
||||
|
||||
}).on("mouseleave",function(event){
|
||||
event = event ? event : window.event;
|
||||
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
|
||||
var popx1 = pop.offsetLeft;
|
||||
var popy1 = pop.offsetTop;
|
||||
var popx2 = pop.offsetLeft + pop.offsetWidth;
|
||||
var popy2 = pop.offsetTop + pop.offsetHeight;
|
||||
|
||||
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
|
||||
//var popChildyHeight = popChild.offsetHeight;
|
||||
|
||||
var x = event.clientX; //鼠标位置
|
||||
var y = event.clientY;
|
||||
if (y < ty/2) {
|
||||
var extraTop = 3;
|
||||
var extraBottom = 0;
|
||||
} else {
|
||||
var extraTop = 0;
|
||||
var extraBottom = 3;
|
||||
}
|
||||
|
||||
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
|
||||
$(obj).popover("hide");
|
||||
} else {
|
||||
$(pop).on("mouseleave",function(event){
|
||||
$(obj).popover("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
var stateInfos=$(".stateInfoVal");
|
||||
for(var i=0;i<stateInfos.length;i++){
|
||||
var infoVal=$(stateInfos[i]).text().trim();
|
||||
if(infoVal.length>25){
|
||||
$(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
|
||||
}else{
|
||||
$(stateInfos[i]).text(infoVal);
|
||||
}
|
||||
}
|
||||
});
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
request.setAttribute("vEnter","\n");
|
||||
%>
|
||||
</script>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(detecWarningList) > 0}">
|
||||
<c:forEach items="${detecWarningList}" var="detecWarning"
|
||||
varStatus="vs">
|
||||
<c:set var="color" value="color_1" />
|
||||
<c:set var="color_end" value="color_7" />
|
||||
<c:if test="${vs.count%2!=0 }">
|
||||
<c:set var="color" value="color_3" />
|
||||
<c:set var="color_end" value="color_6" />
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="${color }">
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS,此处远程连接调用JS在/common/remoteConn.jsp中 -->
|
||||
<a
|
||||
href="javascript:void(0);"
|
||||
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
|
||||
style="color:${detecWarning.bgcolor};}">
|
||||
${detecWarning.nodeIp} </a>
|
||||
</font>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dclwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
|
||||
title="i18n_dclwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
|
||||
</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${detecWarning.checkWay=='0' }">i18n_dclwlc.message.active_n81i</c:if>
|
||||
<c:if test="${detecWarning.checkWay=='1' }">i18n_dclwlc.message.passive_n81i</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<fmt:formatDate value="${detecWarning.dataCheckTime}"
|
||||
pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.persistTime}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.currentTimes}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.policeLevel}
|
||||
</td>
|
||||
<td class="${color }" >
|
||||
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
|
||||
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
|
||||
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
|
||||
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%>>
|
||||
<%-- <c:if test="${fn:length(stateInfo) >= 25}">
|
||||
${fn:substring(stateInfo,0,25)}...
|
||||
</c:if>
|
||||
<c:if test="${fn:length(stateInfo) < 25}">
|
||||
${stateInfo}
|
||||
</c:if> --%>
|
||||
<span class="stateInfoVal">${stateInfoParam}</span>
|
||||
<%-- <span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
|
||||
</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
|
||||
<script type="text/javascript" >
|
||||
/*--------------控制表格输出长度--------------------*/
|
||||
$(function(){
|
||||
$(".prop").each(function(){
|
||||
var obj = $(this);
|
||||
var tx = document.body.clientWidth; //文档的可见长宽
|
||||
var ty = document.body.clientHeight;
|
||||
$(obj).on("mouseenter",function(event){
|
||||
event = event ? event : window.event;
|
||||
$(".popover").remove();
|
||||
var x = event.clientX;//鼠标位置
|
||||
var y = event.clientY;
|
||||
//alert(tx + "," + ty + "," + x + "," + y);
|
||||
if (y < ty/2) {
|
||||
var placement = "bottom";
|
||||
} else {
|
||||
var placement = "top";
|
||||
}
|
||||
$(obj).popover({
|
||||
html:true,
|
||||
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
|
||||
placement:placement
|
||||
});
|
||||
$(obj).popover("show");
|
||||
const ps = new PerfectScrollbar('.pop-content');
|
||||
|
||||
//修复因浏览器兼容性导致的弹出框位置不对的问题
|
||||
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
|
||||
var popx1 = pop.offsetLeft;
|
||||
var popy1 = pop.offsetTop;
|
||||
var popx2 = pop.offsetLeft + pop.offsetWidth;
|
||||
var popy2 = pop.offsetTop + pop.offsetHeight;
|
||||
|
||||
var propy1 = $(obj).offset().top;
|
||||
var propy2 = $(obj).offset().top + $(obj).height();
|
||||
if (placement == "top") {
|
||||
if (propy1 < popy2) {
|
||||
$(pop).css("top", propy1 - 3);
|
||||
}
|
||||
} else if (placement == "bottom") {
|
||||
if (propy2 > popy1) {
|
||||
$(pop).css("top", propy2 + 3);
|
||||
}
|
||||
}
|
||||
|
||||
}).on("mouseleave",function(event){
|
||||
event = event ? event : window.event;
|
||||
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
|
||||
var popx1 = pop.offsetLeft;
|
||||
var popy1 = pop.offsetTop;
|
||||
var popx2 = pop.offsetLeft + pop.offsetWidth;
|
||||
var popy2 = pop.offsetTop + pop.offsetHeight;
|
||||
|
||||
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
|
||||
//var popChildyHeight = popChild.offsetHeight;
|
||||
|
||||
var x = event.clientX; //鼠标位置
|
||||
var y = event.clientY;
|
||||
if (y < ty/2) {
|
||||
var extraTop = 3;
|
||||
var extraBottom = 0;
|
||||
} else {
|
||||
var extraTop = 0;
|
||||
var extraBottom = 3;
|
||||
}
|
||||
|
||||
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
|
||||
$(obj).popover("hide");
|
||||
} else {
|
||||
$(pop).on("mouseleave",function(event){
|
||||
$(obj).popover("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
var stateInfos=$(".stateInfoVal");
|
||||
for(var i=0;i<stateInfos.length;i++){
|
||||
var infoVal=$(stateInfos[i]).text().trim();
|
||||
if(infoVal.length>25){
|
||||
$(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
|
||||
}else{
|
||||
$(stateInfos[i]).text(infoVal);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,167 +1,167 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
request.setAttribute("vEnter","\n");
|
||||
%>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(detecWarningList) > 0}">
|
||||
<c:forEach items="${detecWarningList}" var="detecWarning"
|
||||
varStatus="vs">
|
||||
<c:set var="color" value="color_1" />
|
||||
<c:set var="color_end" value="color_7" />
|
||||
<c:if test="${vs.count%2!=0 }">
|
||||
<c:set var="color" value="color_3" />
|
||||
<c:set var="color_end" value="color_6" />
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="${color }">
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS,此处远程连接调用JS在/common/remoteConn.jsp中 -->
|
||||
<a
|
||||
href="javascript:void(0);"
|
||||
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
|
||||
style="color:${detecWarning.bgcolor};}">
|
||||
${detecWarning.nodeIp} </a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
|
||||
title="i18n_dwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
|
||||
</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${detecWarning.checkWay=='0' }">i18n_dwlc.message.active_n81i</c:if>
|
||||
<c:if test="${detecWarning.checkWay=='1' }">i18n_dwlc.message.passive_n81i</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<fmt:formatDate value="${detecWarning.dataCheckTime}"
|
||||
pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.persistTime}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.currentTimes}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.policeLevel}
|
||||
</td>
|
||||
<td class="${color }" >
|
||||
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
|
||||
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
|
||||
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
|
||||
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%> >
|
||||
<%-- <c:if test="${fn:length(stateInfo) >= 25}">
|
||||
${fn:substring(stateInfo,0,25)}...
|
||||
</c:if>
|
||||
<c:if test="${fn:length(stateInfo) < 25}">
|
||||
${stateInfo}
|
||||
</c:if> --%>
|
||||
<span class="stateInfoVal">${stateInfo}</span>
|
||||
|
||||
<span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span>
|
||||
</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
|
||||
<script type="text/javascript" >
|
||||
/*--------------控制表格输出长度--------------------*/
|
||||
$(function(){
|
||||
$(".prop").each(function(){
|
||||
var obj = $(this);
|
||||
var tx = document.body.clientWidth; //文档的可见长宽
|
||||
var ty = document.body.clientHeight;
|
||||
$(obj).on("mouseenter",function(event){
|
||||
event = event ? event : window.event;
|
||||
$(".popover").remove();
|
||||
var x = event.clientX;//鼠标位置
|
||||
var y = event.clientY;
|
||||
//alert(tx + "," + ty + "," + x + "," + y);
|
||||
if (y < ty/2) {
|
||||
var placement = "bottom";
|
||||
} else {
|
||||
var placement = "top";
|
||||
}
|
||||
$(obj).popover({
|
||||
html:true,
|
||||
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
|
||||
placement:placement
|
||||
});
|
||||
$(obj).popover("show");
|
||||
const ps = new PerfectScrollbar('.pop-content');
|
||||
|
||||
//修复因浏览器兼容性导致的弹出框位置不对的问题
|
||||
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
|
||||
var popx1 = pop.offsetLeft;
|
||||
var popy1 = pop.offsetTop;
|
||||
var popx2 = pop.offsetLeft + pop.offsetWidth;
|
||||
var popy2 = pop.offsetTop + pop.offsetHeight;
|
||||
|
||||
var propy1 = $(obj).offset().top;
|
||||
var propy2 = $(obj).offset().top + $(obj).height();
|
||||
if (placement == "top") {
|
||||
if (propy1 < popy2) {
|
||||
$(pop).css("top", propy1 - 3);
|
||||
}
|
||||
} else if (placement == "bottom") {
|
||||
if (propy2 > popy1) {
|
||||
$(pop).css("top", propy2 + 3);
|
||||
}
|
||||
}
|
||||
|
||||
}).on("mouseleave",function(event){
|
||||
event = event ? event : window.event;
|
||||
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
|
||||
var popx1 = pop.offsetLeft;
|
||||
var popy1 = pop.offsetTop;
|
||||
var popx2 = pop.offsetLeft + pop.offsetWidth;
|
||||
var popy2 = pop.offsetTop + pop.offsetHeight;
|
||||
|
||||
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
|
||||
//var popChildyHeight = popChild.offsetHeight;
|
||||
|
||||
var x = event.clientX; //鼠标位置
|
||||
var y = event.clientY;
|
||||
if (y < ty/2) {
|
||||
var extraTop = 3;
|
||||
var extraBottom = 0;
|
||||
} else {
|
||||
var extraTop = 0;
|
||||
var extraBottom = 3;
|
||||
}
|
||||
|
||||
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
|
||||
$(obj).popover("hide");
|
||||
} else {
|
||||
$(pop).on("mouseleave",function(event){
|
||||
$(obj).popover("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
var stateInfos=$(".stateInfoVal");
|
||||
for(var i=0;i<stateInfos.length;i++){
|
||||
var infoVal=$(stateInfos[i]).text().trim();
|
||||
if(infoVal.length>25){
|
||||
$(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
|
||||
}else{
|
||||
$(stateInfos[i]).text(infoVal);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
request.setAttribute("vEnter","\n");
|
||||
%>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(detecWarningList) > 0}">
|
||||
<c:forEach items="${detecWarningList}" var="detecWarning"
|
||||
varStatus="vs">
|
||||
<c:set var="color" value="color_1" />
|
||||
<c:set var="color_end" value="color_7" />
|
||||
<c:if test="${vs.count%2!=0 }">
|
||||
<c:set var="color" value="color_3" />
|
||||
<c:set var="color_end" value="color_6" />
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="${color }">
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS,此处远程连接调用JS在/common/remoteConn.jsp中 -->
|
||||
<a
|
||||
href="javascript:void(0);"
|
||||
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
|
||||
style="color:${detecWarning.bgcolor};}">
|
||||
${detecWarning.nodeIp} </a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
|
||||
title="i18n_dwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
|
||||
</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${detecWarning.checkWay=='0' }">i18n_dwlc.message.active_n81i</c:if>
|
||||
<c:if test="${detecWarning.checkWay=='1' }">i18n_dwlc.message.passive_n81i</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<fmt:formatDate value="${detecWarning.dataCheckTime}"
|
||||
pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.persistTime}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.currentTimes}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${detecWarning.policeLevel}
|
||||
</td>
|
||||
<td class="${color }" >
|
||||
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
|
||||
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
|
||||
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
|
||||
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%> >
|
||||
<%-- <c:if test="${fn:length(stateInfo) >= 25}">
|
||||
${fn:substring(stateInfo,0,25)}...
|
||||
</c:if>
|
||||
<c:if test="${fn:length(stateInfo) < 25}">
|
||||
${stateInfo}
|
||||
</c:if> --%>
|
||||
<span class="stateInfoVal">${stateInfo}</span>
|
||||
|
||||
<span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span>
|
||||
</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
|
||||
<script type="text/javascript" >
|
||||
/*--------------控制表格输出长度--------------------*/
|
||||
$(function(){
|
||||
$(".prop").each(function(){
|
||||
var obj = $(this);
|
||||
var tx = document.body.clientWidth; //文档的可见长宽
|
||||
var ty = document.body.clientHeight;
|
||||
$(obj).on("mouseenter",function(event){
|
||||
event = event ? event : window.event;
|
||||
$(".popover").remove();
|
||||
var x = event.clientX;//鼠标位置
|
||||
var y = event.clientY;
|
||||
//alert(tx + "," + ty + "," + x + "," + y);
|
||||
if (y < ty/2) {
|
||||
var placement = "bottom";
|
||||
} else {
|
||||
var placement = "top";
|
||||
}
|
||||
$(obj).popover({
|
||||
html:true,
|
||||
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
|
||||
placement:placement
|
||||
});
|
||||
$(obj).popover("show");
|
||||
const ps = new PerfectScrollbar('.pop-content');
|
||||
|
||||
//修复因浏览器兼容性导致的弹出框位置不对的问题
|
||||
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
|
||||
var popx1 = pop.offsetLeft;
|
||||
var popy1 = pop.offsetTop;
|
||||
var popx2 = pop.offsetLeft + pop.offsetWidth;
|
||||
var popy2 = pop.offsetTop + pop.offsetHeight;
|
||||
|
||||
var propy1 = $(obj).offset().top;
|
||||
var propy2 = $(obj).offset().top + $(obj).height();
|
||||
if (placement == "top") {
|
||||
if (propy1 < popy2) {
|
||||
$(pop).css("top", propy1 - 3);
|
||||
}
|
||||
} else if (placement == "bottom") {
|
||||
if (propy2 > popy1) {
|
||||
$(pop).css("top", propy2 + 3);
|
||||
}
|
||||
}
|
||||
|
||||
}).on("mouseleave",function(event){
|
||||
event = event ? event : window.event;
|
||||
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
|
||||
var popx1 = pop.offsetLeft;
|
||||
var popy1 = pop.offsetTop;
|
||||
var popx2 = pop.offsetLeft + pop.offsetWidth;
|
||||
var popy2 = pop.offsetTop + pop.offsetHeight;
|
||||
|
||||
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
|
||||
//var popChildyHeight = popChild.offsetHeight;
|
||||
|
||||
var x = event.clientX; //鼠标位置
|
||||
var y = event.clientY;
|
||||
if (y < ty/2) {
|
||||
var extraTop = 3;
|
||||
var extraBottom = 0;
|
||||
} else {
|
||||
var extraTop = 0;
|
||||
var extraBottom = 3;
|
||||
}
|
||||
|
||||
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
|
||||
$(obj).popover("hide");
|
||||
} else {
|
||||
$(pop).on("mouseleave",function(event){
|
||||
$(obj).popover("hide");
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
var stateInfos=$(".stateInfoVal");
|
||||
for(var i=0;i<stateInfos.length;i++){
|
||||
var infoVal=$(stateInfos[i]).text().trim();
|
||||
if(infoVal.length>25){
|
||||
$(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
|
||||
}else{
|
||||
$(stateInfos[i]).text(infoVal);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user