Selaa lähdekoodia

异步任务错误提示

xiatian 4 vuotta sitten
vanhempi
commit
d0329238e5

+ 6 - 0
src/modules/oe/views/examDetail.vue

@@ -660,6 +660,12 @@ export default {
               type: "success",
               message: "正在后台导出中,请稍后到“导出任务列表”中下载!"
             });
+          })
+          .catch(error => {
+            this.$notify({
+              type: "error",
+              message: error.response.data.desc
+            });
           });
       });
     },

+ 6 - 0
src/modules/oe/views/examScheduling.vue

@@ -515,6 +515,12 @@ export default {
               type: "success",
               message: "正在后台导出中,请稍后到“导出任务列表”中下载!"
             });
+          })
+          .catch(error => {
+            this.$notify({
+              type: "error",
+              message: error.response.data.desc
+            });
           });
       });
     },

+ 6 - 0
src/modules/oe/views/scoreStatistics.vue

@@ -396,6 +396,12 @@ export default {
             type: "success",
             message: "正在后台导出中,请稍后到“导出任务列表”中下载!"
           });
+        })
+        .catch(error => {
+          this.$notify({
+            type: "error",
+            message: error.response.data.desc
+          });
         });
     },
     _exportData() {