导出全部时不带参数
This commit is contained in:
parent
29cadb9a11
commit
037ff186fe
@ -6,7 +6,7 @@
|
|||||||
<Plus />
|
<Plus />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
imageUrl: {{ imageUrl }}
|
<!-- imageUrl: {{ imageUrl }} -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
@ -113,6 +113,7 @@
|
|||||||
|
|
||||||
<!-- 导出 Excel 弹窗 -->
|
<!-- 导出 Excel 弹窗 -->
|
||||||
<el-dialog v-model="exportFormVisible" title="导出选项">
|
<el-dialog v-model="exportFormVisible" title="导出选项">
|
||||||
|
<!-- {{ exportConfig }} -->
|
||||||
<el-form :model="form" label-width="80px">
|
<el-form :model="form" label-width="80px">
|
||||||
<el-form-item label="数据范围">
|
<el-form-item label="数据范围">
|
||||||
<el-radio-group v-model="exportConfig.withFilter">
|
<el-radio-group v-model="exportConfig.withFilter">
|
||||||
@ -483,9 +484,12 @@ const handleDelete = (index: number, row: any) => {
|
|||||||
// 导出数据到文件
|
// 导出数据到文件
|
||||||
const handleExport = async () => {
|
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["pageIndex"]
|
||||||
delete params["pageSize"]
|
delete params["pageSize"]
|
||||||
|
}
|
||||||
props.exportFunc(params).then((data: any) => {
|
props.exportFunc(params).then((data: any) => {
|
||||||
console.log("exportData", data)
|
console.log("exportData", data)
|
||||||
let sheetName = data.sheetName
|
let sheetName = data.sheetName
|
||||||
|
Loading…
Reference in New Issue
Block a user