fix 导出生产统计
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user