Showing
1 changed file
with
4 additions
and
4 deletions
@@ -13,10 +13,10 @@ | @@ -13,10 +13,10 @@ | ||
13 | :clickToRowSelect="false" | 13 | :clickToRowSelect="false" |
14 | > | 14 | > |
15 | <template #toolbar> | 15 | <template #toolbar> |
16 | - <Authority value="api:yt:admin:addAlarmConfig"> | 16 | + <Authority value="api:yt:alarm:profile:post"> |
17 | <a-button type="primary" @click="handleCreateOrEdit(null)"> 新增告警配置 </a-button> | 17 | <a-button type="primary" @click="handleCreateOrEdit(null)"> 新增告警配置 </a-button> |
18 | </Authority> | 18 | </Authority> |
19 | - <Authority value="api:yt:admin:deleteAlarmConfig"> | 19 | + <Authority value="api:yt:alarm:profile:delete"> |
20 | <a-button | 20 | <a-button |
21 | type="primary" | 21 | type="primary" |
22 | color="error" | 22 | color="error" |
@@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
51 | :actions="[ | 51 | :actions="[ |
52 | { | 52 | { |
53 | label: '编辑', | 53 | label: '编辑', |
54 | - auth: 'api:yt:admin:editAlarmConfig', | 54 | + auth: 'api:yt:alarm:profile:update', |
55 | icon: 'clarity:note-edit-line', | 55 | icon: 'clarity:note-edit-line', |
56 | onClick: handleCreateOrEdit.bind(null, record), | 56 | onClick: handleCreateOrEdit.bind(null, record), |
57 | ifShow: () => { | 57 | ifShow: () => { |
@@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
60 | }, | 60 | }, |
61 | { | 61 | { |
62 | label: '删除', | 62 | label: '删除', |
63 | - auth: 'api:yt:admin:deleteAlarmConfig', | 63 | + auth: 'api:yt:alarm:profile:delete', |
64 | icon: 'ant-design:delete-outlined', | 64 | icon: 'ant-design:delete-outlined', |
65 | color: 'error', | 65 | color: 'error', |
66 | ifShow: () => { | 66 | ifShow: () => { |