订单根据产品导出

This commit is contained in:
“wanyongkang”
2021-01-23 16:33:36 +08:00
parent 11891c7c2c
commit 034286a876

View File

@@ -298,6 +298,13 @@ export default {
this.get() this.get()
}, },
dataExport () { dataExport () {
if (this.dateRange && this.dateRange.length === 2) {
this.searchModel.Btime = this.dateRange[0]
this.searchModel.Etime = this.dateRange[1]
}
if(this.searchModel.ProductIds.length>0){
this.searchModel.ProductId = this.searchModel.ProductIds[0]
}
this.$api.getDownloadFile('/course/v1/order/Export', this.searchModel) this.$api.getDownloadFile('/course/v1/order/Export', this.searchModel)
} }
} }