diff --git a/static/js/project/bidding/biddingList.js b/static/js/project/bidding/biddingList.js index 6fec5db..3e0c7bb 100644 --- a/static/js/project/bidding/biddingList.js +++ b/static/js/project/bidding/biddingList.js @@ -66,33 +66,33 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT tools.getWebConfig(); $("#signStartTimeStr").datetime({ - type:"date", - value:[2019,9,31], - success:function(res){ + type: "date", + value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], + success: function (res) { console.log(res) } }) $("#signEndTimeStr").datetime({ - type:"date", - value:[2019,9,31], - success:function(res){ + type: "date", + value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], + success: function (res) { console.log(res) } }) $("#auctionStartTimeStr").datetime({ - type:"date", - value:[2019,9,31], - success:function(res){ + type: "date", + value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], + success: function (res) { console.log(res) } }) $("#endTimeStr").datetime({ - type:"date", - value:[2019,9,31], - success:function(res){ + type: "date", + value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], + success: function (res) { console.log(res) } }) @@ -210,6 +210,7 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT $("#secondDept div").attr("class","auction_hall_table_tab auction_loc"); if(id == '' && secondDeptId == ''){ $('#locInfoSecondall').addClass('auction_hall_table_tab_select'); + module.data.deptId = $('#deptLocationContent div.auction_hall_table_tab_select').attr("data"); }else{ $('#locInfoall'+id).addClass('auction_hall_table_tab_select'); module.data.deptId = secondDeptId; @@ -229,6 +230,10 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT } typeCheck = function(id,projectNumber){ + if(projectNumber==undefined){ + // projectNumber为undefined时,置空(直接传递给后台接口导致搜索问题) + projectNumber = ""; + } module.data.projectNumber = projectNumber;//标的物类型ID document.getElementById('standardTypeAll').className = 'auction_hall_table_tab'; if(id == ''){ diff --git a/static/js/project/listingItems/itemsList.js b/static/js/project/listingItems/itemsList.js index 250f0e1..b30dbfe 100644 --- a/static/js/project/listingItems/itemsList.js +++ b/static/js/project/listingItems/itemsList.js @@ -219,6 +219,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi $("#secondDept div").attr("class", "auction_hall_table_tab auction_loc"); if (id == '' && secondDeptId == '') { $('#locInfoSecondall').addClass('auction_hall_table_tab_select'); + module.data.deptId = $('#deptLocationContent div.auction_hall_table_tab_select').attr("data"); } else { $('#locInfoall' + id).addClass('auction_hall_table_tab_select'); module.data.deptId = secondDeptId; @@ -256,6 +257,10 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi } typeCheck = function (id, projectNumber) { + if(projectNumber==undefined){ + // projectNumber为undefined时,置空(直接传递给后台接口导致搜索问题) + projectNumber = ""; + } module.data.projectNumber = projectNumber;//标的物类型ID document.getElementById('standardTypeAll').className = 'auction_hall_table_tab'; if (id == '') { diff --git a/view/bidding/biddingList.html b/view/bidding/biddingList.html index d90d612..7be3707 100644 --- a/view/bidding/biddingList.html +++ b/view/bidding/biddingList.html @@ -136,9 +136,9 @@