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 | 52 | width: 160, |
| 53 | 53 | }, |
| 54 | 54 | { |
| 55 | + title: '接受方式', | |
| 56 | + dataIndex: 'accessMode', | |
| 57 | + width: 160, | |
| 58 | + slots: { customRender: 'accessMode' }, | |
| 59 | + }, | |
| 60 | + { | |
| 55 | 61 | title: '创建时间', |
| 56 | 62 | dataIndex: 'createTime', |
| 57 | 63 | width: 180, | ... | ... |
| ... | ... | @@ -38,6 +38,15 @@ |
| 38 | 38 | " |
| 39 | 39 | /> |
| 40 | 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 | 50 | <template #action="{ record }"> |
| 42 | 51 | <TableAction |
| 43 | 52 | :actions="[ |
| ... | ... | @@ -81,7 +90,7 @@ |
| 81 | 90 | import CameraDrawer from './CameraDrawer.vue'; |
| 82 | 91 | import { useResetOrganizationTree, OrganizationIdTree } from '/@/views/common/organizationIdTree'; |
| 83 | 92 | import { cameraPage, deleteCameraManage } from '/@/api/camera/cameraManager'; |
| 84 | - import { searchFormSchema, columns } from './config.data'; | |
| 93 | + import { searchFormSchema, columns, AccessMode } from './config.data'; | |
| 85 | 94 | import VideoPreviewModal from './DialogPreviewVideo.vue'; |
| 86 | 95 | import { useModal } from '/@/components/Modal'; |
| 87 | 96 | import { Authority } from '/@/components/Authority'; |
| ... | ... | @@ -181,6 +190,7 @@ |
| 181 | 190 | organizationIdTreeRef, |
| 182 | 191 | handleViewVideo, |
| 183 | 192 | registerModal, |
| 193 | + AccessMode, | |
| 184 | 194 | }; |
| 185 | 195 | }, |
| 186 | 196 | }); | ... | ... |