From 6542c98983ff1a2f0a3f898ef2b7007153cb3aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E6=99=B6=E5=9C=9F=E8=B1=86?= <水晶土豆@devide> Date: Tue, 21 Nov 2023 14:10:00 +0800 Subject: [PATCH] Tue Nov 21 14:10:00 CST 2023 inscode --- src/api/api.ts | 6 ++++- src/api/path.ts | 4 ++- src/component/humanResources/emp.vue | 40 +++++++++++++++++----------- 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/src/api/api.ts b/src/api/api.ts index 48cfc61..fbb94a6 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 8457c22..fc7a69b 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 314814d..99d4f02 100644 --- a/src/component/humanResources/emp.vue +++ b/src/component/humanResources/emp.vue @@ -1,9 +1,9 @@