BUG 28180

This commit is contained in:
aixianling
2022-03-16 17:27:04 +08:00
parent 014cf36b37
commit 4507258218

View File

@@ -60,7 +60,7 @@
</div> </div>
<div class="user-info"> <div class="user-info">
<p class="name">{{ e.name }} <p class="name">{{ e.name }}
<span class="btn-icon" v-if="hasGridPermit && user.wxUserId == e.createUserId"> <span class="btn-icon" v-if="isAdmin || user.id == e.createUserId">
<img src="../img/edit-icon.png" alt="" @click.stop="toEdit(e,item.dictValue)"> <img src="../img/edit-icon.png" alt="" @click.stop="toEdit(e,item.dictValue)">
<img src="../img/del-icon.png" alt="" @click.stop="del(e,item.dictValue)"> <img src="../img/del-icon.png" alt="" @click.stop="del(e,item.dictValue)">
</span> </span>
@@ -104,7 +104,10 @@ export default {
...mapState(['user']), ...mapState(['user']),
hasGridPermit() { hasGridPermit() {
return this.user.girdCheckType != 0 return this.user.girdCheckType != 0
} },
isAdmin() {
return this.user.girdCheckType == 1
},
}, },
created() { created() {
this.$dict.load('appSpecialTypeFive') this.$dict.load('appSpecialTypeFive')