设备维保导出功能

This commit is contained in:
hongchao 2025-08-11 09:27:46 +08:00
parent 15a4f9768b
commit de69d49978
1 changed files with 16 additions and 0 deletions

View File

@ -69,6 +69,9 @@
>提交</el-button >提交</el-button
> >
</el-col> </el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="typeList" @selection-change="handleSelectionChange" border> <el-table v-loading="loading" :data="typeList" @selection-change="handleSelectionChange" border>
@ -440,6 +443,19 @@ export default {
this.$refs.printRef.print() this.$refs.printRef.print()
}) })
}, },
/** 导出按钮操作 */
handleExport() {
this.queryParams.startTime = this.dateRange[0]
this.queryParams.endTime = this.dateRange[1]
this.download(
'material/equipmentToRepair/export',
{
...this.queryParams
},
`维报列表清单_${new Date().getTime()}.xlsx`,
)
},
}, },
} }
</script> </script>