From 4247ae6e12759837b7cd12806d012912ded4ef6c Mon Sep 17 00:00:00 2001 From: limqhz Date: Mon, 8 Mar 2021 17:30:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=8A=A5=E5=91=8A=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/sv/entity/HealthDoc.java | 16 +++--- oms/oms-h5/src/views/member/health/add.vue | 6 +-- oms/oms-h5/src/views/member/health/index.vue | 23 ++++++++- oms/oms-h5/src/views/member/health/show.vue | 28 ++++++----- oms/oms-h5/src/views/member/index.vue | 2 +- .../com/sv/service/common/OSSClientUtil.java | 49 ++++++++++++++++++- .../com/sv/service/utils/UUIDGenerator.java | 28 +++++++++++ .../mybatis/mapper/sv/HealthDocMapper.xml | 31 ++++++++---- 8 files changed, 146 insertions(+), 37 deletions(-) create mode 100644 service/src/main/java/com/sv/service/utils/UUIDGenerator.java diff --git a/entity/src/main/java/com/sv/entity/HealthDoc.java b/entity/src/main/java/com/sv/entity/HealthDoc.java index 3d48a99..5133244 100644 --- a/entity/src/main/java/com/sv/entity/HealthDoc.java +++ b/entity/src/main/java/com/sv/entity/HealthDoc.java @@ -15,7 +15,7 @@ public class HealthDoc { private String docPath; - private Date date; + private Date docDate; private Integer platformId; @@ -25,14 +25,14 @@ public class HealthDoc { private Byte deleted; - public HealthDoc(Integer id, Integer memberId, String docName, String docType, String fileType, String docPath, Date date, Integer platformId, Date createdTime, Date modifiedTime, Byte deleted) { + public HealthDoc(Integer id, Integer memberId, String docName, String docType, String fileType, String docPath, Date docDate, Integer platformId, Date createdTime, Date modifiedTime, Byte deleted) { this.id = id; this.memberId = memberId; this.docName = docName; this.docType = docType; this.fileType = fileType; this.docPath = docPath; - this.date = date; + this.docDate = docDate; this.platformId = platformId; this.createdTime = createdTime; this.modifiedTime = modifiedTime; @@ -91,12 +91,12 @@ public class HealthDoc { this.docPath = docPath == null ? null : docPath.trim(); } - public Date getDate() { - return date; + public Date getDocDate() { + return docDate; } - public void setDate(Date date) { - this.date = date; + public void setDocDate(Date docDate) { + this.docDate = docDate; } public Integer getPlatformId() { @@ -130,4 +130,4 @@ public class HealthDoc { public void setDeleted(Byte deleted) { this.deleted = deleted; } -} \ No newline at end of file +} diff --git a/oms/oms-h5/src/views/member/health/add.vue b/oms/oms-h5/src/views/member/health/add.vue index 133d8a2..c321a61 100644 --- a/oms/oms-h5/src/views/member/health/add.vue +++ b/oms/oms-h5/src/views/member/health/add.vue @@ -15,7 +15,7 @@ - + @@ -102,6 +103,24 @@ export default { this.$router.push({ path: '/member/health/edit', query: { id: id }}) }, + /** + * 编辑健康报告 + */ + showFile(id) { + this.$router.push({ path: '/member/health/show', query: { docPath: id }}) + }, + + /** + * 删除 + */ + deleteFile(id) { + this.$confirm('确认删除该报告?').then(_ => { + remove(id).then(response => { + this.$refs.pagination.removeItem(id) + }) + }).catch(_ => {}) + }, + /** * 创建用户会员卡 */ diff --git a/oms/oms-h5/src/views/member/health/show.vue b/oms/oms-h5/src/views/member/health/show.vue index 1561b43..1b2be53 100644 --- a/oms/oms-h5/src/views/member/health/show.vue +++ b/oms/oms-h5/src/views/member/health/show.vue @@ -1,14 +1,10 @@