switchIpInfo初始化提至common.js
去掉所有list界面的分类、标签、性质的末尾逗号
This commit is contained in:
@@ -30,7 +30,6 @@ import com.nis.web.controller.BaseController;
|
||||
@RequestMapping("${adminPath}/ntc/av")
|
||||
public class AvContentController extends BaseController {
|
||||
|
||||
|
||||
//音视频VOIP配置新增界面
|
||||
@RequestMapping(value = {"/voipForm"})
|
||||
public String voipFrom(Model model,HttpServletRequest request,HttpServletResponse response,String ids,@ModelAttribute("cfg")CfgIndexInfo cfg){
|
||||
@@ -117,4 +116,19 @@ public class AvContentController extends BaseController {
|
||||
return voipAndAccountInfoMap;
|
||||
}
|
||||
|
||||
//视频文本内容配置列表
|
||||
@RequestMapping(value = {"/contIpList"})
|
||||
public String contIpList(Model model,HttpServletRequest request,HttpServletResponse response,@ModelAttribute("cfg")CfgIndexInfo entity){
|
||||
if(entity.getVoipIp()== null){
|
||||
entity.setVoipIp(new AvVoipIpCfg());
|
||||
}
|
||||
if(entity.getVoipAccount()== null){
|
||||
entity.setVoipAccount(new AvVoipAccountCfg());
|
||||
}
|
||||
Page<CfgIndexInfo> page = avContentCfgService.findPage(new Page<CfgIndexInfo>(request, response,"r"), entity);
|
||||
model.addAttribute("page", page);
|
||||
initPageCondition(model);
|
||||
return "/cfg/av/voip/voipList";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -370,26 +370,32 @@
|
||||
<c:if test="${cfg.isAreaEffective==1}"><spring:message code="yes"/></c:if>
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(cfg.classify,',')}" var="classifyId">
|
||||
<c:forEach items="${fn:split(cfg.classify,',')}" var="classifyId" varStatus="status">
|
||||
<c:forEach items="${fls}" var="fl">
|
||||
<c:if test="${classifyId eq fn:trim(fl.serviceDictId)}">
|
||||
${fl.itemValue},
|
||||
${fl.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(cfg.classify,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
${classifyName[status]}
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(cfg.attribute,',')}" var="attributeId">
|
||||
<c:forEach items="${fn:split(cfg.attribute,',')}" var="attributeId" varStatus="status">
|
||||
<c:forEach items="${xzs}" var="xz">
|
||||
<c:if test="${attributeId eq fn:trim(xz.serviceDictId)}">${xz.itemValue},</c:if>
|
||||
<c:if test="${attributeId eq fn:trim(xz.serviceDictId)}">
|
||||
${xz.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(cfg.attribute,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(cfg.lable,',')}" var="lableId">
|
||||
<c:forEach items="${fn:split(cfg.lable,',')}" var="lableId" varStatus="status">
|
||||
<c:forEach items="${lables}" var="lable">
|
||||
<c:if test="${lableId eq fn:trim(lable.serviceDictId)}">${lable.itemValue},</c:if>
|
||||
<c:if test="${lableId eq fn:trim(lable.serviceDictId)}">
|
||||
${lable.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(cfg.lable,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</td>
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
<head>
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<!-- BEGIN THEME GLOBAL STYLES -->
|
||||
<link href="${pageContext.request.contextPath}/static/global/css/components.css" rel="stylesheet" id="style_components" type="text/css" />
|
||||
<script src="${pageContext.request.contextPath}/static/global/scripts/common.js" type="text/javascript"></script>
|
||||
<style type="text/css">
|
||||
.boxSolid{
|
||||
border:1px solid #eeeeee
|
||||
@@ -13,19 +11,6 @@ border:1px solid #eeeeee
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$("select[name$='ipType']").each(function(){
|
||||
switchIpInfo(this,"ipType");
|
||||
})
|
||||
$("select[name$='ipType']").on("change",function(){
|
||||
switchIpInfo(this,"ipType");
|
||||
});
|
||||
$("select[name$='ipPattern']").on("change",function(){
|
||||
switchIpInfo(this,"ipPattern");
|
||||
});
|
||||
$("select[name$='portPattern']").on("change",function(){
|
||||
switchIpInfo(this,"portPattern");
|
||||
});
|
||||
|
||||
areaControlInit();
|
||||
$("input[name='isAreaEffective']").on('change',function(){
|
||||
var val=$(this).val();
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
html+="</div>";
|
||||
html+="<div class='col-md-4'>";
|
||||
html+="<div class='form-group'>";
|
||||
html+="<label><spring:message code='strong_string'/>:</label>";
|
||||
html+="<label><spring:message code='district'/>:</label>";
|
||||
html+="<label>"
|
||||
html+=item.district;
|
||||
html+="</label>";
|
||||
@@ -655,26 +655,32 @@
|
||||
</td>
|
||||
<td>${indexCfg.requestName }</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(indexCfg.classify,',')}" var="classifyId">
|
||||
<c:forEach items="${fls}" var="fl">
|
||||
<c:forEach items="${fn:split(indexCfg.classify,',')}" var="classifyId" varStatus="status">
|
||||
<c:forEach items="${fls}" var="fl" >
|
||||
<c:if test="${classifyId eq fn:trim(fl.serviceDictId)}">
|
||||
${fl.itemValue},
|
||||
${fl.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(indexCfg.classify,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
${classifyName[status]}
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(indexCfg.attribute,',')}" var="attributeId">
|
||||
<c:forEach items="${fn:split(indexCfg.attribute,',')}" var="attributeId" varStatus="status">
|
||||
<c:forEach items="${xzs}" var="xz">
|
||||
<c:if test="${attributeId eq fn:trim(xz.serviceDictId)}">${xz.itemValue},</c:if>
|
||||
<c:if test="${attributeId eq fn:trim(xz.serviceDictId)}">
|
||||
${xz.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(indexCfg.attribute,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(indexCfg.lable,',')}" var="lableId">
|
||||
<c:forEach items="${fn:split(indexCfg.lable,',')}" var="lableId" varStatus="status">
|
||||
<c:forEach items="${lables}" var="lable">
|
||||
<c:if test="${lableId eq fn:trim(lable.serviceDictId)}">${lable.itemValue},</c:if>
|
||||
<c:if test="${lableId eq fn:trim(lable.serviceDictId)}">
|
||||
${lable.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(indexCfg.lable,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</td>
|
||||
|
||||
@@ -325,26 +325,32 @@
|
||||
</td>
|
||||
<td>${cfg.requestName }</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(cfg.classify,',')}" var="classifyId">
|
||||
<c:forEach items="${fn:split(cfg.classify,',')}" var="classifyId" varStatus="status">
|
||||
<c:forEach items="${fls}" var="fl">
|
||||
<c:if test="${classifyId eq fn:trim(fl.serviceDictId)}">
|
||||
${fl.itemValue},
|
||||
${fl.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(cfg.classify,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
${classifyName[status]}
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(cfg.attribute,',')}" var="attributeId">
|
||||
<c:forEach items="${fn:split(cfg.attribute,',')}" var="attributeId" varStatus="status">
|
||||
<c:forEach items="${xzs}" var="xz">
|
||||
<c:if test="${attributeId eq fn:trim(xz.serviceDictId)}">${xz.itemValue},</c:if>
|
||||
<c:if test="${attributeId eq fn:trim(xz.serviceDictId)}">
|
||||
${xz.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(cfg.attribute,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(cfg.lable,',')}" var="lableId">
|
||||
<c:forEach items="${fn:split(cfg.lable,',')}" var="lableId" varStatus="status">
|
||||
<c:forEach items="${lables}" var="lable">
|
||||
<c:if test="${lableId eq fn:trim(lable.serviceDictId)}">${lable.itemValue},</c:if>
|
||||
<c:if test="${lableId eq fn:trim(lable.serviceDictId)}">
|
||||
${lable.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(cfg.lable,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</td>
|
||||
|
||||
@@ -310,26 +310,32 @@
|
||||
<td><fmt:formatDate value="${dnsIpCfg.auditTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td> --%>
|
||||
<td>${dnsIpCfg.request.requestTitle }</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(dnsIpCfg.classify,',')}" var="classifyId">
|
||||
<c:forEach items="${fn:split(dnsIpCfg.classify,',')}" var="classifyId" varStatus="status">
|
||||
<c:forEach items="${fls}" var="fl">
|
||||
<c:if test="${fn:trim(fl.serviceDictId) eq classifyId}">
|
||||
${fl.itemValue},
|
||||
<c:if test="${fn:trim(fl.serviceDictId) eq classify}">
|
||||
${fl.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(dnsIpCfg.classify,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
${classifyName[status]}
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(dnsIpCfg.attribute,',')}" var="attributeId">
|
||||
<c:forEach items="${fn:split(dnsIpCfg.attribute,',')}" var="attributeId" varStatus="status">
|
||||
<c:forEach items="${xzs}" var="xz">
|
||||
<c:if test="${fn:trim(xz.serviceDictId) eq attributeId}">${xz.itemValue},</c:if>
|
||||
<c:if test="${fn:trim(xz.serviceDictId) eq attributeId}">
|
||||
${xz.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(dnsIpCfg.attribute,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(dnsIpCfg.lable,',')}" var="lableId">
|
||||
<c:forEach items="${fn:split(dnsIpCfg.lable,',')}" var="lableId" varStatus="status">
|
||||
<c:forEach items="${lables}" var="lable">
|
||||
<c:if test="${fn:trim(lable.serviceDictId) eq lableId}">${lable.itemValue},</c:if>
|
||||
<c:if test="${fn:trim(lable.serviceDictId) eq lableId}">
|
||||
${lable.itemValue}
|
||||
<c:if test="${status.index+1 ne fn:length(fn:split(dnsIpCfg.lable,','))}">,</c:if>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</td>
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
${classifyName[status]}
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(cfg.attribute,',')}" var="attributeId">
|
||||
|
||||
@@ -323,7 +323,6 @@
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
${classifyName[status]}
|
||||
</td>
|
||||
<td>
|
||||
<c:forEach items="${fn:split(cfg.attribute,',')}" var="attributeId">
|
||||
|
||||
@@ -7,6 +7,19 @@ $(function(){
|
||||
$("input.i-checks").prop("checked",false);
|
||||
}
|
||||
});
|
||||
|
||||
$("select[name$='ipType']").each(function(){
|
||||
switchIpInfo(this);
|
||||
})
|
||||
$("select[name$='ipType']").on("change",function(){
|
||||
switchIpInfo(this);
|
||||
});
|
||||
$("select[name$='ipPattern']").on("change",function(){
|
||||
switchIpInfo(this);
|
||||
});
|
||||
$("select[name$='portPattern']").on("change",function(){
|
||||
switchIpInfo(this);
|
||||
});
|
||||
});
|
||||
var switchIpType=function(obj){
|
||||
var type=$(obj).val();
|
||||
|
||||
Reference in New Issue
Block a user