Showing
1 changed file
with
4 additions
and
4 deletions
| ... | ... | @@ -2,12 +2,12 @@ |
| 2 | 2 | <div class="p-4"> |
| 3 | 3 | <BasicTable :clickToRowSelect="false" @register="registerTable" @fetch-success="onFetchSuccess"> |
| 4 | 4 | <template #toolbar> |
| 5 | - <Authority value="api:yt:admin:addOrg"> | |
| 5 | + <Authority value="api:yt:organization:post"> | |
| 6 | 6 | <a-button type="primary" @click="handleCreate"> |
| 7 | 7 | {{ getI18n }} |
| 8 | 8 | </a-button> |
| 9 | 9 | </Authority> |
| 10 | - <Authority value="api:yt:admin:deleteOrg"> | |
| 10 | + <Authority value="api:yt:organization:delete"> | |
| 11 | 11 | <a-button |
| 12 | 12 | color="error" |
| 13 | 13 | @click="handleDeleteOrBatchDelete(null)" |
| ... | ... | @@ -22,13 +22,13 @@ |
| 22 | 22 | :actions="[ |
| 23 | 23 | { |
| 24 | 24 | label: '编辑', |
| 25 | - auth: 'api:yt:admin:editOrg', | |
| 25 | + auth: 'api:yt:organization:update', | |
| 26 | 26 | icon: 'clarity:note-edit-line', |
| 27 | 27 | onClick: handleEdit.bind(null, record), |
| 28 | 28 | }, |
| 29 | 29 | { |
| 30 | 30 | label: '删除', |
| 31 | - auth: 'api:yt:admin:deleteOrg', | |
| 31 | + auth: 'api:yt:organization:delete', | |
| 32 | 32 | icon: 'ant-design:delete-outlined', |
| 33 | 33 | color: 'error', |
| 34 | 34 | popConfirm: { | ... | ... |