封装导出下载
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user