Commit 8dcb6cc63ee8253f05277299cea0a4fdcbc869d8

Authored by fengtao
1 parent b5f0e1e1

fix:修改设备列表CRUD权限标识

@@ -123,19 +123,19 @@ @@ -123,19 +123,19 @@
123 { 123 {
124 label: '详情', 124 label: '详情',
125 icon: 'ant-design:eye-outlined', 125 icon: 'ant-design:eye-outlined',
126 - auth: 'api:yt:admin:viewDeviceList', 126 + auth: 'api:yt:device:get',
127 onClick: handleDetail.bind(null, record), 127 onClick: handleDetail.bind(null, record),
128 }, 128 },
129 { 129 {
130 label: '编辑', 130 label: '编辑',
131 - auth: 'api:yt:admin:editDeviceList', 131 + auth: 'api:yt:device:update',
132 icon: 'clarity:note-edit-line', 132 icon: 'clarity:note-edit-line',
133 ifShow: authBtn(role) && record.customerId === undefined, 133 ifShow: authBtn(role) && record.customerId === undefined,
134 onClick: handleEdit.bind(null, record), 134 onClick: handleEdit.bind(null, record),
135 }, 135 },
136 { 136 {
137 label: '删除', 137 label: '删除',
138 - auth: 'api:yt:admin:deleteDeviceList', 138 + auth: 'api:yt:device:delete',
139 icon: 'ant-design:delete-outlined', 139 icon: 'ant-design:delete-outlined',
140 ifShow: authBtn(role) && record.customerId === undefined, 140 ifShow: authBtn(role) && record.customerId === undefined,
141 color: 'error', 141 color: 'error',