Commit d87eea5319a47136ee46bb32ff98017d11ccac82

Authored by fengtao
1 parent 27d9f3d3

fix:修改租户角色CRUD权限标识

@@ -6,10 +6,10 @@ @@ -6,10 +6,10 @@
6 :clickToRowSelect="false" 6 :clickToRowSelect="false"
7 > 7 >
8 <template #toolbar> 8 <template #toolbar>
9 - <Authority value="api:yt:admin:addTenantRole"> 9 + <Authority value="api:yt:role:saveOrUpdateRoleInfoWithMenu:post">
10 <a-button type="primary" @click="handleCreate"> 新增角色 </a-button> 10 <a-button type="primary" @click="handleCreate"> 新增角色 </a-button>
11 </Authority> 11 </Authority>
12 - <Authority value="api:yt:admin:deleteTenantRole"> 12 + <Authority value="api:yt:role:delete">
13 <a-button 13 <a-button
14 type="primary" 14 type="primary"
15 color="error" 15 color="error"
@@ -34,13 +34,13 @@ @@ -34,13 +34,13 @@
34 :actions="[ 34 :actions="[
35 { 35 {
36 label: '编辑', 36 label: '编辑',
37 - auth: 'api:yt:admin:editTenantRole', 37 + auth: 'api:yt:role:saveOrUpdateRoleInfoWithMenu:update',
38 icon: 'clarity:note-edit-line', 38 icon: 'clarity:note-edit-line',
39 onClick: handleEdit.bind(null, record), 39 onClick: handleEdit.bind(null, record),
40 }, 40 },
41 { 41 {
42 label: '删除', 42 label: '删除',
43 - auth: 'api:yt:admin:deleteTenantRole', 43 + auth: 'api:yt:role:delete',
44 icon: 'ant-design:delete-outlined', 44 icon: 'ant-design:delete-outlined',
45 color: 'error', 45 color: 'error',
46 popConfirm: { 46 popConfirm: {