代码更新

This commit is contained in:
2022-10-20 21:33:22 +08:00
parent 3d3e8731b3
commit 13020ff9b1
2 changed files with 30 additions and 12 deletions

View File

@@ -97,7 +97,7 @@ export default {
add: false,
edit: false,
del: false,
download: true,
download: false,
reset: true
}
})
@@ -121,12 +121,21 @@ export default {
return true
},
downdtl() {
debugger
if (this.currentRow !== null) {
crud.downloadLoading = true
const data = {
'begin_time': this.crud.query.createTime[0],
'end_time': this.crud.query.createTime[1],
'assessor_id': this.crud.query.assessor_id
debugger
var data = {}
if (this.crud.query.createTime !== undefined) {
data = {
'begin_time': this.crud.query.createTime[0],
'end_time': this.crud.query.createTime[1],
'assessor_id': this.crud.query.assessor_id
}
} else {
data = {
'assessor_id': this.crud.query.assessor_id
}
}
download('/api/performancemst/download', data).then(result => {
downloadFile(result, '工作量统计', 'xlsx')