diff --git a/src/api/api.ts b/src/api/api.ts index 48cfc6136151928146c5b6a0f855cc1bd502f6d8..fbb94a66f8f20da8ac964d57cd48b418be197238 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -1,6 +1,6 @@ import request from "./index"; import type { IParams } from './index'; -import { CONTRACT_CATEGORY, CONTRACT_LIST, CONTRACT_LIST_Type, DEPT_MENU, HUMAN_RESOURCES_DEPARTMENT, JOB_TITLE, LOGIN, TABLE_ANNOUNCEMENT } from "./path"; +import { CONTRACT_CATEGORY, CONTRACT_LIST, CONTRACT_LIST_Type, DEPT_MENU, HUMAN_RESOURCES_DEPARTMENT, JOB_TITLE, LOGIN, TABLE_ANNOUNCEMENT,EMP_LISIT } from "./path"; import type { AxiosResponse } from "axios"; @@ -53,4 +53,8 @@ export function getHumanResourcesDepartment(): Promise>{ export function getJobTiTle() : Promise>{ return request.get(JOB_TITLE,{}); +} + +export function getEmpList(body:IParams) :Promise>{ + return request.get(EMP_LISIT,body); } \ No newline at end of file diff --git a/src/api/path.ts b/src/api/path.ts index 8457c227b0f36ca461b9897afe0088be3afb7c49..fc7a69b8a98325b8610f885d41a86ca77f6afc9f 100644 --- a/src/api/path.ts +++ b/src/api/path.ts @@ -13,4 +13,6 @@ export const CONTRACT_LIST_Type = CONTRACT_LIST + '/Type'; export const HUMAN_RESOURCES_DEPARTMENT = baseURL + '/humanResources/department'; -export const JOB_TITLE = baseURL + '/job/title'; \ No newline at end of file +export const JOB_TITLE = baseURL + '/job/title'; + +export const EMP_LISIT = baseURL + '/emp/list'; \ No newline at end of file diff --git a/src/component/humanResources/emp.vue b/src/component/humanResources/emp.vue index 314814de9f0c7d51afd44d64d84f21bbceaa3306..99d4f0202efe33115223ea524957c04ae06363dd 100644 --- a/src/component/humanResources/emp.vue +++ b/src/component/humanResources/emp.vue @@ -1,9 +1,9 @@