Commit 2662f800e90fcc58313ad37db14b1e93470ba7bf

Authored by fengtao
1 parent 57066aa5

fix:修改视频管理CRUD权限标识

@@ -13,10 +13,10 @@ @@ -13,10 +13,10 @@
13 class="w-3/4 xl:w-4/5" 13 class="w-3/4 xl:w-4/5"
14 > 14 >
15 <template #toolbar> 15 <template #toolbar>
16 - <Authority value="api:yt:admin:addCamera"> 16 + <Authority value="api:yt:video: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:deleteCamera"> 19 + <Authority value="api:yt:video:delete">
20 <a-button 20 <a-button
21 type="primary" 21 type="primary"
22 color="error" 22 color="error"
@@ -45,18 +45,18 @@ @@ -45,18 +45,18 @@
45 { 45 {
46 label: '预览', 46 label: '预览',
47 icon: 'clarity:note-edit-line', 47 icon: 'clarity:note-edit-line',
48 - auth: 'api:yt:admin:viewCamera', 48 + auth: 'api:yt:video:get',
49 onClick: handleViewVideo.bind(null, record), 49 onClick: handleViewVideo.bind(null, record),
50 }, 50 },
51 { 51 {
52 label: '编辑', 52 label: '编辑',
53 - auth: 'api:yt:admin:editCamera', 53 + auth: 'api:yt:video:update',
54 icon: 'clarity:note-edit-line', 54 icon: 'clarity:note-edit-line',
55 onClick: handleCreateOrEdit.bind(null, record), 55 onClick: handleCreateOrEdit.bind(null, record),
56 }, 56 },
57 { 57 {
58 label: '删除', 58 label: '删除',
59 - auth: 'api:yt:admin:deleteCamera', 59 + auth: 'api:yt:video:delete',
60 icon: 'ant-design:delete-outlined', 60 icon: 'ant-design:delete-outlined',
61 color: 'error', 61 color: 'error',
62 popConfirm: { 62 popConfirm: {