guhongwei 2 سال پیش
والد
کامیت
5dc0fe2f1b
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      src/stores/patent/patent.ts

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

@@ -63,6 +63,12 @@ export const PatentStore = defineStore('patent', () => {
     const res = await axios.$get(`${api.url}/findFromQueue`)
     const res = await axios.$get(`${api.url}/findFromQueue`)
     return res
     return res
   }
   }
+  const userquery = async ({ ...info }: IQueryParams = {}): Promise<IQueryResult> => {
+    let cond: IQueryType = {}
+    cond = { ...cond, ...info }
+    const res = await axios.$get(`${api.url}/personQuery`, cond)
+    return res
+  }
 
 
   return {
   return {
     count,
     count,
@@ -78,6 +84,7 @@ export const PatentStore = defineStore('patent', () => {
     pdelmany,
     pdelmany,
     pdeletion,
     pdeletion,
     pexport,
     pexport,
-    pqueue
+    pqueue,
+    userquery
   }
   }
 })
 })