配置界面的Cfg Id检索条件 增加范围和in的检索方式

This commit is contained in:
shangguanyanfei
2019-04-11 11:26:39 +08:00
parent 04a94458ed
commit fc08261929
58 changed files with 844 additions and 106 deletions

View File

@@ -739,25 +739,25 @@ window.onload=function(){
$("div[class='content content5']").find("label:lt(1)").addClass("keyword-disinline");//page.css 关键词换行
})
// 配置id的搜索下拉框选择切换
if ($("#searchForm #seltype").val() == 'compileId') {
$("#searchForm #intype").addClass("number");
if ($("#searchForm #seltype").val() == 'compileIdNew') {
$("#searchForm #intype").addClass("compileIdCheck");
} else {
$("#searchForm #intype").removeClass("number");
$("#searchForm #intype").removeClass("compileIdCheck");
}
// reset时去掉number
$("#resetBtn").on("click", function() {
if ($("#searchForm #seltype").val() == 'compileId') {
$("#searchForm #intype").addClass("number");
if ($("#searchForm #seltype").val() == 'compileIdNew') {
$("#searchForm #intype").addClass("compileIdCheck");
} else {
$("#searchForm #intype").removeClass("number");
$("#searchForm #intype").removeClass("compileIdCheck");
}
});
// 切换时为compileId加上number
$("#searchForm #seltype").on("change", function() {
if ($("#searchForm #seltype").val() == 'compileId') {
$("#searchForm #intype").addClass("number");
if ($("#searchForm #seltype").val() == 'compileIdNew') {
$("#searchForm #intype").addClass("compileIdCheck");
} else {
$("#searchForm #intype").removeClass("number");
$("#searchForm #intype").removeClass("compileIdCheck");
}
});