|
@@ -21,7 +21,7 @@
|
|
|
<view class="row">评论时间:{{item.CreateTime | formatTime}}</view>
|
|
|
</view>
|
|
|
<view class="action-bot flex">
|
|
|
- <text class="red-color" @click="delHandle(item,index)">删除</text>
|
|
|
+ <text class="red-color" v-if="showDelBtn" @click="delHandle(item,index)">删除</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -32,6 +32,12 @@
|
|
|
<script>
|
|
|
import {apiCommentList,apiDelComment} from '@/api/question/index'
|
|
|
export default {
|
|
|
+ computed: {
|
|
|
+ showDelBtn(){
|
|
|
+ const userInfo = this.$store.state.userInfo;
|
|
|
+ return ['ficc_admin','admin'].includes(userInfo.RoleTypeCode)
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
id:0,
|