ip、字符串、增强字符串列表页搜索功能
This commit is contained in:
@@ -291,7 +291,7 @@
|
||||
AND ${page.alias}.IP_TYPE=#{ipType,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="srcIp != null and srcIp != ''">
|
||||
AND ${page.alias}.SRC_IP=#{srcIp,jdbcType=VARCHAR}
|
||||
AND ${page.alias}.SRC_IP like concat('%', #{srcIp,jdbcType=VARCHAR}, '%')
|
||||
</if>
|
||||
<if test="srcIpMask != null and srcIpMask != ''">
|
||||
AND ${page.alias}.SRC_IP_MASK=#{srcIpMask,jdbcType=VARCHAR}
|
||||
@@ -303,7 +303,7 @@
|
||||
AND ${page.alias}.SRC_PORT_MASK=#{srcPortMask,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="dstIp != null and dstIp !=''">
|
||||
AND ${page.alias}.DST_IP=#{dstIp,jdbcType=VARCHAR}
|
||||
AND ${page.alias}.DST_IP like concat('%', #{dstIp,jdbcType=VARCHAR}, '%')
|
||||
</if>
|
||||
<if test="dstIpMask != null and dstIpMask !=''">
|
||||
AND ${page.alias}.DST_IP_MASK=#{dstIpMask,jdbcType=VARCHAR}
|
||||
|
||||
@@ -5,6 +5,17 @@
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
//搜索框提示语初始化
|
||||
if("${cfg.keywords}"){
|
||||
$("#intype").val("${cfg.keywords}");
|
||||
} else if("${cfg.cfgDesc}"){
|
||||
$("#intype").val("${cfg.cfgDesc}");
|
||||
} else{
|
||||
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||
}
|
||||
$("#seltype").change(function(){
|
||||
$("#intype").attr("placeholder","<spring:message code='input'/> "+$(this).find("option:selected").text());
|
||||
});
|
||||
//筛选功能初始化
|
||||
filterActionInit();
|
||||
$("#isAudit").change(function(){
|
||||
@@ -24,6 +35,8 @@
|
||||
});
|
||||
//查询
|
||||
function page(n,s){
|
||||
$("#intype").attr("name",$("#seltype").val());
|
||||
|
||||
$("#pageNo").val(n);
|
||||
$("#pageSize").val(s);
|
||||
$("#searchForm").submit();
|
||||
@@ -81,8 +94,8 @@
|
||||
<div class="input-group">
|
||||
<div class="input-group-btn">
|
||||
|
||||
<form:select path="" class="selectpicker select2 input-small" >
|
||||
<form:option value="key_word"><spring:message code="key_word"></spring:message></form:option>
|
||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||
<form:option value="keywords"><spring:message code="key_word"></spring:message></form:option>
|
||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||
</form:select>
|
||||
|
||||
|
||||
@@ -5,8 +5,18 @@
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("seltype").on("click",function(){
|
||||
alert(2333)
|
||||
//搜索框提示语初始化
|
||||
if("${ipCfg.srcIp}"){
|
||||
$("#intype").val("${ipCfg.srcIp}");
|
||||
} else if("${ipCfg.dstIp}"){
|
||||
$("#intype").val("${ipCfg.dstIp}");
|
||||
} else if("${ipCfg.cfgDesc}"){
|
||||
$("#intype").val("${ipCfg.cfgDesc}");
|
||||
} else{
|
||||
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||
}
|
||||
$("#seltype").change(function(){
|
||||
$("#intype").attr("placeholder","<spring:message code='input'/> "+$(this).find("option:selected").text());
|
||||
});
|
||||
//筛选功能初始化
|
||||
filterActionInit();
|
||||
@@ -26,6 +36,7 @@
|
||||
});
|
||||
//查询
|
||||
function page(n,s){
|
||||
$("#intype").attr("name",$("#seltype").val());
|
||||
$("#pageNo").val(n);
|
||||
$("#pageSize").val(s);
|
||||
$("#searchForm").submit();
|
||||
@@ -80,7 +91,7 @@
|
||||
<div class="input-group">
|
||||
<div class="input-group-btn">
|
||||
|
||||
<form:select path="" class="selectpicker select2 input-small" >
|
||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||
<form:option value="srcIp"><spring:message code="client_ip"></spring:message></form:option>
|
||||
<form:option value="dstIp"><spring:message code="server_ip"></spring:message></form:option>
|
||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||
|
||||
@@ -5,6 +5,17 @@
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
//搜索框提示语初始化
|
||||
if("${cfg.cfgKeywords}"){
|
||||
$("#intype").val("${cfg.cfgKeywords}");
|
||||
} else if("${cfg.cfgDesc}"){
|
||||
$("#intype").val("${cfg.cfgDesc}");
|
||||
} else{
|
||||
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||
}
|
||||
$("#seltype").change(function(){
|
||||
$("#intype").attr("placeholder","<spring:message code='input'/> "+$(this).find("option:selected").text());
|
||||
});
|
||||
//筛选功能初始化
|
||||
filterActionInit();
|
||||
$("#isAudit").change(function(){
|
||||
@@ -24,6 +35,8 @@
|
||||
});
|
||||
//查询
|
||||
function page(n,s){
|
||||
$("#intype").attr("name",$("#seltype").val());
|
||||
|
||||
$("#pageNo").val(n);
|
||||
$("#pageSize").val(s);
|
||||
$("#searchForm").submit();
|
||||
@@ -80,8 +93,8 @@
|
||||
<div class="input-group">
|
||||
<div class="input-group-btn">
|
||||
|
||||
<form:select path="" class="selectpicker select2 input-small" >
|
||||
<form:option value="key_word"><spring:message code="key_word"></spring:message></form:option>
|
||||
<form:select path="seltype" class="selectpicker select2 input-small" >
|
||||
<form:option value="cfgKeywords"><spring:message code="key_word"></spring:message></form:option>
|
||||
<form:option value="cfgDesc"><spring:message code="config_describe"></spring:message></form:option>
|
||||
</form:select>
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ function checkNum(obj) {
|
||||
<c:if test="${2 eq ssi.serviceType }"><spring:message code="multi_domain"/></c:if>
|
||||
<c:if test="${3 eq ssi.serviceType }"><spring:message code="special_service"/></c:if>
|
||||
</td>
|
||||
<td>${ssi.creator.loginId }</td>
|
||||
<td>${ssi.creator.name }</td>
|
||||
<td><fmt:formatDate value="${ssi.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||
<td>${ssi.serviceDesc }</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user