From 32ab11079d1caa9cc66327c2dacbda4102274b73 Mon Sep 17 00:00:00 2001
From: zxc <1272811460@qq.com>
Date: Fri, 2 Sep 2022 09:45:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=88=97=E5=92=8C=E5=AF=BC=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../activivityList/scheduleList.vue | 55 ++++++++++++++++++-
1 file changed, 52 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/communityParty/orgActivity/activivityList/scheduleList.vue b/src/views/modules/communityParty/orgActivity/activivityList/scheduleList.vue
index 2448dcd7d..b1296136b 100644
--- a/src/views/modules/communityParty/orgActivity/activivityList/scheduleList.vue
+++ b/src/views/modules/communityParty/orgActivity/activivityList/scheduleList.vue
@@ -72,9 +72,9 @@
class="diy-button--delete"
size="small"
@click="deleteBatch">批量删除
-
+ 导出
+
+
+
+ {{ item.label }}
+
+
+
{
+ let fileName = window.decodeURI(
+ res.headers["content-disposition"].split(";")[1].split("=")[1]
+ );
+ console.log("filename", fileName);
+ let blob = new Blob([res.data], { type: "application/vnd.ms-excel" });
+ var url = window.URL.createObjectURL(blob);
+ var aLink = document.createElement("a");
+ aLink.style.display = "none";
+ aLink.href = url;
+ aLink.setAttribute("download", fileName);
+ document.body.appendChild(aLink);
+ aLink.click();
+ document.body.removeChild(aLink); //下载完成移除元素
+ window.URL.revokeObjectURL(url); //释放掉blob对象
+ })
+ .catch((err) => {
+ console.log("获取导出情失败", err);
+ return this.$message.error("网络错误");
+ });
+ },
+
async handlePublish (row) {
this.icPartyActId = row.icPartyActId