Pārlūkot izejas kodu

更新 无指数文件提示

wzh 3 gadi atpakaļ
vecāks
revīzija
25cef7d6dd
1 mainītis faili ar 11 papildinājumiem un 4 dzēšanām
  1. 11 4
      src/views/voyage/voyageList.vue

+ 11 - 4
src/views/voyage/voyageList.vue

@@ -704,10 +704,17 @@ async function downloadFYDI() {
     loginAccountId: localStorage.loginAccountId,
   });
 
-  let url = res0.data.result;
-  let a = document.createElement("a");
-  a.setAttribute("href", url);
-  a.click();
+  if (res0.data.result == 1) {
+    ElNotification({
+      type: "error",
+      title: res0.data.msg,
+    });
+  } else {
+    let url = res0.data.result;
+    let a = document.createElement("a");
+    a.setAttribute("href", url);
+    a.click();
+  }
 }
 
 let exportModalVisable = ref(false);