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 @@
+
+
+
+ 保存
+ 返回
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 @@
-
+
修改
-
- 导出
+
+ 导出
-
- 删除
+
+ delPersonCertificate(record)">
+ 删除
+
@@ -51,10 +53,11 @@