Commit 470ee9bf authored by 黄媛媛's avatar 黄媛媛

数据统计分页问题

parent 282a0630
......@@ -118,11 +118,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="count">
</el-pagination>
</div>
</div>
......@@ -172,13 +173,17 @@
},
change(val){
this.activeName=''
this.msg.pageIndex=1
this.getIntegraStatisticslList()
},
getIntegraStatisticslList(){
this.loading=true;
if(this.value!=''){
if(this.value!='' && this.value !=null ){
this.msg.StartDate = this.value[0];
this.msg.EndDate = this.value[1];
}else{
this.msg.StartDate = '';
this.msg.EndDate = '';
}
this.apipost("/api/Coupon/GetCouponStatisticslList", this.msg, res => {
this.loading=false;
......@@ -253,6 +258,7 @@
data.push(time2)
data.push(time1)
that.value = data;
this.msg.pageIndex=1
this.getIntegraStatisticslList()
},
......
......@@ -25,7 +25,7 @@
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="yyyy-MM-dd"
@change="change"
@change="change()"
align="right">
</el-date-picker>
</div>
......@@ -82,11 +82,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="count">
</el-pagination>
</div>
</div>
......@@ -99,7 +100,7 @@
return{
msg:{
pageIndex:1,
pageSize:20,
pageSize:15,
PlatformType:0,
StartDate:'',
EndDate:'',
......@@ -130,15 +131,19 @@
})
},
change(val){
this.activeName=''
change(){
this.activeName='',
this.msg.pageIndex=1,
this.getIntegraStatisticslList()
},
getIntegraStatisticslList(){
this.loading=true;
if(this.value!=''){
if(this.value!='' && this.value!=null){
this.msg.StartDate = this.value[0];
this.msg.EndDate = this.value[1];
}else{
this.msg.StartDate='';
this.msg.EndDate = ''
}
this.apipost("/api/Integral/GetIntegraStatisticslList", this.msg, res => {
this.loading=false;
......@@ -178,7 +183,7 @@
StartDate :this.msg.StartDate ,
EndDate :this.msg.EndDate,
}
msg = JSON.parse(JSON.stringify(msg));
msg = JSON.parse(JSON.stringify(msg));
this.GetLocalFile(
"/api/Integral/GetIntegralListToExcel",
msg,
......@@ -189,6 +194,7 @@
this.msg.PlatformType=0;
this.msg.StartDate='';
this.msg.EndDate='';
this.msg.pageIndex=1
this.value='';
this.activeName='';
this.getIntegraStatisticslList()
......@@ -214,6 +220,7 @@
data.push(time2)
data.push(time1)
that.value = data;
this.msg.pageIndex=1
this.getIntegraStatisticslList()
},
......
......@@ -9,7 +9,7 @@
<div class="content">
<div>
<el-select class="w100" @change="getList" style="margin-right: 10px;" v-model="msg.Source" size="small" placeholder="请选择">
<el-select class="w100" @change="msg.pageIndex=1,getList()" style="margin-right: 10px;" v-model="msg.Source" size="small" placeholder="请选择">
<el-option label="全部平台" :value="msg.Source"></el-option>
<el-option
v-for="item in options"
......@@ -21,12 +21,14 @@
<div class="searchInput" style="width:250px">
<el-input style="display:inline-block;width:225px;height:30px"
placeholder="请输入分销商名称或ID搜索"
v-model="msg.Name"
size="small"
clearable>
placeholder="请输入分销商名称或ID搜索"
v-model="msg.Name"
size="small"
@clear="msg.pageIndex=1,getList()"
@keyup.enter.native="msg.pageIndex=1,getList()"
clearable>
</el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
<span @click="msg.pageIndex=1,getList()" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div>
<span style="color: #92959B;margin-left: 35px;cursor: pointer;font-size: 15px;" @click="empty">清空筛选</span>
</div>
......@@ -106,6 +108,7 @@
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="count">
</el-pagination>
</div>
......
......@@ -143,12 +143,12 @@
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
:current-page.sync="msg.pageIndex"
layout="prev, pager, next"
:total="count">
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
:current-page.sync="msg.pageIndex"
layout="prev, pager, next"
:total="count">
</el-pagination>
</div>
</div>
......@@ -225,12 +225,16 @@
},
change(val){
this.activeName=''
this.msg.pageIndex=1
this.getIntegraStatisticslList(false)
},
getDataList(show=false){
if(this.value!=''){
if(this.value!='' && this.value != null){
this.msg.StartDate = this.value[0];
this.msg.EndDate = this.value[1];
}else{
this.msg.StartDate = '';
this.msg.EndDate = '';
}
if(show==true){
this.Listloading=true;
......@@ -317,6 +321,7 @@
this.msg.OrderType=0;
this.msg.StartDate='';
this.msg.EndDate='';
this.msg.pageIndex=1
this.value='';
this.activeName='';
this.getIntegraStatisticslList()
......@@ -346,6 +351,7 @@
data.push(time2)
data.push(time1)
that.value = data;
this.msg.pageIndex=1
this.getIntegraStatisticslList(false)
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment