导出全部时不带参数
This commit is contained in:
parent
29cadb9a11
commit
037ff186fe
@ -6,7 +6,7 @@
|
||||
<Plus />
|
||||
</el-icon>
|
||||
</el-upload>
|
||||
imageUrl: {{ imageUrl }}
|
||||
<!-- imageUrl: {{ imageUrl }} -->
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
|
@ -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))
|
||||
delete params["pageIndex"]
|
||||
delete params["pageSize"]
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user