1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

导出全部时不带参数

This commit is contained in:
程序员小墨 2023-04-14 14:23:47 +08:00
parent 29cadb9a11
commit 037ff186fe
2 changed files with 8 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<Plus />
</el-icon>
</el-upload>
imageUrl: {{ imageUrl }}
<!-- imageUrl: {{ imageUrl }} -->
</template>
<script lang="ts" setup>

View File

@ -113,6 +113,7 @@
<!-- 导出 Excel 弹窗 -->
<el-dialog v-model="exportFormVisible" title="导出选项">
<!-- {{ exportConfig }} -->
<el-form :model="form" label-width="80px">
<el-form-item label="数据范围">
<el-radio-group v-model="exportConfig.withFilter">
@ -483,9 +484,12 @@ const handleDelete = (index: number, row: any) => {
//
const handleExport = async () => {
//
let params = JSON.parse(JSON.stringify(query))
let params = {};
if (exportConfig.value.withFilter) {
params = JSON.parse(JSON.stringify(query))
delete params["pageIndex"]
delete params["pageSize"]
}
props.exportFunc(params).then((data: any) => {
console.log("exportData", data)
let sheetName = data.sheetName