Explorar o código

更新 导出文件提示

wzh %!s(int64=3) %!d(string=hai) anos
pai
achega
3ff9a56fd7
Modificáronse 1 ficheiros con 12 adicións e 4 borrados
  1. 12 4
      src/views/voyage/voyageList.vue

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

@@ -99,6 +99,7 @@
     <el-dialog
       v-model="exportModalVisable"
       :title="exportModalTitle"
+      :close-on-click-modal="false"
       width="200px"
     >
       <div class="df aic jcsb">
@@ -743,10 +744,17 @@ async function exportZip() {
     "post",
     type
   );
-  ElNotification({
-    title: "导出成功!",
-    type: "success",
-  });
+  if (res.status == 0) {
+    ElNotification({
+      title: "导出成功!",
+      type: "success",
+    });
+  } else {
+    ElNotification({
+      title: "暂无数据",
+    });
+  }
+
   isLoadingZip.value = false;
   currentMonth.value = "";
   exportModalVisable.value = false;