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 @@ + + +