Showing
1 changed file
with
11 additions
and
8 deletions
| ... | ... | @@ -8,13 +8,15 @@ |
| 8 | 8 | :clickToRowSelect="false" |
| 9 | 9 | > |
| 10 | 10 | <template #toolbar> |
| 11 | - <Authority value="api:yt:admin:addDeviceConfig"> | |
| 11 | + <Authority value="api:yt:deviceProfile:post"> | |
| 12 | 12 | <a-button type="primary" @click="handleCreate"> 新增设备配置 </a-button> |
| 13 | 13 | </Authority> |
| 14 | - <ImpExcel @success="loadDataSuccess" dateFormat="YYYY-MM-DD"> | |
| 15 | - <a-button @click="handleImport"> 导入设备配置 </a-button> | |
| 16 | - </ImpExcel> | |
| 17 | - <Authority value="api:yt:admin:deleteDeviceConfig"> | |
| 14 | + <Authority value="api:yt:deviceProfile:import"> | |
| 15 | + <ImpExcel @success="loadDataSuccess" dateFormat="YYYY-MM-DD"> | |
| 16 | + <a-button @click="handleImport"> 导入设备配置 </a-button> | |
| 17 | + </ImpExcel> | |
| 18 | + </Authority> | |
| 19 | + <Authority value="api:yt:deviceProfile:delete"> | |
| 18 | 20 | <a-button |
| 19 | 21 | type="primary" |
| 20 | 22 | color="error" |
| ... | ... | @@ -50,24 +52,25 @@ |
| 50 | 52 | }, |
| 51 | 53 | { |
| 52 | 54 | label: '详情', |
| 53 | - auth: 'api:yt:admin:viewDeviceConfig', | |
| 55 | + auth: 'api:yt:deviceProfile:get', | |
| 54 | 56 | icon: 'ant-design:eye-outlined', |
| 55 | 57 | onClick: handleDetailView.bind(null, record), |
| 56 | 58 | }, |
| 57 | 59 | { |
| 58 | 60 | label: '编辑', |
| 59 | - auth: 'api:yt:admin:editDeviceConfig', | |
| 61 | + auth: 'api:yt:deviceProfile:update', | |
| 60 | 62 | icon: 'clarity:note-edit-line', |
| 61 | 63 | onClick: handleEdit.bind(null, record), |
| 62 | 64 | }, |
| 63 | 65 | { |
| 64 | 66 | label: '导出', |
| 67 | + auth: 'api:yt:deviceProfile:export', | |
| 65 | 68 | icon: 'ant-design:login-outlined', |
| 66 | 69 | onClick: handleExport.bind(null, record), |
| 67 | 70 | }, |
| 68 | 71 | { |
| 69 | 72 | label: '删除', |
| 70 | - auth: 'api:yt:admin:deleteDeviceConfig', | |
| 73 | + auth: 'api:yt:deviceProfile:delete', | |
| 71 | 74 | icon: 'ant-design:delete-outlined', |
| 72 | 75 | color: 'error', |
| 73 | 76 | popConfirm: { | ... | ... |