Showing
1 changed file
with
5 additions
and
4 deletions
... | ... | @@ -2,10 +2,10 @@ |
2 | 2 | <div> |
3 | 3 | <BasicTable @register="registerTable" :clickToRowSelect="false"> |
4 | 4 | <template #toolbar> |
5 | - <Authority value="api:yt:admin:addMessageTemplate"> | |
5 | + <Authority value="api:yt:template:post"> | |
6 | 6 | <a-button type="primary" @click="handleCreate"> 新增消息模板 </a-button> |
7 | 7 | </Authority> |
8 | - <Authority value="api:yt:admin:deleteMessageTemplate"> | |
8 | + <Authority value="api:yt:template:delete"> | |
9 | 9 | <a-button |
10 | 10 | color="error" |
11 | 11 | @click="handleDeleteOrBatchDelete(null)" |
... | ... | @@ -34,18 +34,19 @@ |
34 | 34 | :actions="[ |
35 | 35 | { |
36 | 36 | label: '发送', |
37 | + auth: 'api:yt:template:sendEmail:post', | |
37 | 38 | icon: 'ant-design:send-outlined', |
38 | 39 | onClick: handleModal.bind(null, record), |
39 | 40 | }, |
40 | 41 | { |
41 | 42 | label: '编辑', |
42 | - auth: 'api:yt:admin:editMessageTemplate', | |
43 | + auth: 'api:yt:template:update', | |
43 | 44 | icon: 'clarity:note-edit-line', |
44 | 45 | onClick: handleEdit.bind(null, record), |
45 | 46 | }, |
46 | 47 | { |
47 | 48 | label: '删除', |
48 | - auth: 'api:yt:admin:deleteMessageTemplate', | |
49 | + auth: 'api:yt:template:delete', | |
49 | 50 | icon: 'ant-design:delete-outlined', |
50 | 51 | color: 'error', |
51 | 52 | popConfirm: { | ... | ... |