|
|
@@ -124,7 +124,7 @@
|
|
124
|
124
|
//搜索事件
|
|
125
|
125
|
$(".sear").click(function() {
|
|
126
|
126
|
|
|
127
|
|
- if($('#startTime').val()= '') {
|
|
|
127
|
+ if(!$('#startTime').val()) {
|
|
128
|
128
|
layer.confirm('请选择时间!', {
|
|
129
|
129
|
btn: ['确定']
|
|
130
|
130
|
});
|
|
|
@@ -189,8 +189,8 @@
|
|
189
|
189
|
async: true,
|
|
190
|
190
|
dataType: 'json',
|
|
191
|
191
|
data: {
|
|
192
|
|
- stime: $('#startTime').val() && $('#startTime').val().split('~')[0],
|
|
193
|
|
- endtime: $('#startTime').val() && $('#startTime').val().split('~')[1],
|
|
|
192
|
+ stime: $('#startTime').val() && $('#startTime').val().split('~')[0].replace(/(^\s*)|(\s*$)/g, ""),
|
|
|
193
|
+ endtime: $('#startTime').val() && $('#startTime').val().split('~')[1].replace(/(^\s*)|(\s*$)/g, ""),
|
|
194
|
194
|
usercode: $("#zuoxi option:selected").val(),
|
|
195
|
195
|
token: $.cookie("token")
|
|
196
|
196
|
},
|