diff --git a/src/api/jobuser.ts b/src/api/jobuser.ts index 76a0e53..2d71bd3 100644 --- a/src/api/jobuser.ts +++ b/src/api/jobuser.ts @@ -42,16 +42,21 @@ export interface Refresh { export interface ListParams { black?: string; username?: string; + key:string } /** * * @param data 获取列表 * @returns */ -export function lists(key:string,status:Number) { - key=key?key:""; - return axios.post('/admin/api/v1/jobuser/lists',{key,status}); +export function lists(params: ListParams) { + params.key=params.key?params.key:""; + return axios.post('/admin/api/v1/jobuser/lists',params); } +// export function lists(key:string,status:Number) { +// key=key?key:""; +// return axios.post('/admin/api/v1/jobuser/lists',{key,status}); +// } /** * diff --git a/src/views/jobuser/index.vue b/src/views/jobuser/index.vue index 4a46d04..4bcba79 100644 --- a/src/views/jobuser/index.vue +++ b/src/views/jobuser/index.vue @@ -89,6 +89,19 @@ +
+ +