From f07a9dfd8a7e29557a8335f31d1b929e19e76b1e Mon Sep 17 00:00:00 2001 From: zk <2762560464@qq.com> Date: Fri, 22 Sep 2023 18:05:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=98=E5=B7=A5=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../electronicContracts.js | 12 +- .../electronicEmployee/electronicEmployee.js | 54 ++ src/views/ea/electronicContracts/index.vue | 28 -- src/views/ea/electronicEmployee/index.vue | 472 ++++++++++++++++++ 4 files changed, 532 insertions(+), 34 deletions(-) create mode 100644 src/api/ea/electronicEmployee/electronicEmployee.js create mode 100644 src/views/ea/electronicEmployee/index.vue diff --git a/src/api/ea/electronicContracts/electronicContracts.js b/src/api/ea/electronicContracts/electronicContracts.js index 05340d8e..0017db87 100644 --- a/src/api/ea/electronicContracts/electronicContracts.js +++ b/src/api/ea/electronicContracts/electronicContracts.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 创建合同档案 export function createElectronicContracts(data) { return request({ - url: '/ea/electronic-contracts/create', + url: '/ea/electronicContracts/create', method: 'post', data: data }) @@ -12,7 +12,7 @@ export function createElectronicContracts(data) { // 更新合同档案 export function updateElectronicContracts(data) { return request({ - url: '/ea/electronic-contracts/update', + url: '/ea/electronicContracts/update', method: 'put', data: data }) @@ -21,7 +21,7 @@ export function updateElectronicContracts(data) { // 删除合同档案 export function deleteElectronicContracts(id) { return request({ - url: '/ea/electronic-contracts/delete?id=' + id, + url: '/ea/electronicContracts/delete?id=' + id, method: 'delete' }) } @@ -29,7 +29,7 @@ export function deleteElectronicContracts(id) { // 获得合同档案 export function getElectronicContracts(id) { return request({ - url: '/ea/electronic-contracts/get?id=' + id, + url: '/ea/electronicContracts/get?id=' + id, method: 'get' }) } @@ -37,7 +37,7 @@ export function getElectronicContracts(id) { // 获得合同档案分页 export function getElectronicContractsPage(query) { return request({ - url: '/ea/electronic-contracts/page', + url: '/ea/electronicContracts/page', method: 'get', params: query }) @@ -46,7 +46,7 @@ export function getElectronicContractsPage(query) { // 导出合同档案 Excel export function exportElectronicContractsExcel(query) { return request({ - url: '/ea/electronic-contracts/export-excel', + url: '/ea/electronicContracts/export-excel', method: 'get', params: query, responseType: 'blob' diff --git a/src/api/ea/electronicEmployee/electronicEmployee.js b/src/api/ea/electronicEmployee/electronicEmployee.js new file mode 100644 index 00000000..9fd8abb6 --- /dev/null +++ b/src/api/ea/electronicEmployee/electronicEmployee.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建员工档案 +export function createElectronicEmployee(data) { + return request({ + url: '/ea/electronic-employee/create', + method: 'post', + data: data + }) +} + +// 更新员工档案 +export function updateElectronicEmployee(data) { + return request({ + url: '/ea/electronic-employee/update', + method: 'put', + data: data + }) +} + +// 删除员工档案 +export function deleteElectronicEmployee(id) { + return request({ + url: '/ea/electronic-employee/delete?id=' + id, + method: 'delete' + }) +} + +// 获得员工档案 +export function getElectronicEmployee(id) { + return request({ + url: '/ea/electronic-employee/get?id=' + id, + method: 'get' + }) +} + +// 获得员工档案分页 +export function getElectronicEmployeePage(query) { + return request({ + url: '/ea/electronic-employee/page', + method: 'get', + params: query + }) +} + +// 导出员工档案 Excel +export function exportElectronicEmployeeExcel(query) { + return request({ + url: '/ea/electronic-employee/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/ea/electronicContracts/index.vue b/src/views/ea/electronicContracts/index.vue index 57a670c3..2d1b7de7 100644 --- a/src/views/ea/electronicContracts/index.vue +++ b/src/views/ea/electronicContracts/index.vue @@ -10,15 +10,9 @@ - - - - - - @@ -82,12 +76,6 @@ - - - - - - @@ -121,9 +109,7 @@ {{ parseTime(scope.row.createTime) }} - - @@ -142,8 +128,6 @@ - -