检索日期限制

l
Tuzki 2 years ago
parent 91ad5b45ff
commit 9ac866b440
  1. 18
      src/main/webapp/html/back/shopStatistics/shopStatistics.html

@ -72,11 +72,13 @@
// 渲染
laydate.render({
elem: '#startDate',
max: -1
max: -1,
showBottom: false
});
laydate.render({
elem: '#endDate',
max: -1
max: -1,
showBottom: false
});
// 获取当前日期
@ -129,6 +131,14 @@
};
//点击搜索按钮
$('#search').on('click', function() {
var form = layui.form;
if ($("#startDate")[0].value == ''){
$("#startDate").val(yyyymmdd);
}
if ($("#endDate")[0].value == ''){
$("#endDate").val(yyyymmdd);
}
form.render('select');
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
@ -137,8 +147,8 @@
$('#reset').on('click', function() {
var form = layui.form;
$("#name").val("");
$("#startDate").val("");
$("#endDate").val("");
$("#startDate").val(yyyymmdd);
$("#endDate").val(yyyymmdd);
form.render('select');
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';

Loading…
Cancel
Save