|
@@ -22,6 +22,14 @@ export const DockTransStore = defineStore('dockTrans', () => {
|
|
const res = await axios.$get(`${api.url}`, cond)
|
|
const res = await axios.$get(`${api.url}`, cond)
|
|
return res
|
|
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 fetch = async (payload: any): Promise<IQueryResult> => {
|
|
const res = await axios.$get(`${api.url}/${payload}`)
|
|
const res = await axios.$get(`${api.url}/${payload}`)
|
|
return res
|
|
return res
|
|
@@ -44,6 +52,7 @@ export const DockTransStore = defineStore('dockTrans', () => {
|
|
doubleCount,
|
|
doubleCount,
|
|
increment,
|
|
increment,
|
|
query,
|
|
query,
|
|
|
|
+ userquery,
|
|
fetch,
|
|
fetch,
|
|
create,
|
|
create,
|
|
update,
|
|
update,
|