From 745996c2265fe2b3eb325dce725f89ae18dc8373 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Tue, 9 May 2023 17:48:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E5=91=8A=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/icon/svg/pointe_fill.svg | 2 +- src/views/Report/ReportDetail.vue | 25 ++++++++++++++----------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/icon/svg/pointe_fill.svg b/src/icon/svg/pointe_fill.svg index 5c82f5e..b79ae5b 100644 --- a/src/icon/svg/pointe_fill.svg +++ b/src/icon/svg/pointe_fill.svg @@ -1 +1 @@ - + diff --git a/src/views/Report/ReportDetail.vue b/src/views/Report/ReportDetail.vue index 092b979..db5a47b 100644 --- a/src/views/Report/ReportDetail.vue +++ b/src/views/Report/ReportDetail.vue @@ -46,9 +46,9 @@ 报告满意度:
- - - + + + {{pointNum}}
@@ -69,7 +69,7 @@ {{item.userName.slice(0,1)}}
- {{item.orgName+"【"+item.userName+"】"}} + {{(item.orgName ||'' ) +"【"+item.userName+"】"}}
@@ -80,9 +80,8 @@ @click="delJugg(item.id)">删除
- - @@ -130,17 +129,21 @@ export default { // 获取点赞数量及其状态 getGood(){ this.$api.report.getGood({reportId:this.reportId}).then(res=>{ - + if(res.data.logId){ + this.isShow=true + }else{ + this.isShow=false + } + this.pointNum=res.data.thumbUpCount }) }, //点赞 pointZan(type){ - this.$api.report.goodLuck(this.reportId).then(res=>{ - this.isShow=!this.isShow + this.$api.report.goodLuck({reportId:this.reportId}).then(res=>{ this.$message.success("操作成功") + this.getGood() }).catch(()=>{ - this.$message.warning("操作失败") }) }, //评分 @@ -381,7 +384,7 @@ export default { .juggle_right{ position: relative; width: 85%; - padding: 20px; + padding: 10px 10px 40px; .content{ width: 100%; }