证书权限

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 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-popover
placement="top"
width="160"
v-if="checkPermission(['certificate_create'])"
v-if="checkPermission(['certificate'])"
v-model="popovervisible"
>
<p>导入证书</p>
@ -87,9 +87,9 @@
<template slot-scope="scope">
<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"
:disabled="!checkPermission(['certificate_create'])"></el-button>
:disabled="!checkPermission(['certificate'])"></el-button>
<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>
</el-table-column>
</el-table>