Showing
1 changed file
with
4 additions
and
4 deletions
@@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
2 | <div> | 2 | <div> |
3 | <BasicTable :clickToRowSelect="false" @register="registerTable"> | 3 | <BasicTable :clickToRowSelect="false" @register="registerTable"> |
4 | <template #toolbar> | 4 | <template #toolbar> |
5 | - <Authority value="api:yt:admin:addDict"> | 5 | + <Authority value="api:yt:dict:post"> |
6 | <a-button type="primary" @click="handleCreate"> 新增字典 </a-button> | 6 | <a-button type="primary" @click="handleCreate"> 新增字典 </a-button> |
7 | </Authority> | 7 | </Authority> |
8 | - <Authority value="api:yt:admin:deleteDict"> | 8 | + <Authority value="api:yt:dict:delete"> |
9 | <a-button | 9 | <a-button |
10 | color="error" | 10 | color="error" |
11 | @click="handleDeleteOrBatchDelete(null)" | 11 | @click="handleDeleteOrBatchDelete(null)" |
@@ -25,13 +25,13 @@ | @@ -25,13 +25,13 @@ | ||
25 | }, | 25 | }, |
26 | { | 26 | { |
27 | label: '编辑', | 27 | label: '编辑', |
28 | - auth: 'api:yt:admin:editDict', | 28 | + auth: 'api:yt:dict:update', |
29 | icon: 'clarity:note-edit-line', | 29 | icon: 'clarity:note-edit-line', |
30 | onClick: handleEdit.bind(null, record), | 30 | onClick: handleEdit.bind(null, record), |
31 | }, | 31 | }, |
32 | { | 32 | { |
33 | label: '删除', | 33 | label: '删除', |
34 | - auth: 'api:yt:admin:deleteDict', | 34 | + auth: 'api:yt:dict:delete', |
35 | icon: 'ant-design:delete-outlined', | 35 | icon: 'ant-design:delete-outlined', |
36 | color: 'error', | 36 | color: 'error', |
37 | popConfirm: { | 37 | popConfirm: { |