|
@@ -185,10 +185,19 @@ export default {
|
|
this.$message.error('单次最多只能导出3个月的数据,请缩小查询区间后再进行导出!')
|
|
this.$message.error('单次最多只能导出3个月的数据,请缩小查询区间后再进行导出!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- this.loading = true
|
|
|
|
- exportTnTimeForm(params).then(res => {
|
|
|
|
- this.loading = false
|
|
|
|
- this.download(res)
|
|
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '导出过程可能需要一些时间,且导出期间不能进行其它操作,确定要导出吗?',
|
|
|
|
+ onOk: () => {
|
|
|
|
+ this.loading = true
|
|
|
|
+ exportTnTimeForm(params).then(res => {
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.download(res)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ onCancel () {
|
|
|
|
+ console.log('Cancel')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
download (data) {
|
|
download (data) {
|