Browse Source

flot terminer

scorpio 2 years ago
parent
commit
a1e2cf3538
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/api/fetch.js
  2. 1 0
      src/views/home/component/dispatch.vue

+ 1 - 1
src/api/fetch.js

@@ -36,7 +36,7 @@ function fetch(
   header = {},
   header = {},
   responseType = '',
   responseType = '',
   insurance,
   insurance,
-  timeout = 30000
+  timeout = 60000
 ) {
 ) {
   contentType === 'form' && (contentType = 'application/x-www-form-urlencoded')
   contentType === 'form' && (contentType = 'application/x-www-form-urlencoded')
   contentType === 'json' && (contentType = 'application/json')
   contentType === 'json' && (contentType = 'application/json')

+ 1 - 0
src/views/home/component/dispatch.vue

@@ -397,6 +397,7 @@ export default {
         year: this.year,
         year: this.year,
         month: this.month
         month: this.month
       }
       }
+      this.loading = true
       this.$api.dispatch.exportFile(data).then(res => {
       this.$api.dispatch.exportFile(data).then(res => {
         if (res.size === 0 || Object.hasOwn(res, 'code')) {
         if (res.size === 0 || Object.hasOwn(res, 'code')) {
           this.$message.error('暂无文件或者下载错误,请稍后再试...')
           this.$message.error('暂无文件或者下载错误,请稍后再试...')