加入是否有效查询条件
This commit is contained in:
@@ -471,8 +471,13 @@ $(function(){
|
||||
if($("#actionSelect").find("option").length < 3){
|
||||
$("#actionSelect").find("option[value='']").remove();
|
||||
}
|
||||
$("#isValid").selectpicker("hide");// 隐藏下拉框
|
||||
}else if($("#seltype").val() == "isValid"){
|
||||
$("#intype").hide();// 隐藏输入框
|
||||
$("#actionSelect").selectpicker("hide");// 隐藏下拉框
|
||||
}else{
|
||||
$("#actionSelect").selectpicker("hide");// 隐藏下拉框
|
||||
$("#isValid").selectpicker("hide");// 隐藏下拉框
|
||||
}
|
||||
// 改变
|
||||
$("#seltype").on("change",function() {
|
||||
@@ -480,17 +485,28 @@ $(function(){
|
||||
if($("#actionSelect").find("option").length < 3){
|
||||
$("#actionSelect").find("option[value='']").remove();
|
||||
}
|
||||
|
||||
$("#intype").hide(); // 隐藏输入框
|
||||
$("#intype").val("");// 清空input条件
|
||||
$("#actionSelect").find("option").removeAttr("selected",false);
|
||||
$("#actionSelect").selectpicker("refresh");
|
||||
$("#actionSelect").selectpicker("show");// 显示下拉框
|
||||
$("#isValid").find("option:first").attr("selected",true);// 清空action条件
|
||||
$("#isValid").selectpicker("hide");// 隐藏下拉框
|
||||
}else if($(this).val() == "isValid"){
|
||||
$("#intype").hide();// 隐藏输入框
|
||||
$("#intype").val("");// 清空input条件
|
||||
$("#isValid").find("option").removeAttr("selected",false);
|
||||
$("#isValid").selectpicker("refresh");
|
||||
$("#isValid").selectpicker("show");// 显示下拉框
|
||||
$("#actionSelect").find("option:first").attr("selected",true);// 清空action条件
|
||||
$("#actionSelect").selectpicker("hide");// 隐藏下拉框
|
||||
}else{
|
||||
$("#intype").show(); // 显示输入框
|
||||
$("#intype").val("");// 清空input条件
|
||||
$("#actionSelect").find("option:first").attr("selected",true);// 清空action条件
|
||||
$("#actionSelect").selectpicker("hide");// 隐藏下拉框
|
||||
$("#isValid").find("option:first").attr("selected",true);// 清空action条件
|
||||
$("#isValid").selectpicker("hide");// 隐藏下拉框
|
||||
}
|
||||
});
|
||||
|
||||
@@ -502,10 +518,19 @@ $(function(){
|
||||
$("#actionSelect").selectpicker("show");
|
||||
return false;
|
||||
}
|
||||
if($("#seltype").find("option:first").val() == "isValid"){
|
||||
$("#intype").hide();
|
||||
$("#isValid").selectpicker("show");
|
||||
return false;
|
||||
}
|
||||
if($("#seltype").val() == "action"){
|
||||
$("#intype").show();
|
||||
$("#intype").attr("placeholder",$.validator.messages.input+$("#seltype").find("option:first").text());
|
||||
$("#actionSelect").selectpicker("hide");
|
||||
}else if($("#seltype").val() == "isValid"){
|
||||
$("#intype").show();
|
||||
$("#intype").attr("placeholder",$.validator.messages.input+$("#seltype").find("option:first").text());
|
||||
$("#isValid").selectpicker("hide");
|
||||
}else{
|
||||
$("#intype").attr("placeholder",$.validator.messages.input+$("#seltype").find("option:first").text());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user