修复搜索栏重置时筛选框里的input不重置的问题

This commit is contained in:
chenjinsong
2018-06-15 13:54:47 +08:00
parent b6cf88a64f
commit 5343567e33
6 changed files with 21 additions and 10 deletions

View File

@@ -57,9 +57,8 @@ public class DnsLogController extends BaseController {
}
model.addAttribute("page", page);
}
} catch (JsonSyntaxException e) {
logger.info("查询失败");
e.printStackTrace();
} catch (Exception e) {
logger.error("查询失败", e);
}
return "/log/ntc/dnsList";

View File

@@ -57,9 +57,8 @@ public class HttpLogController extends BaseController {
}
model.addAttribute("page", page);
}
} catch (JsonSyntaxException e) {
logger.info("查询失败");
e.printStackTrace();
} catch (Exception e) {
logger.error("查询失败", e);
}
return "/log/ntc/httpList";

View File

@@ -48,7 +48,12 @@ public class IpLogController extends BaseController {
// } catch (IOException e) {
// e.printStackTrace();
// }
try {
Thread.sleep(20000);
} catch (InterruptedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
Gson gson = new GsonBuilder().create();
try {
@@ -62,9 +67,8 @@ public class IpLogController extends BaseController {
}
model.addAttribute("page", page);
}
} catch (JsonSyntaxException e) {
logger.info("查询失败");
e.printStackTrace();
} catch (Exception e) {
logger.error("查询失败", e);
}
return "/log/ntc/ipList";

View File

@@ -15,6 +15,9 @@
$(this).find("option:first").attr("selected",true);
});
$(".Wdate").attr("value",'');
$(':input','#searchForm')
.not(':button,:submit,:reset,:hidden')
.attr("value",'');
$("#searchForm")[0].reset();
});
//筛选功能

View File

@@ -15,6 +15,9 @@
$(this).find("option:first").attr("selected",true);
});
$(".Wdate").attr("value",'');
$(':input','#searchForm')
.not(':button,:submit,:reset,:hidden')
.attr("value",'');
$("#searchForm")[0].reset();
});
//筛选功能

View File

@@ -15,6 +15,9 @@
$(this).find("option:first").attr("selected",true);
});
$(".Wdate").attr("value",'');
$(':input','#searchForm')
.not(':button,:submit,:reset,:hidden')
.attr("value",'');
$("#searchForm")[0].reset();
});
//筛选功能