封装导出下载

This commit is contained in:
龙运模
2024-07-13 15:46:21 +08:00
parent 4ab5a2eee3
commit b32dee5886
10 changed files with 343 additions and 7 deletions
+7 -1
View File
@@ -6,7 +6,7 @@
<el-button type="primary" :size="size" plain>批量导入</el-button>
</div>
<div class="right-panel">
<el-button :size="size" icon="sc-icon-Download">下载</el-button>
<scExport :size="size" @exportData="exportData"></scExport>
</div>
</el-header>
<el-main class="nopadding">
@@ -206,6 +206,12 @@ export default {
delete row.$switch_yx;
}, 500);
},
async exportData() {
const res = await this.$API.system.company.export.post();
if(res.code == 200){
this.$message.success('开始导出');
}
},
upSearch(){
this.$refs.table.upData(this.params);
},