权限控制

This commit is contained in:
yanran200730
2023-02-20 08:53:38 +08:00
parent 8564a6881e
commit 0222a26313
7 changed files with 30 additions and 24 deletions

View File

@@ -21,7 +21,7 @@
<el-table-column slot="options" width="120px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="show(row.id, row.isShow)">{{ row.isShow === '1' ? '隐藏' : '显示' }}</el-button>
<el-button type="text" v-if="permissions('app_appcoursecomment_config')" @click="show(row.id, row.isShow)">{{ row.isShow === '1' ? '隐藏' : '显示' }}</el-button>
</div>
</template>
</el-table-column>