mirror of
https://github.com/YunaiV/ruoyi-vue-pro.git
synced 2025-11-01 13:05:53 +08:00
fix:【infra 基础设施】导出 excel 参数不正确的问题
This commit is contained in:
@ -217,7 +217,7 @@ const handleDeleteBatch = async () => {
|
||||
|
||||
const checkedIds = ref<number[]>([])
|
||||
const handleRowCheckboxChange = (records: ${subSimpleClassName}[]) => {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
#end
|
||||
|
||||
@ -374,7 +374,7 @@ const handleDeleteBatch = async () => {
|
||||
|
||||
const checkedIds = ref<number[]>([])
|
||||
const handleRowCheckboxChange = (records: ${simpleClassName}[]) => {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
|
||||
|
||||
@ -98,7 +98,7 @@ export function delete${simpleClassName}List(ids: number[]) {
|
||||
|
||||
/** 导出${table.classComment} */
|
||||
export function export${simpleClassName}(params: any) {
|
||||
return requestClient.download('${baseURL}/export-excel', params);
|
||||
return requestClient.download('${baseURL}/export-excel', { params });
|
||||
}
|
||||
|
||||
## 特殊:主子表专属逻辑
|
||||
|
||||
@ -182,7 +182,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: ${simpleClassName}Api.${simpleClassName}[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
|
||||
|
||||
@ -106,7 +106,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: ${simpleClassName}Api.${subSimpleClassName}[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
#end
|
||||
|
||||
@ -98,7 +98,7 @@ export function delete${simpleClassName}List(ids: number[]) {
|
||||
|
||||
/** 导出${table.classComment} */
|
||||
export function export${simpleClassName}(params: any) {
|
||||
return requestClient.download('${baseURL}/export-excel', params);
|
||||
return requestClient.download('${baseURL}/export-excel', { params });
|
||||
}
|
||||
|
||||
## 特殊:主子表专属逻辑
|
||||
|
||||
@ -119,7 +119,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: ${simpleClassName}Api.${simpleClassName}[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: ${simpleClassName}Api.${subSimpleClassName}[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
|
||||
|
||||
@ -98,7 +98,7 @@ export function delete${simpleClassName}List(ids: number[]) {
|
||||
|
||||
/** 导出${table.classComment} */
|
||||
export function export${simpleClassName}(params: any) {
|
||||
return requestClient.download('${baseURL}/export-excel', params);
|
||||
return requestClient.download('${baseURL}/export-excel', { params });
|
||||
}
|
||||
|
||||
## 特殊:主子表专属逻辑
|
||||
|
||||
@ -177,7 +177,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: ${simpleClassName}Api.${simpleClassName}[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: ${simpleClassName}Api.${subSimpleClassName}[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
#end
|
||||
|
||||
@ -98,7 +98,7 @@ export function delete${simpleClassName}List(ids: number[]) {
|
||||
|
||||
/** 导出${table.classComment} */
|
||||
export function export${simpleClassName}(params: any) {
|
||||
return requestClient.download('${baseURL}/export-excel', params);
|
||||
return requestClient.download('${baseURL}/export-excel', { params });
|
||||
}
|
||||
|
||||
## 特殊:主子表专属逻辑
|
||||
|
||||
@ -113,7 +113,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: ${simpleClassName}Api.${simpleClassName}[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
|
||||
|
||||
@ -93,7 +93,7 @@ function handleRowCheckboxChange({
|
||||
}: {
|
||||
records: ${simpleClassName}Api.${subSimpleClassName}[];
|
||||
}) {
|
||||
checkedIds.value = records.map((item) => item.id);
|
||||
checkedIds.value = records.map((item) => item.id!);
|
||||
}
|
||||
#end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user