Commit cd4f1697b2466c83c27ed7c7f221ccf5266e3248

Authored by fengtao
1 parent cdfb2483

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

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