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