Commit cd4f1697b2466c83c27ed7c7f221ccf5266e3248

Authored by fengtao
1 parent cdfb2483

fix:修改通知管理CRUD权限标识

@@ -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:addNotify"> 5 + <Authority value="api:yt:notice:send:post">
6 <a-button type="primary" @click="handleAdd">新增通知</a-button> 6 <a-button type="primary" @click="handleAdd">新增通知</a-button>
7 </Authority> 7 </Authority>
8 - <Authority value="api:yt:admin:deleteNotify"> 8 + <Authority value="api:yt:notice:delete">
9 <a-button 9 <a-button
10 color="error" 10 color="error"
11 @click="handleDeleteOrBatchDelete(null)" 11 @click="handleDeleteOrBatchDelete(null)"
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 :actions="[ 20 :actions="[
21 { 21 {
22 label: '查看', 22 label: '查看',
23 - auth: 'api:yt:admin:viewNotify', 23 + auth: 'api:yt:notice:get',
24 icon: 'ant-design:eye-outlined', 24 icon: 'ant-design:eye-outlined',
25 onClick: handleView.bind(null, record), 25 onClick: handleView.bind(null, record),
26 ifShow: (_action) => { 26 ifShow: (_action) => {
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 }, 30 },
31 { 31 {
32 label: '编辑', 32 label: '编辑',
33 - auth: 'api:yt:admin:editNotify', 33 + auth: 'api:yt:notice:update',
34 icon: 'clarity:note-edit-line', 34 icon: 'clarity:note-edit-line',
35 onClick: handleEdit.bind(null, record), 35 onClick: handleEdit.bind(null, record),
36 ifShow: (_action) => { 36 ifShow: (_action) => {
@@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
40 }, 40 },
41 { 41 {
42 label: '删除', 42 label: '删除',
43 - auth: 'api:yt:admin:deleteNotify', 43 + auth: 'api:yt:notice:delete',
44 icon: 'ant-design:delete-outlined', 44 icon: 'ant-design:delete-outlined',
45 color: 'error', 45 color: 'error',
46 ifShow: record.creator === userId, 46 ifShow: record.creator === userId,