Authored by mingdan.ge

联盟订单初始化页面默认查询当天

... ... @@ -48,12 +48,22 @@
<script type="text/javascript">
var checkedItems = [];
$(function () {
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth() + 1;
var day = date.getDate();
$('#beginTime').datetimebox('setValue', year + '-' + month + '-' + day);
$('#endTime').datetimebox('setValue', year + '-' + month + '-' + day+" 23:59:59");
var qups={};
qups.beginTime = parseInt(new Date($("#beginTime").datetimebox('getValue')).getTime() / 1000);
qups.endTime = parseInt(new Date($("#endTime").datetimebox('getValue')).getTime() / 1000);
$("#userOrdersTable").myDatagrid({
fit: true,
fitColumns: true,
<!-- idField: "id",-->
view: fileview,
nowrap: false,
queryParams: qups,
onCheckAll: addcheckItem,
onCheck: addcheckItem,
onUncheckAll: removeAllItem,
... ...