Commit 73d472e256e03ab2dc8a3ab412d6127ee5c7b6a8
1 parent
565879c8
perf: camera manage add accessMode column
Showing
2 changed files
with
17 additions
and
1 deletions
@@ -52,6 +52,12 @@ export const columns: BasicColumn[] = [ | @@ -52,6 +52,12 @@ export const columns: BasicColumn[] = [ | ||
52 | width: 160, | 52 | width: 160, |
53 | }, | 53 | }, |
54 | { | 54 | { |
55 | + title: '接受方式', | ||
56 | + dataIndex: 'accessMode', | ||
57 | + width: 160, | ||
58 | + slots: { customRender: 'accessMode' }, | ||
59 | + }, | ||
60 | + { | ||
55 | title: '创建时间', | 61 | title: '创建时间', |
56 | dataIndex: 'createTime', | 62 | dataIndex: 'createTime', |
57 | width: 180, | 63 | width: 180, |
@@ -38,6 +38,15 @@ | @@ -38,6 +38,15 @@ | ||
38 | " | 38 | " |
39 | /> | 39 | /> |
40 | </template> | 40 | </template> |
41 | + <template #accessMode="{ record }"> | ||
42 | + <span>{{ | ||
43 | + record.accessMode === AccessMode.ManuallyEnter | ||
44 | + ? '手动输入' | ||
45 | + : record.accessMode === AccessMode.Streaming | ||
46 | + ? '流媒体获取' | ||
47 | + : '' | ||
48 | + }}</span> | ||
49 | + </template> | ||
41 | <template #action="{ record }"> | 50 | <template #action="{ record }"> |
42 | <TableAction | 51 | <TableAction |
43 | :actions="[ | 52 | :actions="[ |
@@ -81,7 +90,7 @@ | @@ -81,7 +90,7 @@ | ||
81 | import CameraDrawer from './CameraDrawer.vue'; | 90 | import CameraDrawer from './CameraDrawer.vue'; |
82 | import { useResetOrganizationTree, OrganizationIdTree } from '/@/views/common/organizationIdTree'; | 91 | import { useResetOrganizationTree, OrganizationIdTree } from '/@/views/common/organizationIdTree'; |
83 | import { cameraPage, deleteCameraManage } from '/@/api/camera/cameraManager'; | 92 | import { cameraPage, deleteCameraManage } from '/@/api/camera/cameraManager'; |
84 | - import { searchFormSchema, columns } from './config.data'; | 93 | + import { searchFormSchema, columns, AccessMode } from './config.data'; |
85 | import VideoPreviewModal from './DialogPreviewVideo.vue'; | 94 | import VideoPreviewModal from './DialogPreviewVideo.vue'; |
86 | import { useModal } from '/@/components/Modal'; | 95 | import { useModal } from '/@/components/Modal'; |
87 | import { Authority } from '/@/components/Authority'; | 96 | import { Authority } from '/@/components/Authority'; |
@@ -181,6 +190,7 @@ | @@ -181,6 +190,7 @@ | ||
181 | organizationIdTreeRef, | 190 | organizationIdTreeRef, |
182 | handleViewVideo, | 191 | handleViewVideo, |
183 | registerModal, | 192 | registerModal, |
193 | + AccessMode, | ||
184 | }; | 194 | }; |
185 | }, | 195 | }, |
186 | }); | 196 | }); |