fix 导出生产统计

This commit is contained in:
张江玮
2023-06-16 17:33:15 +08:00
parent ea0ecd5e69
commit 95b4537e0d
2 changed files with 5 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ spring:
freemarker: freemarker:
check-template-location: false check-template-location: false
profiles: profiles:
active: prod active: dev
jackson: jackson:
time-zone: GMT+8 time-zone: GMT+8
data: data:

View File

@@ -537,6 +537,10 @@ export default {
}) })
}, },
downloadExcel() { downloadExcel() {
if (this.crud.query.createTime) {
this.crud.query.begin_time = this.crud.query.createTime[0]
this.crud.query.end_time = this.crud.query.createTime[1]
}
download('/api/workorder/downloadExcel', this.crud.query).then(res => { download('/api/workorder/downloadExcel', this.crud.query).then(res => {
downloadFile(res, '生产统计', 'xlsx') downloadFile(res, '生产统计', 'xlsx')
crud.downloadLoading = false crud.downloadLoading = false