Pārlūkot izejas kodu

bug修改,页面优化

master
sunfengxiang pirms 3 gadiem
vecāks
revīzija
8f0f0946d1
4 mainītis faili ar 27 papildinājumiem un 17 dzēšanām
  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 Parādīt failu

@@ -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 == ''){


+ 5
- 0
static/js/project/listingItems/itemsList.js Parādīt failu

@@ -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 == '') {


+ 3
- 3
view/bidding/biddingList.html Parādīt failu

@@ -136,9 +136,9 @@
<td>
<div class="auction_all_right2" id="auction_all_right_standard_type">
<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}}
<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}}
</script>
<div class="auction_all_one2" id="deptTypeContent"></div>
@@ -154,7 +154,7 @@
<div class="auction_all_right">
<script id="deptLocationData" type="text/html">
{{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}}
<div class="clear"></div>
</script>


+ 2
- 2
view/listingItems/itemsList.html Parādīt failu

@@ -138,7 +138,7 @@
<script id="deptTypeData" type="text/html">
<div class="auction_hall_table_tab auction_hall_table_tab_select" onclick="typeCheck('')" id="standardTypeAll">全部</div>
{{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}}
</script>
<div class="auction_all_one2" id="deptTypeContent"></div>
@@ -155,7 +155,7 @@
<div class="auction_all_one" id="deptLocationContent">
<script id="deptLocationData" type="text/html">
{{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}}
<div class="clear"></div>
</script>


Notiek ielāde…
Atcelt
Saglabāt