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