权限控制
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<template slot="content">
|
||||
<ai-search-bar class="search-bar">
|
||||
<template #left>
|
||||
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button>
|
||||
<el-button size="small" type="primary" icon="iconfont iconAdd" v-if="permissions('app_appquestionbank_edit')" @click="toAdd('')">添加</el-button>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input
|
||||
@@ -32,9 +32,9 @@
|
||||
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<div class="table-options">
|
||||
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
|
||||
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
|
||||
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
||||
<el-button type="text" @click="toAdd(row.id)" v-if="permissions('app_appquestionbank_edit')">编辑</el-button>
|
||||
<el-button type="text" @click="toDetail(row.id)" v-if="permissions('app_appquestionbank_detail')">详情</el-button>
|
||||
<el-button type="text" @click="remove(row.id)" v-if="permissions('app_appquestionbank_del')">删除</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -49,7 +49,8 @@
|
||||
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
|
||||
data () {
|
||||
|
||||
Reference in New Issue
Block a user