Browse Source

更新 导出文件名

wzh 3 years ago
parent
commit
7861828ba2
2 changed files with 3 additions and 2 deletions
  1. 2 2
      src/views/voyage/voyageDetail.vue
  2. 1 0
      src/views/voyage/voyageList.vue

+ 2 - 2
src/views/voyage/voyageDetail.vue

@@ -2105,7 +2105,7 @@ async function downloadExcel() {
   let res = await downloadBlobFile(
     `${url.baseurl}/voyage/exportExcel`,
     { voyageId: route.query.id },
-    "船舶跟踪表",
+    `${voyage.value.voyageName}-船舶跟踪表`,
     "post",
     "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
   );
@@ -2158,7 +2158,7 @@ async function exportDischargeExcel() {
   let res = await downloadBlobFile(
     `${url.baseurl}/voyage/exportDischargeExcel`,
     { voyageId: route.query.id },
-    "卸货记录表",
+    `${voyage.value.voyageName}-卸货记录表`,
     "post",
     "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
   );

+ 1 - 0
src/views/voyage/voyageList.vue

@@ -165,6 +165,7 @@
       :title="exportModalTitle"
       :close-on-click-modal="false"
       width="200px"
+      @close="isLoadingZip = false"
     >
       <div class="df aic jcsb">
         <div v-if="exportModalTitle != '航次列表'" class="df aic">