From 3b2cf41a9946e45856d990018f0d22861f42429f Mon Sep 17 00:00:00 2001 From: qinjie Date: Fri, 17 Dec 2021 16:54:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E8=AF=81=E4=B9=A6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E3=80=81=E6=A1=A3=E6=A1=88=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E3=80=81=E5=AF=BC=E5=87=BA=E3=80=81=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/archives/certificate.js | 53 +- src/api/common/common.js | 8 + .../archives/certificate/EditCertificate.vue | 136 +++++ src/views/archives/certificate/Index.vue | 91 +-- src/views/person/PersonList.vue | 558 +++++++++--------- 5 files changed, 530 insertions(+), 316 deletions(-) create mode 100644 src/api/common/common.js create mode 100644 src/views/archives/certificate/EditCertificate.vue diff --git a/src/api/archives/certificate.js b/src/api/archives/certificate.js index 0d88a58..79d0b32 100644 --- a/src/api/archives/certificate.js +++ b/src/api/archives/certificate.js @@ -6,7 +6,13 @@ const api = { get: '/sys/dictionary/item/get', add: '/sys/dictionary/item/add', del: '/sys/dictionary/item/del', - edit: '/sys/dictionary/item/edit' + edit: '/sys/dictionary/item/edit', + + certificateList: '/archives/certificate/listPage', + addCertificate: '/person/certificate/add', + certificateDetail: '/person/certificate/detail', + delCertificate: '/person/certificate/del', + certificateExport: 'person/certificate/export' } // 证书类型 列表 @@ -61,4 +67,49 @@ export function editCertificateType(params) { method: 'post', data: params }) +} + +// 证书列表 +export function getArchivesCertificatelist(params) { + return request({ + url: api.certificateList, + method: 'get', + params: params + }) +} + +// 新增人员证书 +export function addPersonCertificate(params) { + return request({ + url: api.addCertificate, + method: 'post', + data: params + }) +} + +// 获取证书详情 +export function findPersonCertificateDetail(params) { + return request({ + url: api.certificateDetail, + method: 'get', + params: params + }) +} + +// 删除人员证书 +export function delCertificate(params) { + return request({ + url: api.delCertificate, + method: 'post', + params: params + }) +} + +// 导出证书详情 +export function exportCertificate(params) { + return request({ + url: api.certificateExport, + method: 'get', + params: params + }) } \ No newline at end of file diff --git a/src/api/common/common.js b/src/api/common/common.js new file mode 100644 index 0000000..b7b6ab2 --- /dev/null +++ b/src/api/common/common.js @@ -0,0 +1,8 @@ +const api = { + download: '/dawa/common/download', +} + +// 附件下载 +export function downloadExportFile(fileName) { + window.location.href = api.download + '?fileName=' + fileName; +} \ No newline at end of file diff --git a/src/views/archives/certificate/EditCertificate.vue b/src/views/archives/certificate/EditCertificate.vue new file mode 100644 index 0000000..2c278a5 --- /dev/null +++ b/src/views/archives/certificate/EditCertificate.vue @@ -0,0 +1,136 @@ + + + + \ No newline at end of file diff --git a/src/views/archives/certificate/Index.vue b/src/views/archives/certificate/Index.vue index 9f718a3..2515320 100644 --- a/src/views/archives/certificate/Index.vue +++ b/src/views/archives/certificate/Index.vue @@ -30,14 +30,16 @@ - + 修改 - - 导出 + + 导出 - - 删除 + + + 删除 + @@ -51,10 +53,11 @@