diff --git a/src/components/product/account.vue b/src/components/product/account.vue index b4f2e11..448466c 100644 --- a/src/components/product/account.vue +++ b/src/components/product/account.vue @@ -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) } }