|
|
@@ -392,17 +392,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
exportFile() {
|
|
|
- this.$message.success('开始下载,请稍后...')
|
|
|
const data = {
|
|
|
projectId: this.projectId,
|
|
|
year: this.year,
|
|
|
month: this.month
|
|
|
}
|
|
|
this.$api.dispatch.exportFile(data).then(res => {
|
|
|
- if (Object.hasOwn(res, 'code')) {
|
|
|
- this.$message.error(res.msg)
|
|
|
+ if (res.size === 0) {
|
|
|
+ this.$message.error('下载错误,请稍后再试...')
|
|
|
return
|
|
|
}
|
|
|
+ this.$message.success('开始下载,请稍后...')
|
|
|
this.download(res)
|
|
|
})
|
|
|
},
|