guhongwei 2 năm trước cách đây
mục cha
commit
872c5e6985
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      src/stores/dock/dockTrans.ts

+ 9 - 0
src/stores/dock/dockTrans.ts

@@ -22,6 +22,14 @@ export const DockTransStore = defineStore('dockTrans', () => {
     const res = await axios.$get(`${api.url}`, cond)
     return res
   }
+  const userquery = async ({ skip = 0, limit = undefined, ...info }: IQueryParams = {}): Promise<IQueryResult> => {
+    let cond: IQueryType = {}
+    if (skip) cond.skip = skip
+    if (limit) cond.limit = limit
+    cond = { ...cond, ...info }
+    const res = await axios.$get(`${api.url}/userList`, cond)
+    return res
+  }
   const fetch = async (payload: any): Promise<IQueryResult> => {
     const res = await axios.$get(`${api.url}/${payload}`)
     return res
@@ -44,6 +52,7 @@ export const DockTransStore = defineStore('dockTrans', () => {
     doubleCount,
     increment,
     query,
+    userquery,
     fetch,
     create,
     update,