|
|
|
@ -40,7 +40,7 @@
|
|
|
|
|
</i-col>
|
|
|
|
|
|
|
|
|
|
<div style="text-align: right;padding-right: 20px;float: right">
|
|
|
|
|
<Button type="primary" @click="exportData">导出数据</Button>
|
|
|
|
|
<Button type="primary" :loading="loading" @click="exportZeroExtend">导出数据</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</Row>
|
|
|
|
|
</i-col>
|
|
|
|
@ -132,6 +132,7 @@
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
selectDate:[],
|
|
|
|
|
loading:false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted: function () {
|
|
|
|
@ -326,19 +327,33 @@
|
|
|
|
|
},
|
|
|
|
|
//零推广导出
|
|
|
|
|
exportZeroExtend: function(){
|
|
|
|
|
this.loading = true;
|
|
|
|
|
if(this.selectDate[0] === ""){
|
|
|
|
|
this.$Message.info("请选择日期");
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let sellerId = this.selectedStaff;
|
|
|
|
|
if(this.selectedStaff === "-1"){
|
|
|
|
|
sellerId = null;
|
|
|
|
|
}
|
|
|
|
|
let shopId = this.selectedStore;
|
|
|
|
|
if(this.selectedStore === "-1"){
|
|
|
|
|
shopId = null;
|
|
|
|
|
}
|
|
|
|
|
let orgId = this.selectedCompany;
|
|
|
|
|
if(this.selectedCompany === "-1"){
|
|
|
|
|
orgId = null;
|
|
|
|
|
}
|
|
|
|
|
let that = this;
|
|
|
|
|
let request = {
|
|
|
|
|
startTime:this.selectDate[0],
|
|
|
|
|
endTime:this.selectDate[1],
|
|
|
|
|
orgId:this.selectedCompany,
|
|
|
|
|
shopId:this.selectedStore,
|
|
|
|
|
sellerId:this.selectedStaff,
|
|
|
|
|
orgId:orgId,
|
|
|
|
|
shopId:shopId,
|
|
|
|
|
sellerId:sellerId,
|
|
|
|
|
pageNum:this.pageNum,
|
|
|
|
|
pageSize:this.pageSize,
|
|
|
|
|
userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId
|
|
|
|
|
};
|
|
|
|
|
let originAllData = [];
|
|
|
|
|
IncreaseData.generalizeOfSeller(request,function (data) {
|
|
|
|
@ -347,7 +362,7 @@
|
|
|
|
|
}
|
|
|
|
|
data = data.data.results.dataVOS;
|
|
|
|
|
if(data && data.length > 0){
|
|
|
|
|
that.totalSize = data[0].totalSize;
|
|
|
|
|
that.loading = false;
|
|
|
|
|
for(let i=0;i<data.length;i++){
|
|
|
|
|
let entity = data[i];
|
|
|
|
|
entity.index = i+1;
|
|
|
|
|