From ee563c9782e21bec527681359a353e1654acc597 Mon Sep 17 00:00:00 2001 From: xiao-fajia <1665375861@qq.com> Date: Wed, 7 Aug 2024 10:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AE=A1=E7=90=86-=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/company/staff/index.js | 53 ++++++ src/views/company/staff/StaffForm.vue | 173 +++++++++++++++++++ src/views/company/staff/index.vue | 231 ++++++++++++++++++++++++++ 3 files changed, 457 insertions(+) create mode 100644 src/api/company/staff/index.js create mode 100644 src/views/company/staff/StaffForm.vue create mode 100644 src/views/company/staff/index.vue diff --git a/src/api/company/staff/index.js b/src/api/company/staff/index.js new file mode 100644 index 0000000..e09c89c --- /dev/null +++ b/src/api/company/staff/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建企业管理-员工信息 +export function createStaff(data) { + return request({ + url: '/company/staff/create', + method: 'post', + data: data + }) +} + +// 更新企业管理-员工信息 +export function updateStaff(data) { + return request({ + url: '/company/staff/update', + method: 'put', + data: data + }) +} + +// 删除企业管理-员工信息 +export function deleteStaff(id) { + return request({ + url: '/company/staff/delete?id=' + id, + method: 'delete' + }) +} + +// 获得企业管理-员工信息 +export function getStaff(id) { + return request({ + url: '/company/staff/get?id=' + id, + method: 'get' + }) +} + +// 获得企业管理-员工信息分页 +export function getStaffPage(params) { + return request({ + url: '/company/staff/page', + method: 'get', + params + }) +} +// 导出企业管理-员工信息 Excel +export function exportStaffExcel(params) { + return request({ + url: '/company/staff/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} diff --git a/src/views/company/staff/StaffForm.vue b/src/views/company/staff/StaffForm.vue new file mode 100644 index 0000000..ffa65c2 --- /dev/null +++ b/src/views/company/staff/StaffForm.vue @@ -0,0 +1,173 @@ + + + \ No newline at end of file diff --git a/src/views/company/staff/index.vue b/src/views/company/staff/index.vue new file mode 100644 index 0000000..ed07467 --- /dev/null +++ b/src/views/company/staff/index.vue @@ -0,0 +1,231 @@ + + +