ff-admin/src/stores/admin/club/listprint.ts

41 lines
777 B
TypeScript
Raw Normal View History

2025-03-19 15:18:58 +01:00
import { defineStore } from "pinia";
import { http } from "@/serverCom";
export const useListPrintStore = defineStore("listprint", {
actions: {
async printList({
title,
queryStore,
headerId,
bodyId,
footerId,
headerHeight,
footerHeight,
}: {
title: string;
queryStore: string;
headerId?: string;
bodyId?: string;
footerId?: string;
headerHeight?: number;
footerHeight?: number;
}) {
return http.post(
`/admin/listprint`,
{
title,
queryStore,
headerId,
bodyId,
footerId,
headerHeight,
footerHeight,
},
{
responseType: "blob",
}
);
},
},
});