|
|
@@ -136,7 +136,16 @@
|
|
|
initTable();
|
|
|
|
|
|
//当点击查询按钮的时候执行
|
|
|
- $("#search").bind("click", initTable);
|
|
|
+ $("#search").bind("click", function(){
|
|
|
+ var start = $('#start').val();
|
|
|
+ var end = $('#end').val();
|
|
|
+ if(start > end){
|
|
|
+ layer.msg('开始时间不能大于结束时间');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ initTable();
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
function accountDel(id){
|
|
|
@@ -178,6 +187,19 @@
|
|
|
})
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ layui.use('laydate', function(){
|
|
|
+ var laydate = layui.laydate;
|
|
|
+ laydate.render({
|
|
|
+ elem: '#start'
|
|
|
+ ,type: 'date'
|
|
|
+ });
|
|
|
+
|
|
|
+ laydate.render({
|
|
|
+ elem: '#end'
|
|
|
+ ,type: 'date'
|
|
|
+ });
|
|
|
+ });
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|