音视频文本去掉区域id的单独处理
增加表达式,默认匹配方式为子串匹配 voip列表字符串信息显示属性位置调整
This commit is contained in:
@@ -11,6 +11,9 @@ $(function(){
|
||||
$("select[name$='ipType']").each(function(){
|
||||
switchIpInfo(this);
|
||||
})
|
||||
$("select[name$='exprType']").each(function(){
|
||||
switchIpInfo(this);
|
||||
})
|
||||
$("select[name$='ipType']").on("change",function(){
|
||||
switchIpInfo(this);
|
||||
});
|
||||
@@ -206,6 +209,9 @@ $(function(){
|
||||
var objNamePrefix = $(this).attr("name").split("cfgKeywords")[0];
|
||||
var isTags = $(this).hasClass("tags");//有tags样式的关键字输入框才需处理
|
||||
if(typeof(tagsId)!=='undefined' && tagsId.indexOf("tags_")!=-1 && isTags){
|
||||
if($("input:radio[name='"+objNamePrefix+"exprType']").val()==1){
|
||||
$("select[name='"+objNamePrefix+"matchMethod']").find("option[value!=0]").attr("disabled",true);
|
||||
}
|
||||
//表单中如果有关键字内容可能输入多个关键字的情况,根据输入关键字个数确定表达式选中情况,不允许手动选中
|
||||
$("input:radio[name='"+objNamePrefix+"exprType']").attr("disabled",true);
|
||||
tagsInputSettings = tagsInputSettings+",#"+tagsId;
|
||||
@@ -271,9 +277,27 @@ $(function(){
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("input[name$='exprType']").on("change",function(){
|
||||
setDefaultMatchMethod(this);
|
||||
});
|
||||
$("input[name$='exprType']:checked").each(function(){
|
||||
setDefaultMatchMethod(this);
|
||||
});
|
||||
|
||||
});
|
||||
//与表达式时,只允许为子串匹配
|
||||
var setDefaultMatchMethod=function (obj){
|
||||
var exprType = $(obj).val();
|
||||
if(exprType == 1){
|
||||
$(obj).parents(".row").parent(".row").find("select[name$='matchMethod']").find("option").removeAttr("selected");
|
||||
$(obj).parents(".row").parent(".row").find("select[name$='matchMethod']").find("option[value=0]").attr("selected","selected");
|
||||
$(obj).parents(".row").parent(".row").find("select[name$='matchMethod']").find("option[value!=0]").attr("disabled",true);
|
||||
$(obj).parents(".row").parent(".row").find("select[name$='matchMethod']").selectpicker("refresh");
|
||||
}else{
|
||||
$(obj).parents(".row").parent(".row").find("select[name$='matchMethod']").find("option").removeAttr("disabled");
|
||||
$(obj).parents(".row").parent(".row").find("select[name$='matchMethod']").selectpicker("refresh");
|
||||
}
|
||||
}
|
||||
var switchIpType=function(obj){
|
||||
var type=$(obj).val();
|
||||
var row=$(obj).parents('.row');
|
||||
@@ -650,8 +674,14 @@ function isLicit(str,regStr) {//判断是否为合格字符 //s 包括空格回
|
||||
function exprTypeChecked(objNamePrefix,size){
|
||||
if(size>1) {
|
||||
$("input:radio[name='"+objNamePrefix+"exprType'][value=1]").prop("checked",true); //选中是
|
||||
$("select[name='"+objNamePrefix+"matchMethod']").find("option").removeAttr("selected",false);
|
||||
$("select[name='"+objNamePrefix+"matchMethod']").find("option[value=0]").attr("selected",true);
|
||||
$("select[name='"+objNamePrefix+"matchMethod']").find("option[value!=0]").attr("disabled",true);
|
||||
$("select[name='"+objNamePrefix+"matchMethod']").selectpicker("refresh");
|
||||
}else {
|
||||
$("input:radio[name='"+objNamePrefix+"exprType'][value=0]").prop("checked",true); //选中否
|
||||
$("select[name='"+objNamePrefix+"matchMethod']").find("option").removeAttr("disabled");
|
||||
$("select[name='"+objNamePrefix+"matchMethod']").selectpicker("refresh");
|
||||
}
|
||||
}
|
||||
function validateDataIsLicit(){
|
||||
|
||||
Reference in New Issue
Block a user