Commit fdc9388d authored by 罗超's avatar 罗超

1

parent 485bdefa
......@@ -18,6 +18,15 @@
@click="downloadMultipleExcel"
>批量下载榜单报名
</el-button>
<el-button
style="float: right; margin-top: -5px; margin-right: 10px"
size="small"
type="primary"
:disabled="multipleSelection.length === 0"
@click="downloadMultiplefujian"
:loading="fujianLoading"
>榜单附件导出
</el-button>
</div>
</div>
<div class="content">
......@@ -172,7 +181,7 @@
</el-table-column>
<el-table-column prop="ListStateName" label="状态"> </el-table-column>
<el-table-column label="操作" width="200">
<el-table-column label="操作" width="140">
<template slot-scope="scope">
<div style="height: 32px; display: flex; align-items: center">
<el-tooltip
......@@ -191,7 +200,7 @@
</el-tooltip>
<el-dropdown size="medium">
<el-button type="primary" size="mini">
更多菜单<i class="el-icon-arrow-down el-icon--right"></i
更多<i class="el-icon-arrow-down el-icon--right"></i
></el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>
......@@ -245,7 +254,7 @@
<el-tooltip
class="item"
effect="dark"
content="下载榜单报名excel"
content="下载榜单报名"
placement="top"
>
<img
......@@ -313,6 +322,7 @@ export default {
ListState: [], //榜单状态 枚举
ListObjectType: [], //面向群体 枚举
multipleSelection: [], //多选
fujianLoading: false,
};
},
created() {
......@@ -451,6 +461,38 @@ export default {
"批量下载榜单报名列表.xls"
);
},
// 导出榜单附件
downloadMultiplefujian() {
this.fujianLoading = true;
let ids = this.multipleSelection.map((e) => e.Id).toString();
this.apipost(
"/api/Trade/GetFirstShopEnrollZipExport",
{ ListIds: ids },
(res) => {
if (res.data.resultCode == 1) {
this.fujianLoading = false;
let a = document.createElement("a");
a.href = this.domainManager().DomainUrl + res.data.data;
a.download = "榜单附件.zip";
a.click();
this.delDownloadMultiplefujian(res.data.data);
}
}
);
},
//删除附件
delDownloadMultiplefujian(url) {
this.apipost(
"/api/Trade/DelFirstShopEnrollZipExport",
{ Url: url },
(res) => {
if (res.data.resultCode == 1) {
} else {
this.$message.error(res.data.message);
}
}
);
},
},
mounted() {},
};
......
......@@ -47,7 +47,7 @@
:style="{backgroundImage:'url(' + scope.row.ObjectIcon + ')',backgroundSize:'cover'}">
</div>
<div flex="dir:left cross:center">
{{scope.row.ObjectName}}
{{scope.row.ObjectName}}
</div>
</template>
</el-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment