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 @@
-
+
- {{scope.row.date | parseTime('{y}-{m}-{d}')}}
+ {{scope.row.docDate | parseTime('{y}-{m}-{d}')}}
- 查看
+ 查看
+ 删除
@@ -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 @@
-