This commit is contained in:
“wanyongkang”
2021-10-11 14:50:06 +08:00
parent 0ad4080231
commit f66b9c2cb2

View File

@@ -226,7 +226,10 @@ export default {
Btime: '',
Etime: '',
Bktime: '',
Ektime: ''
Ektime: '',
ProductId: '',
PackageId: '',
PackageName: '',
},
onlineClient: [],
currentAccount: {},
@@ -450,6 +453,21 @@ export default {
})
},
dataExport () {
if (this.dateRange && this.dateRange.length === 2) {
this.searchModel.Btime = this.dateRange[0]
this.searchModel.Etime = this.dateRange[1]
}
if (this.dateRange1 && this.dateRange1.length === 2) {
this.searchModel.Bktime = this.dateRange1[0]
this.searchModel.Ektime = this.dateRange1[1]
}
if (this.searchModel.ProductIds.length>0){
this.searchModel.ProductId=parseInt(this.searchModel.ProductIds[0]);
}
if (this.searchModel.PackageNames.length>0){
this.searchModel.PackageName=this.searchModel.PackageNames[0];
}
this.$api.getDownloadFile('/course/v1/productaccount/Export', this.searchModel)
}
}