Forráskód Böngészése

报表导出增加弹窗提示

1004749546@qq.com 4 éve
szülő
commit
439d278da9

+ 13 - 4
src/views/reportForm/rubbishDeliverySearchTime.vue

@@ -185,10 +185,19 @@ export default {
         this.$message.error('单次最多只能导出3个月的数据,请缩小查询区间后再进行导出!')
         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) {

+ 13 - 4
src/views/reportForm/rubbishDeliveryTotal.vue

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