修改导出封装组件
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<div class="right-panel-search">
|
||||
<scExport :size="size" @exportData="exportData"></scExport>
|
||||
<scExport :size="size" @exportData="exportData" @updateShow="exportChangeShow" :show="exportShow" type="7"></scExport>
|
||||
</div>
|
||||
</div>
|
||||
</el-header>
|
||||
@@ -105,7 +105,7 @@
|
||||
column:[]
|
||||
},
|
||||
selection: [],
|
||||
|
||||
exportShow:false,
|
||||
searchShow:false,
|
||||
searchList:[
|
||||
{name:'创建日期',type:'date',code:'activation_date'},
|
||||
@@ -278,6 +278,12 @@
|
||||
delete row.$switch_yx;
|
||||
}, 500);
|
||||
},
|
||||
// 下载导出
|
||||
exportChangeShow(e){
|
||||
if(e.type == 7){
|
||||
this.exportShow = e.status==0?true:false
|
||||
}
|
||||
},
|
||||
async exportData() {
|
||||
const res = await this.$API.system.user.export.post();
|
||||
if(res.code == 200){
|
||||
|
||||
Reference in New Issue
Block a user