Showing
1 changed file
with
5 additions
and
5 deletions
| ... | ... | @@ -8,10 +8,10 @@ |
| 8 | 8 | /> |
| 9 | 9 | <BasicTable :clickToRowSelect="false" @register="registerTable" class="w-3/4 xl:w-4/5"> |
| 10 | 10 | <template #toolbar> |
| 11 | - <Authority value="api:yt:admin:addAccount"> | |
| 11 | + <Authority value="api:yt:user:post"> | |
| 12 | 12 | <a-button type="primary" @click="handleCreate">新增账号</a-button> |
| 13 | 13 | </Authority> |
| 14 | - <Authority value="api:yt:admin:deleteAccount"> | |
| 14 | + <Authority value="api:yt:user:delete"> | |
| 15 | 15 | <a-button |
| 16 | 16 | color="error" |
| 17 | 17 | @click="handleDeleteOrBatchDelete(null)" |
| ... | ... | @@ -45,7 +45,7 @@ |
| 45 | 45 | :actions="[ |
| 46 | 46 | { |
| 47 | 47 | label: '用户详情', |
| 48 | - auth: 'api:yt:admin:viewAccount', | |
| 48 | + auth: 'api:yt:user:get', | |
| 49 | 49 | icon: 'clarity:info-standard-line', |
| 50 | 50 | tooltip: '用户详情', |
| 51 | 51 | onClick: handleView.bind(null, record), |
| ... | ... | @@ -53,7 +53,7 @@ |
| 53 | 53 | }, |
| 54 | 54 | { |
| 55 | 55 | label: '编辑', |
| 56 | - auth: 'api:yt:admin:editAccount', | |
| 56 | + auth: 'api:yt:user:update', | |
| 57 | 57 | icon: 'clarity:note-edit-line', |
| 58 | 58 | tooltip: '编辑', |
| 59 | 59 | onClick: handleEdit.bind(null, record), |
| ... | ... | @@ -61,7 +61,7 @@ |
| 61 | 61 | }, |
| 62 | 62 | { |
| 63 | 63 | label: '删除', |
| 64 | - auth: 'api:yt:admin:deleteAccount', | |
| 64 | + auth: 'api:yt:user:delete', | |
| 65 | 65 | icon: 'ant-design:delete-outlined', |
| 66 | 66 | color: 'error', |
| 67 | 67 | tooltip: '删除', | ... | ... |