guhongwei 2 gadi atpakaļ
vecāks
revīzija
a00ffa6809
1 mainītis faili ar 11 papildinājumiem un 1 dzēšanām
  1. 11 1
      src/stores/patent/patent.ts

+ 11 - 1
src/stores/patent/patent.ts

@@ -55,6 +55,14 @@ export const PatentStore = defineStore('patent', () => {
     const res = await axios.$get(`${api.url}/deletion`)
     return res
   }
+  const pexport = async (payload: any): Promise<IQueryResult> => {
+    const res = await axios.$post(`${api.url}/export`, payload)
+    return res
+  }
+  const pqueue = async (): Promise<IQueryResult> => {
+    const res = await axios.$get(`${api.url}/findFromQueue`)
+    return res
+  }
 
   return {
     count,
@@ -68,6 +76,8 @@ export const PatentStore = defineStore('patent', () => {
     pimport,
     pupdateuser,
     pdelmany,
-    pdeletion
+    pdeletion,
+    pexport,
+    pqueue
   }
 })