From f66b9c2cb29f985b4a47134a1294fb0f4332b1b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Mon, 11 Oct 2021 14:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/product/account.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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) } }