【修改】 修改报告详情
This commit is contained in:
@@ -46,9 +46,9 @@
|
||||
报告满意度:<el-rate allow-half :max="5" v-model="userRating" @click.native="saveScore"></el-rate>
|
||||
</div>
|
||||
<div class="pointclick">
|
||||
<svg-icon v-if="!isShow" icon-class="pointe" @click="pointZan('y')" class-name="icon" ></svg-icon>
|
||||
<svg-icon v-else icon-class="pointe_fill" @click="pointZan('n')" class-name="icon" ></svg-icon>
|
||||
|
||||
<svg-icon v-if="!isShow" icon-class="pointe" @click="pointZan('y')" style="font-size: 25px" class-name="icon" ></svg-icon>
|
||||
<svg-icon v-else icon-class="pointe_fill" @click="pointZan('n')" style="font-size: 25px" class-name="icon" ></svg-icon>
|
||||
{{pointNum}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="juggle_box showLimit">
|
||||
@@ -69,7 +69,7 @@
|
||||
{{item.userName.slice(0,1)}}
|
||||
</div>
|
||||
<div class="name">
|
||||
{{item.orgName+"【"+item.userName+"】"}}
|
||||
{{(item.orgName ||'' ) +"【"+item.userName+"】"}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="juggle_right">
|
||||
@@ -80,9 +80,8 @@
|
||||
@click="delJugg(item.id)">删除</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="q.pageNo"
|
||||
<el-pagination v-if="commonList.length>0" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="q.pageNo"
|
||||
:page-sizes="[5, 10, 20]" :page-size="q.pageSize" layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="total" />
|
||||
</div>
|
||||
@@ -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%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user