修改导出封装组件
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){
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="searchItem searchBtn">
|
||||
<el-button :size="size" type="primary" icon="el-icon-search" @click="upSearch">查询</el-button>
|
||||
<el-button :size="size" type="info" icon="el-icon-RefreshRight" @click="reset">重置</el-button>
|
||||
<scExport :size="size" @exportData="exportData"></scExport>
|
||||
<scExport :size="size" @exportData="exportData" @updateShow="exportChangeShow" :show="exportShow" type="8"></scExport>
|
||||
</div>
|
||||
</div>
|
||||
<scTable ref="table" :apiObj="list.apiObj" :column="list.column" stripe :size="size" highlightCurrentRow @row-click="rowClick">
|
||||
@@ -25,7 +25,6 @@
|
||||
import info from './info'
|
||||
|
||||
export default {
|
||||
name: 'log',
|
||||
components: {
|
||||
info,
|
||||
},
|
||||
@@ -42,12 +41,13 @@
|
||||
apiObj: this.$API.system.log.list,
|
||||
column:[]
|
||||
},
|
||||
exportShow:false,
|
||||
searchList:[
|
||||
{name:'操作日期',type:'date',code:'created_at'},
|
||||
{name:'操作功能',type:'multiple',code:'type', data:[], placeholder:"请选择功能",show:true},
|
||||
{name:'关键字',type:'text',code:['remark','ip','location','creator_name'],keyword:true,show:true},
|
||||
],
|
||||
params: {}
|
||||
params: {},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -72,6 +72,12 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
// 下载导出
|
||||
exportChangeShow(e){
|
||||
if(e.type == 8){
|
||||
this.exportShow = e.status==0?true:false
|
||||
}
|
||||
},
|
||||
async exportData() {
|
||||
const res = await this.$API.system.log.export.post(this.params);
|
||||
if(res.code == 200){
|
||||
|
||||
@@ -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