权限控制
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
:selectList="dict.getDict('qjExamineStatus')"
|
||||
@change="search.current = 1, getList()">
|
||||
</ai-select>
|
||||
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button>
|
||||
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')" v-if="permissions('app_appcourseinfo_edit')">添加</el-button>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input
|
||||
@@ -46,10 +46,10 @@
|
||||
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<div class="table-options">
|
||||
<el-button type="text" v-if="row.examineStatus === '0'" @click="id = row.id, isShow = true">审核</el-button>
|
||||
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
|
||||
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
|
||||
<el-button type="text" v-if="row.examineStatus === '1'" @click="unshelf(row.id)">下架</el-button>
|
||||
<el-button type="text" v-if="row.examineStatus === '0' && permissions('app_appcourseinfo_audit')" @click="id = row.id, isShow = true">审核</el-button>
|
||||
<el-button type="text" @click="toAdd(row.id)" v-if="permissions('app_appcourseinfo_edit')">编辑</el-button>
|
||||
<el-button type="text" @click="toDetail(row.id)" v-if="permissions('app_appquestionbank_detail')">详情</el-button>
|
||||
<el-button type="text" v-if="row.examineStatus === '1' && permissions('app_appcourseinfo_audit')" @click="unshelf(row.id)">下架</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -79,7 +79,8 @@
|
||||
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
|
||||
data () {
|
||||
|
||||
Reference in New Issue
Block a user