Преглед изворни кода

更新 文件下载文件类型

wzh пре 3 година
родитељ
комит
8fd95214dc
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      src/views/voyage/voyageDetail.vue

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

@@ -2104,7 +2104,8 @@ async function downloadExcel() {
     `${url.baseurl}/voyage/exportExcel`,
     { voyageId: route.query.id },
     "船舶跟踪表",
-    "post"
+    "post",
+    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
   );
   if (res) {
     isLoadingExcel.value = false;
@@ -2156,7 +2157,8 @@ async function exportDischargeExcel() {
     `${url.baseurl}/voyage/exportDischargeExcel`,
     { voyageId: route.query.id },
     "卸货记录表",
-    "post"
+    "post",
+    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
   );
   if (res) {
     isDischargeLoadingExcel.value = false;