feat(expansion-delay): add excel export

This commit is contained in:
woody 2025-04-21 19:59:43 +08:00
parent 010d65af5b
commit 304056eb48
1 changed files with 11 additions and 5 deletions

View File

@ -56,16 +56,15 @@
</el-row> </el-row>
</el-form> </el-form>
<!-- <div class="maintop"> <div class="maintop">
<div class="mainbtn"> <div class="mainbtn">
<el-button <el-button
size="small" size="small"
class="thebtn2" class="thebtn2"
:disabled="true"
@click="handleExport" @click="handleExport"
> 导出</el-button> > 导出</el-button>
</div> </div>
</div> --> </div>
<div class="mainTable"> <div class="mainTable">
<div class="itemTrading"> <div class="itemTrading">
<el-table <el-table
@ -198,9 +197,16 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then((_) => { }).then((_) => {
const params = Object.assign({}, this.queryParams, this.form)
if (this.dateRange && this.dateRange.length > 0) {
Object.assign(params, {
startDate: this.dateRange[0],
endDate: this.dateRange[1]
})
}
this.download( this.download(
'member/manage/member-structure/export', 'bonus/manage/bonus-delay/export',
Object.assign({}, this.queryParams, this.form), params,
`拓展延缓-${new Date().getTime()}.xlsx` `拓展延缓-${new Date().getTime()}.xlsx`
) )
}) })