(1)app策略form表单补充isHexbin,exprType,matchMethod

(2)基础协议修复下发时表达式类型为1
This commit is contained in:
wangxin
2018-09-26 20:17:52 +08:00
parent 4d78efcc9d
commit 6efb85246c
2 changed files with 7 additions and 4 deletions

View File

@@ -187,6 +187,9 @@ var delContent = function(contentClassName, addBtnClassName) {
<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="exprType" name="exprType" value="0">
<input type="hidden" id="matchMethod" name="matchMethod" value="0">
<input type="hidden" id="isHexbin" name="isHexbin" value="0">
<div class="form-body">
<!-- desc and action -->

View File

@@ -94,10 +94,10 @@ $(function(){
$(".disabled").each(function(){
$(this).remove();
});
$("input[name$='exprType']").attr("disabled",false);
if($("[name='behavCode']")&&$("[name='behavCode']").val()!=""){
$("input[name$='exprType']").val(1);
}
$("input[name='exprType']").attr("disabled",false);
//if($("[name='behavCode']")&&$("[name='behavCode']").val()!=""){
// $("input[name='exprType']").val(1);
//}
if($("input[name='ratelimit']").is(":hidden")){
$("input[name='ratelimit']").val("");
}