From 8f0f0946d15340a7bc917179a3224a915ad26b54 Mon Sep 17 00:00:00 2001 From: sunfengxiang Date: Wed, 18 Aug 2021 11:09:41 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9,=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/project/bidding/biddingList.js | 29 ++++++++++++--------- static/js/project/listingItems/itemsList.js | 5 ++++ view/bidding/biddingList.html | 6 ++--- view/listingItems/itemsList.html | 4 +-- 4 files changed, 27 insertions(+), 17 deletions(-) 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 @@
@@ -154,7 +154,7 @@
diff --git a/view/listingItems/itemsList.html b/view/listingItems/itemsList.html index 06784e5..611e966 100644 --- a/view/listingItems/itemsList.html +++ b/view/listingItems/itemsList.html @@ -138,7 +138,7 @@
@@ -155,7 +155,7 @@