Explorar o código

延长导出的超时时间

chenken %!s(int64=6) %!d(string=hai) anos
pai
achega
18fa4d2fa5

+ 2 - 1
src/modules/oe/component/commonExport.vue

@@ -45,7 +45,8 @@ export default {
             params: {
             params: {
               query: this.form
               query: this.form
             },
             },
-            responseType: "arraybuffer"
+            responseType: "arraybuffer",
+            timeout: 20 * 60 * 1000 //限时20分钟
           })
           })
           .then(response => {
           .then(response => {
             if (response.data) {
             if (response.data) {

+ 2 - 1
src/modules/oe/views/scoreStatistics.vue

@@ -374,7 +374,8 @@ export default {
           params: {
           params: {
             query: this.form
             query: this.form
           },
           },
-          responseType: "arraybuffer"
+          responseType: "arraybuffer",
+          timeout: 20 * 60 * 1000 //限时20分钟
         })
         })
         .then(response => {
         .then(response => {
           if (response.data) {
           if (response.data) {