证书权限

This commit is contained in:
shijing 2023-09-04 16:44:05 +08:00
parent 9c48cf47af
commit 9657365cf7
1 changed files with 4 additions and 4 deletions

View File

@ -18,12 +18,12 @@
> >
</div> </div>
<div style="margin-top: 6px"> <div style="margin-top: 6px">
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="checkPermission(['certificate_create'])" <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="checkPermission(['certificate'])"
>新增证书</el-button> >新增证书</el-button>
<el-popover <el-popover
placement="top" placement="top"
width="160" width="160"
v-if="checkPermission(['certificate_create'])" v-if="checkPermission(['certificate'])"
v-model="popovervisible" v-model="popovervisible"
> >
<p>导入证书</p> <p>导入证书</p>
@ -87,9 +87,9 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="success" size="small" @click="handleShow(scope.row)" icon="el-icon-picture"></el-button> <el-button type="success" size="small" @click="handleShow(scope.row)" icon="el-icon-picture"></el-button>
<el-button type="primary" size="small" @click="handleEdit(scope)" icon="el-icon-edit" <el-button type="primary" size="small" @click="handleEdit(scope)" icon="el-icon-edit"
:disabled="!checkPermission(['certificate_create'])"></el-button> :disabled="!checkPermission(['certificate'])"></el-button>
<el-button type="danger" size="small" @click="handleDelete(scope)" icon="el-icon-delete" <el-button type="danger" size="small" @click="handleDelete(scope)" icon="el-icon-delete"
:disabled="!checkPermission(['certificate_create'])"></el-button> :disabled="!checkPermission(['certificate'])"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>