修改导出封装组件

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 -2
View File
@@ -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){