Showing
1 changed file
with
4 additions
and
4 deletions
| @@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
| 2 | <div> | 2 | <div> |
| 3 | <BasicTable @register="registerTable" v-show="isStatus === 0"> | 3 | <BasicTable @register="registerTable" v-show="isStatus === 0"> |
| 4 | <template #toolbar> | 4 | <template #toolbar> |
| 5 | - <Authority value="api:yt:admin:addScript"> | 5 | + <Authority value="api:yt:convert:js: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:deleteScript"> | 8 | + <Authority value="api:yt:convert:js:delete"> |
| 9 | <a-button | 9 | <a-button |
| 10 | color="error" | 10 | color="error" |
| 11 | @click="handleDeleteOrBatchDelete(null)" | 11 | @click="handleDeleteOrBatchDelete(null)" |
| @@ -29,13 +29,13 @@ | @@ -29,13 +29,13 @@ | ||
| 29 | :actions="[ | 29 | :actions="[ |
| 30 | { | 30 | { |
| 31 | label: '编辑', | 31 | label: '编辑', |
| 32 | - auth: 'api:yt:admin:editScript', | 32 | + auth: 'api:yt:convert:js:update', |
| 33 | icon: 'clarity:note-edit-line', | 33 | icon: 'clarity:note-edit-line', |
| 34 | onClick: handleEdit.bind(null, record), | 34 | onClick: handleEdit.bind(null, record), |
| 35 | }, | 35 | }, |
| 36 | { | 36 | { |
| 37 | label: '删除', | 37 | label: '删除', |
| 38 | - auth: 'api:yt:admin:deleteScript', | 38 | + auth: 'api:yt:convert:js:delete', |
| 39 | icon: 'ant-design:delete-outlined', | 39 | icon: 'ant-design:delete-outlined', |
| 40 | ifShow: record.status == 0, | 40 | ifShow: record.status == 0, |
| 41 | color: 'error', | 41 | color: 'error', |