修改导出封装组件
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user