From ff4f83959ad4c42853dd1d653f5d13f4ab65a6fe Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 21 Oct 2022 11:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=81=8C=E5=85=9A=E5=91=98=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA=E6=8A=A5=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/AppCommunityMember/Detail.vue | 44 ++++++++++++++++--- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/project/pingchang/apps/AppCommunityMember/Detail.vue b/project/pingchang/apps/AppCommunityMember/Detail.vue index 919f57e8..e2403edf 100644 --- a/project/pingchang/apps/AppCommunityMember/Detail.vue +++ b/project/pingchang/apps/AppCommunityMember/Detail.vue @@ -19,7 +19,7 @@ {{ info.total }} {{ dict.getLabel('partyReportSignupStatus', info.signupStatus) }} {{ dict.getLabel('activityStatus', info.actionStatus) }} - {{ info.beginTime.substring(0, 10) }} 至 {{ info.endTime.substring(0, 10) }} + {{ info.beginTime }} 至 {{ info.endTime }} {{ info.stopSignupTime }} {{ info.contactPerson }} {{ info.contactPhone }} @@ -34,8 +34,9 @@ + + + {{ userInfo.userName }} + {{ userInfo.submitTime }} + {{ userInfo.content }} + + + + + + @@ -87,7 +103,9 @@ export default { {prop: "logStatus", label: "活动日志", align: "center", dict: 'partyReportSignupLogStatus'}, {slot: "options"}, ], - userList: [] + userList: [], + showDialog: false, + userInfo: {} } }, @@ -106,7 +124,7 @@ export default { getInfo() { this.instance.post(`/app/apppartyreport/queryDetailById?id=${this.id}`).then((res) => { if (res?.data) { - this.info = res.data; + this.info = res.data if (this.info.birthday) { this.info.birthday = this.info.birthday.substring(0, 10); } @@ -117,8 +135,20 @@ export default { this.instance.post(`/app/apppartyreport/signup-info?id=${this.id}`).then((res) => { if (res?.data) { res.data.map((item) => { - item.signupTime = item.signupTime.substring(0, 10) + if(item.signupTime) { + item.signupTime = item.signupTime.substring(0, 10) + } }) + this.userList = res.data + } + }); + }, + viewUser(row) { + this.instance.post(`app/apppartyreport/log?id=${row.id}`).then((res) => { + if (res.code == 0) { + this.userInfo = {...res.data} + this.userInfo.userName = row.partyName + this.showDialog = true } }); },