2018-06-23 17:29:14 +08:00
|
|
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
|
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#cancel").on("click",function(){
|
|
|
|
|
window.history.back();
|
|
|
|
|
});
|
|
|
|
|
$(".action").on("change", function() {
|
|
|
|
|
$("#serviceId").val($(this).attr("serviceId"));
|
|
|
|
|
});
|
|
|
|
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
|
|
|
|
$("#cfgFrom").validate({
|
|
|
|
|
errorPlacement: function(error,element){
|
|
|
|
|
if($(element).parents().hasClass("tagsinput")){
|
|
|
|
|
$(element).parents(".col-md-6").next("div").append(error);
|
|
|
|
|
}else{
|
|
|
|
|
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
submitHandler: function(form){
|
|
|
|
|
var flag = true;
|
|
|
|
|
$("input[name$='cfgKeywords']").each(function(){
|
|
|
|
|
if($(this).val()==''){
|
|
|
|
|
$(this).parents(".form-group").find(
|
|
|
|
|
"div[for='"
|
|
|
|
|
+ $(this).attr("name")
|
|
|
|
|
+ "']").html("<label id=\"cfgKeywordsError\" class=\"error\">"+$("#keywordError").text()+"</label>");
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if(flag){
|
|
|
|
|
$("input[name$='exprType']").attr("disabled",false);
|
|
|
|
|
$("#appCode").val($("#specServiceIdId").val());
|
2018-06-30 13:42:59 +08:00
|
|
|
loading('onloading...');
|
2018-06-23 17:29:14 +08:00
|
|
|
form.submit();
|
2018-08-10 14:25:39 +08:00
|
|
|
}else{
|
|
|
|
|
return;
|
2018-06-23 17:29:14 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
errorContainer: "#messageBox",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div class="page-content">
|
2018-07-23 18:48:11 +08:00
|
|
|
<c:forEach items="${fns:getDictList('SPECIFIC_SERVICE_CFG_TYPE') }" var="dict">
|
|
|
|
|
<c:if test="${dict.itemValue eq 'social_app'}"><c:set var="app" value="${dict.itemCode}"/></c:if>
|
|
|
|
|
</c:forEach>
|
2018-06-23 17:29:14 +08:00
|
|
|
<span id="keywordError" style="display:none"><spring:message code="required"></spring:message></span>
|
|
|
|
|
<span id="tagsinputTip" style="display:none"><spring:message code="multiple_keywords_tip"></spring:message></span>
|
2018-07-03 14:21:52 +08:00
|
|
|
<h3 class="page-title">
|
|
|
|
|
<spring:message code="app_domain_config"></spring:message>
|
|
|
|
|
</h3>
|
2018-06-23 17:29:14 +08:00
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="portlet box blue">
|
|
|
|
|
<div class="portlet-title">
|
|
|
|
|
<div class="caption">
|
|
|
|
|
<i class="fa fa-gift"></i>
|
|
|
|
|
<c:if test="${empty _cfg.cfgId}"><spring:message code="add"></spring:message></c:if>
|
|
|
|
|
<c:if test="${not empty _cfg.cfgId}"><spring:message code="edit"></spring:message></c:if>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="portlet-body form">
|
|
|
|
|
<!-- BEGIN FORM-->
|
|
|
|
|
<form id="cfgFrom" action="${ctx}/app/saveAppDomainCfg" method="post" class="form-horizontal">
|
|
|
|
|
<input type="hidden" name="cfgId" value="${_cfg.cfgId}">
|
|
|
|
|
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
|
|
|
|
<input type="hidden" name="functionId" value="${_cfg.functionId}">
|
|
|
|
|
<input type="hidden" id="serviceId" name="serviceId" value="${_cfg.serviceId}">
|
|
|
|
|
<input type="hidden" id="appCode" name="appCode" value="${_cfg.appCode}">
|
2018-06-28 17:16:58 +08:00
|
|
|
<input type="hidden" id="behavCode" name="behavCode" value="${_cfg.behavCode}">
|
2018-06-23 17:29:14 +08:00
|
|
|
<!-- 配置域类型 -->
|
|
|
|
|
<c:forEach items="${regionList}" var="region">
|
|
|
|
|
<c:if test="${_cfg.functionId eq region.functionId}">
|
|
|
|
|
<input type="hidden" name="cfgType" value="${region.configRegionValue}">
|
|
|
|
|
<input type="hidden" name="cfgRegionCode" value="${region.configRegionCode}">
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
<div class="form-body">
|
|
|
|
|
<!-- desc and action -->
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-6">
|
2018-08-16 11:20:43 +08:00
|
|
|
<c:set var="spec_service_id"><spring:message code="social_app"/></c:set>
|
2018-06-23 17:29:14 +08:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="social_app"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<sys:treeselect id="specServiceId" name="specServiceId" value="${_cfg.specServiceId}"
|
|
|
|
|
labelName="parent.specServiceName"
|
|
|
|
|
labelValue="${empty _cfg.specServiceId?spec_service_id:fns:getBySpecServiceId(_cfg.specServiceId).specServiceName}"
|
2018-07-23 18:48:11 +08:00
|
|
|
title="${spec_service_id}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${app}" extId=""
|
2018-06-23 17:29:14 +08:00
|
|
|
cssClass="form-control required"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="parent.specServiceName"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group">
|
2018-07-02 10:53:21 +08:00
|
|
|
<label class="control-label col-md-3">
|
2018-06-23 17:29:14 +08:00
|
|
|
<spring:message code="config_describe" /></label>
|
|
|
|
|
<div class="col-md-6">
|
2018-08-10 14:25:39 +08:00
|
|
|
<input class="form-control" type="text"
|
2018-06-23 17:29:14 +08:00
|
|
|
name="cfgDesc"
|
|
|
|
|
value="${_cfg.cfgDesc}">
|
|
|
|
|
</div>
|
|
|
|
|
<div for="cfgDesc"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-09 17:57:13 +08:00
|
|
|
<div class="row">
|
2018-06-23 17:29:14 +08:00
|
|
|
<div class="row">
|
2018-08-10 14:25:39 +08:00
|
|
|
<div class="col-md-6 hidden">
|
2018-06-23 17:29:14 +08:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="action"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<c:forEach items="${serviceList}" var="service"
|
|
|
|
|
varStatus="satus">
|
|
|
|
|
<label class="radio-inline"> <c:if
|
|
|
|
|
test="${_cfg.functionId eq service.functionId}">
|
|
|
|
|
<input type="radio" name="action"
|
|
|
|
|
serviceId="${service.serviceId }"
|
|
|
|
|
protocolId="${service.protocolId }"
|
|
|
|
|
value="${service.action }" class="required action"
|
|
|
|
|
<c:if test="${_cfg.action==service.action || (_cfg.action==null && satus.index==0)}">checked</c:if>>
|
2018-07-02 10:01:51 +08:00
|
|
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
|
|
|
|
<c:if test="${dict.itemCode eq service.action }">
|
|
|
|
|
<spring:message code="${dict.itemValue }"/>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
2018-06-23 17:29:14 +08:00
|
|
|
</c:if>
|
|
|
|
|
</label>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="action"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font>
|
|
|
|
|
<spring:message code="domain" /></label>
|
|
|
|
|
<div class="col-md-6">
|
2018-07-02 10:53:21 +08:00
|
|
|
<input class="form-control required domainCheck" type="text"
|
2018-06-23 17:29:14 +08:00
|
|
|
name="domain"
|
|
|
|
|
value="${_cfg.domain}">
|
|
|
|
|
</div>
|
|
|
|
|
<div for="domain"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font>
|
|
|
|
|
<spring:message code="expression_type" /></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<label class="radio-inline"> <input type="radio"
|
|
|
|
|
name="exprType" value="1"
|
|
|
|
|
class="required"
|
|
|
|
|
<c:if test="${_cfg.exprType==1}">checked</c:if>> <spring:message
|
2018-07-14 14:54:32 +08:00
|
|
|
code="and_expression" />
|
2018-06-23 17:29:14 +08:00
|
|
|
</label> <label class="radio-inline"> <input type="radio"
|
|
|
|
|
name="exprType" value="0"
|
|
|
|
|
class="required"
|
|
|
|
|
<c:if test="${_cfg.exprType==0 || _cfg.exprType==null}">checked</c:if>>
|
2018-07-14 14:54:32 +08:00
|
|
|
<spring:message code="null_expression" />
|
2018-06-23 17:29:14 +08:00
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="exprType"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-16 15:13:18 +08:00
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group ">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="is_hex"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="isHex" value="1" class="required"
|
|
|
|
|
<c:if test="${_cfg.isHexbin eq 1}">checked</c:if>
|
|
|
|
|
><spring:message code="hex"/>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="isHex" value="0" class="required"
|
|
|
|
|
<c:if test="${_cfg.isHexbin ne 1}">checked</c:if>
|
|
|
|
|
><spring:message code="not_hex"/>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="isHex"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group ">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="is_case_insenstive"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="isCaseSenstive" value="1" class="required"
|
|
|
|
|
<c:if test="${_cfg.isHexbin==1}">checked</c:if>
|
|
|
|
|
><spring:message code="case_senstive"/>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="isCaseSenstive" value="0" class="required"
|
|
|
|
|
<c:if test="${_cfg.isHexbin ne 1}">checked</c:if>
|
|
|
|
|
><spring:message code="case_insenstive"/>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="isCaseInsenstive"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
2018-06-23 17:29:14 +08:00
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group ">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font>
|
|
|
|
|
<spring:message code="match_method" /></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<select name="matchMethod"
|
|
|
|
|
class="selectpicker select2 form-control required">
|
|
|
|
|
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
2018-08-09 17:57:13 +08:00
|
|
|
<option value="${matchMethodC.itemCode}" <c:if test="${_cfg.matchMethod==matchMethodC.itemCode || (_cfg.matchMethod==null && matchMethodC.itemCode==0)}">selected</c:if>><spring:message code="${matchMethodC.itemValue}"/></option>
|
2018-06-23 17:29:14 +08:00
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="matchMethod"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-09 17:57:13 +08:00
|
|
|
</div>
|
2018-08-16 15:13:18 +08:00
|
|
|
<div class="row hidden">
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font>
|
|
|
|
|
<spring:message code="whether_hexbinary" /></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<select name="isHexbin"
|
|
|
|
|
class="selectpicker select2 form-control required">
|
|
|
|
|
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
|
|
|
|
<option value="${isHexbinC.itemCode}" <c:if test="${_cfg.isHexbin==isHexbinC.itemCode || (_cfg.isHexbin==null && isHexbinC.itemCode==0)}">selected</c:if>><spring:message code="${isHexbinC.itemValue}"/></option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="isHexbin"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-10 14:25:39 +08:00
|
|
|
<input name="isAreaEffective" type="hidden" value="0">
|
|
|
|
|
<%-- <%@include file="/WEB-INF/include/form/areaInfo.jsp" %> --%>
|
|
|
|
|
<input name="requestId" value="0" type="hidden">
|
|
|
|
|
<%-- <%@include file="/WEB-INF/include/form/basicInfo.jsp" %> --%>
|
2018-06-23 17:29:14 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="form-actions">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-offset-3 col-md-8">
|
|
|
|
|
<button id="save" type="submit" class="btn green"><spring:message code="submit"/></button>
|
|
|
|
|
<button id="cancel" type="button" class="btn default"><spring:message code="cancel"/></button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6"> </div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<!-- END FORM-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|