Commit 57066aa54d0965f0e2a97539c9ec198ed1c9e4a9

Authored by fengtao
1 parent 772e00a5

fix:修改消息模板CRUD权限标识

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