修改导出封装组件

This commit is contained in:
龙运模
2024-07-13 22:08:45 +08:00
parent 88193f9c57
commit bb6c776515
7 changed files with 67 additions and 35 deletions
+8 -1
View File
@@ -6,7 +6,7 @@
<el-button type="primary" :size="size" plain @click="importFile">批量导入</el-button>
</div>
<div class="right-panel">
<scExport :size="size" @exportData="exportData"></scExport>
<scExport :size="size" @exportData="exportData" @updateShow="exportChangeShow" :show="exportShow" type="6"></scExport>
</div>
</el-header>
<el-main class="nopadding">
@@ -80,6 +80,7 @@ export default {
column: [],
},
selection: [],
exportShow:false,
searchShow:false,
searchList:[
{name:'开通日期',type:'date',code:'activation_date'},
@@ -222,6 +223,12 @@ export default {
delete row.$switch_yx;
}, 500);
},
// 下载导出
exportChangeShow(e){
if(e.type == 6){
this.exportShow = e.status==0?true:false
}
},
async exportData() {
const res = await this.$API.system.company.export.post(this.params);
if(res.code == 200){