|
@@ -45,6 +45,7 @@ $(function () {
|
|
|
}
|
|
|
}
|
|
|
function loadDate(pageNo) {
|
|
|
+ console.log(pageNo)
|
|
|
$('.loading').show();
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -113,7 +114,6 @@ $(function () {
|
|
|
$('.totalCount').html(`共${data.data.totalCount}条数据 ${thePageLength}页`)
|
|
|
var pageArr = [],
|
|
|
firstNo = 1,
|
|
|
- thePageNo=pageNo||1,
|
|
|
endNo = 5;
|
|
|
if (thePageNo > 3) {
|
|
|
firstNo = thePageNo - 2;
|
|
@@ -136,6 +136,7 @@ $(function () {
|
|
|
$('.pagePre').after(pageArr.join(''));
|
|
|
$('footer').show();
|
|
|
colFun();
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -253,25 +254,30 @@ $(function () {
|
|
|
if($(this).hasClass('active')){
|
|
|
$(this).removeClass('active');
|
|
|
dataList.sortType='';
|
|
|
- loadDate(1);
|
|
|
+ thePageNo=1
|
|
|
+ loadDate(thePageNo);
|
|
|
}else{
|
|
|
$('.colNumber').removeClass('active')
|
|
|
$(this).addClass('active');
|
|
|
dataList.sortType=0;
|
|
|
- loadDate(1);
|
|
|
+ thePageNo=1;
|
|
|
+ loadDate(thePageNo);
|
|
|
}
|
|
|
})
|
|
|
$('.sort .colNumber').click(function(){
|
|
|
if($(this).hasClass('active')){
|
|
|
$(this).removeClass('active');
|
|
|
dataList.sortType='';
|
|
|
- loadDate(1)
|
|
|
+ thePageNo=1;
|
|
|
+ loadDate(thePageNo);
|
|
|
}else{
|
|
|
$('.relTime').removeClass('active')
|
|
|
$(this).addClass('active');
|
|
|
dataList.sortType=1;
|
|
|
- loadDate(1)
|
|
|
+ thePageNo=1;
|
|
|
+ loadDate(thePageNo);
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
})
|