(1)行为类型由userRegion改为加在behavCode字段上

(2)界面展示行为类型的name
(3)审核自定义域添加BEHAV_ID
This commit is contained in:
wangxin
2018-07-24 10:46:54 +08:00
parent cb650427e4
commit 272afe55f7
8 changed files with 62 additions and 10 deletions

View File

@@ -57,7 +57,7 @@ $(function(){
},
errorContainer: "#messageBox",
});
if('${_cfg.userRegion1}'){
if('${_cfg.behavCode}'){
ajaxBehaviour($("#specServiceIdId").val());
}
$("#specServiceIdId").on("change",function(){
@@ -75,11 +75,11 @@ var ajaxBehaviour=function(val){
success:function(data,textStatus){//处理返回结果
if(textStatus=="success"){
if(data.length>0){
var html='<select name="userRegion1" data-live-search="true" class="selectpicker form-control">'
var html='<select name="behavCode" data-live-search="true" class="selectpicker form-control">'
+'<option value=""><spring:message code="select"/></option>';
for(i=0;i<data.length;i++){
html+='<option value="'+data[i].code+'"';
if('${_cfg.userRegion1}'==data[i].code){
if('${_cfg.behavCode}'==data[i].code){
html+=" selected";
}
html+='>'+data[i].name+'</option>';
@@ -87,8 +87,8 @@ var ajaxBehaviour=function(val){
html+='</select>';
$("#behaviour").prev("label").removeClass("hidden");
$("#behaviour").html(html);
$("[name='userRegion1']").selectpicker("refresh");
$("[name='userRegion1']").selectpicker("render");
$("[name='behavCode']").selectpicker("refresh");
$("[name='behavCode']").selectpicker("render");
}else{
if($("#behaviour").prev("label").is(":visible")){
$("#behaviour").prev("label").addClass("hidden");
@@ -150,7 +150,7 @@ var delContent = function(contentClassName, addBtnClassName) {
<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}"> --%>
<input type="hidden" id="behavCode" name="behavCode" value="${_cfg.behavCode}">
<%-- <input type="hidden" id="behavCode" name="behavCode" value="${_cfg.behavCode}"> --%>
<input type="hidden" id="exprType" name="exprType" value="0">
<input type="hidden" id="matchMethod" name="matchMethod" value="3">
<input type="hidden" id="isHexbin" name="isHexbin" value="0">

View File

@@ -338,7 +338,7 @@
</td>
<td>${cfg.cfgDesc }</td>
<td>${cfg.appName }</td>
<td>${cfg.userRegion1 }</td>
<td>${cfg.behavName }</td>
<td>${cfg.ratelimit }</td>
<td>
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">