Commit 4f9ecca0556ef82a61f999c68d7dc9a749bdd775

Authored by fengtao
1 parent 8dcb6cc6

fix:修改设备配置CRUD权限标识

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