【修改】权限修改 增加时间图标

This commit is contained in:
zhoulingpo
2023-05-15 17:04:10 +08:00
parent 904dfda851
commit 46a4255840
3 changed files with 24 additions and 17 deletions
+19 -13
View File
@@ -75,11 +75,10 @@
</div>
</div>
<div class="juggle_box showLimit">
<el-row>
<el-col :span="1">
<span>评论</span>
</el-col>
<el-col :span="21">
<span >评论</span>
<el-row style="margin-top: 5px">
<el-col :span="22">
<el-input type="textarea" v-model="comment" maxlength="1000" show-word-limit></el-input>
</el-col>
<el-col :span="2">
@@ -98,7 +97,10 @@
<div class="juggle_right">
<div class="content">{{ item.comment }}</div>
<div class="bottom">
<div class="time">{{ item.createTime && formatDate2(item.createTime) }}</div>
<div class="time">
<svg-icon icon-class="time" style="font-size: 20px"
class-name="icon"></svg-icon>
{{ item.createTime && formatDate2(item.createTime) }}</div>
<el-button class="delbtn" size="medium" plain type="primary" v-if="item.userId==userId || isAdmin"
@click="delJugg(item.id)">删除
</el-button>
@@ -140,8 +142,8 @@ export default {
pageSize: 5,
},
userId: this.$store.getters.userInfo.USID,
userName: this.$store.getters.userInfo.USNAME,
userId: this.$store.getters.userInfo.usid,
userName: this.$store.getters.userInfo.usname,
}
},
methods: {
@@ -268,7 +270,7 @@ export default {
getReportDetail() {
this.$api.report.getReportDetail(this.reportId).then(res => {
this.row = res.data
this.isAdmin = this.$store.getters.userInfo.userId==this.row.createUserId
this.isAdmin = this.$store.getters.userInfo.usid==this.row.createUserId
// 需要给分数/2
this.previewRow()
})
@@ -434,6 +436,7 @@ export default {
.content {
width: 100%;
color: #434343;
margin-bottom: 5px;
}
.bottom {
@@ -443,16 +446,16 @@ export default {
width: calc(100% - 40px);
bottom: 10px;
left: 20px;
height: 30px;
height: 35px;
color: #434343;
.time {
line-height: 30px;
color: #ccc;
line-height: 35px;
color: #858585;
}
.delbtn {
vertical-align: center;
//vertical-align: center;
}
}
}
@@ -472,4 +475,7 @@ export default {
.pointclick {
cursor: pointer;
}
.showLimit ::v-deep .el-textarea .el-input__count{
width: 98%;
}
</style>