execute printing and display
This commit is contained in:
parent
4c25969b78
commit
1e0802acda
2 changed files with 103 additions and 13 deletions
40
src/stores/admin/club/listprint.ts
Normal file
40
src/stores/admin/club/listprint.ts
Normal file
|
@ -0,0 +1,40 @@
|
|||
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",
|
||||
}
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue