Selaa lähdekoodia

bug修改,页面优化

master
sunfengxiang 3 vuotta sitten
vanhempi
commit
8f0f0946d1
4 muutettua tiedostoa jossa 27 lisäystä ja 17 poistoa
  1. +17
    -12
      static/js/project/bidding/biddingList.js
  2. +5
    -0
      static/js/project/listingItems/itemsList.js
  3. +3
    -3
      view/bidding/biddingList.html
  4. +2
    -2
      view/listingItems/itemsList.html

+ 17
- 12
static/js/project/bidding/biddingList.js Näytä tiedosto

@@ -66,33 +66,33 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT
tools.getWebConfig(); tools.getWebConfig();


$("#signStartTimeStr").datetime({ $("#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) console.log(res)
} }
}) })


$("#signEndTimeStr").datetime({ $("#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) console.log(res)
} }
}) })


$("#auctionStartTimeStr").datetime({ $("#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) console.log(res)
} }
}) })


$("#endTimeStr").datetime({ $("#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) 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"); $("#secondDept div").attr("class","auction_hall_table_tab auction_loc");
if(id == '' && secondDeptId == ''){ if(id == '' && secondDeptId == ''){
$('#locInfoSecondall').addClass('auction_hall_table_tab_select'); $('#locInfoSecondall').addClass('auction_hall_table_tab_select');
module.data.deptId = $('#deptLocationContent div.auction_hall_table_tab_select').attr("data");
}else{ }else{
$('#locInfoall'+id).addClass('auction_hall_table_tab_select'); $('#locInfoall'+id).addClass('auction_hall_table_tab_select');
module.data.deptId = secondDeptId; module.data.deptId = secondDeptId;
@@ -229,6 +230,10 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT
} }


typeCheck = function(id,projectNumber){ typeCheck = function(id,projectNumber){
if(projectNumber==undefined){
// projectNumber为undefined时,置空(直接传递给后台接口导致搜索问题)
projectNumber = "";
}
module.data.projectNumber = projectNumber;//标的物类型ID module.data.projectNumber = projectNumber;//标的物类型ID
document.getElementById('standardTypeAll').className = 'auction_hall_table_tab'; document.getElementById('standardTypeAll').className = 'auction_hall_table_tab';
if(id == ''){ if(id == ''){


+ 5
- 0
static/js/project/listingItems/itemsList.js Näytä tiedosto

@@ -219,6 +219,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi
$("#secondDept div").attr("class", "auction_hall_table_tab auction_loc"); $("#secondDept div").attr("class", "auction_hall_table_tab auction_loc");
if (id == '' && secondDeptId == '') { if (id == '' && secondDeptId == '') {
$('#locInfoSecondall').addClass('auction_hall_table_tab_select'); $('#locInfoSecondall').addClass('auction_hall_table_tab_select');
module.data.deptId = $('#deptLocationContent div.auction_hall_table_tab_select').attr("data");
} else { } else {
$('#locInfoall' + id).addClass('auction_hall_table_tab_select'); $('#locInfoall' + id).addClass('auction_hall_table_tab_select');
module.data.deptId = secondDeptId; module.data.deptId = secondDeptId;
@@ -256,6 +257,10 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi
} }


typeCheck = function (id, projectNumber) { typeCheck = function (id, projectNumber) {
if(projectNumber==undefined){
// projectNumber为undefined时,置空(直接传递给后台接口导致搜索问题)
projectNumber = "";
}
module.data.projectNumber = projectNumber;//标的物类型ID module.data.projectNumber = projectNumber;//标的物类型ID
document.getElementById('standardTypeAll').className = 'auction_hall_table_tab'; document.getElementById('standardTypeAll').className = 'auction_hall_table_tab';
if (id == '') { if (id == '') {


+ 3
- 3
view/bidding/biddingList.html Näytä tiedosto

@@ -136,9 +136,9 @@
<td> <td>
<div class="auction_all_right2" id="auction_all_right_standard_type"> <div class="auction_all_right2" id="auction_all_right_standard_type">
<script id="deptTypeData" type="text/html"> <script id="deptTypeData" type="text/html">
<div class="auction_hall_table_tab auction_hall_table_tab_select" id="standardTypeAll">全部</div>
<div class="auction_hall_table_tab auction_hall_table_tab_select" onclick="typeCheck('')" id="standardTypeAll">全部</div>
{{each deptTypeList as value i}} {{each deptTypeList as value i}}
<div class="auction_hall_table_tab" id="standardType{{value.dictSort}}" onclick="typeCheck({{value.dictSort}},{{value.dictCode}})">{{value.dictLabel}}</div>
<div class="auction_hall_table_tab" id="standardType{{value.dictSort}}" onclick="typeCheck({{value.dictSort}},{{value.dictValue}})">{{value.dictLabel}}</div>
{{/each}} {{/each}}
</script> </script>
<div class="auction_all_one2" id="deptTypeContent"></div> <div class="auction_all_one2" id="deptTypeContent"></div>
@@ -154,7 +154,7 @@
<div class="auction_all_right"> <div class="auction_all_right">
<script id="deptLocationData" type="text/html"> <script id="deptLocationData" type="text/html">
{{each deptLocationList as value i}} {{each deptLocationList as value i}}
<div class="auction_hall_table_tab auction_loc" id="locInfoall{{value.deptId}}" onclick="tabCheck({{value.deptId}})">{{value.deptName}}</div>
<div class="auction_hall_table_tab auction_loc" id="locInfoall{{value.deptId}}" data="{{value.deptId}}" onclick="tabCheck({{value.deptId}})">{{value.deptName}}</div>
{{/each}} {{/each}}
<div class="clear"></div> <div class="clear"></div>
</script> </script>


+ 2
- 2
view/listingItems/itemsList.html Näytä tiedosto

@@ -138,7 +138,7 @@
<script id="deptTypeData" type="text/html"> <script id="deptTypeData" type="text/html">
<div class="auction_hall_table_tab auction_hall_table_tab_select" onclick="typeCheck('')" id="standardTypeAll">全部</div> <div class="auction_hall_table_tab auction_hall_table_tab_select" onclick="typeCheck('')" id="standardTypeAll">全部</div>
{{each deptTypeList as value i}} {{each deptTypeList as value i}}
<div class="auction_hall_table_tab" id="standardType{{value.dictSort}}" onclick="typeCheck({{value.dictSort}},{{value.dictCode}})">{{value.dictLabel}}</div>
<div class="auction_hall_table_tab" id="standardType{{value.dictSort}}" onclick="typeCheck({{value.dictSort}},{{value.dictValue}})">{{value.dictLabel}}</div>
{{/each}} {{/each}}
</script> </script>
<div class="auction_all_one2" id="deptTypeContent"></div> <div class="auction_all_one2" id="deptTypeContent"></div>
@@ -155,7 +155,7 @@
<div class="auction_all_one" id="deptLocationContent"> <div class="auction_all_one" id="deptLocationContent">
<script id="deptLocationData" type="text/html"> <script id="deptLocationData" type="text/html">
{{each deptLocationList as value i}} {{each deptLocationList as value i}}
<div class="auction_hall_table_tab auction_loc" id="locInfoall{{value.deptId}}" onclick="tabCheck({{value.deptId}})">{{value.deptName}}</div>
<div class="auction_hall_table_tab auction_loc" id="locInfoall{{value.deptId}}" data="{{value.deptId}}" onclick="tabCheck({{value.deptId}})">{{value.deptName}}</div>
{{/each}} {{/each}}
<div class="clear"></div> <div class="clear"></div>
</script> </script>


Ladataan…
Peruuta
Tallenna