feat:等保

feat:等保-对/role/auth 接口可以支持权限配置全部和4个菜单,按钮,字段,表单 开分。
feat:用户权限-支持手动登出角色.
This commit is contained in:
lvjunzhao
2025-02-08 09:21:26 +08:00
parent 4969728bfa
commit df76bceab2
5 changed files with 271 additions and 42 deletions

View File

@ -2,7 +2,7 @@
<PageWrapper dense fixedHeight contentFullHeight>
<BasicTable @register="registerTable">
<template #toolbar>
<a-button type="primary" v-auth="'index:add'" @click="handleCreate">
<a-button type="primary" v-auth="'dataAuth:add'" @click="handleCreate">
{{ t('新增') }}
</a-button>
</template>
@ -20,12 +20,12 @@
:actions="[
{
icon: 'clarity:note-edit-line',
auth: 'index:edit',
auth: 'dataAuth:edit',
onClick: handleEdit.bind(null, record),
},
{
icon: 'ant-design:delete-outlined',
auth: 'index:delete',
auth: 'dataAuth:delete',
color: 'error',
popConfirm: {
title: t('是否确认删除'),