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%; }