From bb3371454836ac6f47dfb360d0ae04b12cc59cbf Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Fri, 15 May 2026 17:32:58 +0800 Subject: [PATCH] xx --- src/pages/Downloads.tsx | 215 ++++++++++++++++++++-------------------- src/pages/Video.tsx | 1 - 2 files changed, 107 insertions(+), 109 deletions(-) diff --git a/src/pages/Downloads.tsx b/src/pages/Downloads.tsx index 7ce62c1..846afdc 100644 --- a/src/pages/Downloads.tsx +++ b/src/pages/Downloads.tsx @@ -1,120 +1,119 @@ import React from 'react'; -import { - Table, - Button, - DatePicker, - Space, - Typography, - Card, - Segmented, - Row, - Col, +import { + Table, + Button, + DatePicker, + Space, + Typography, + Card, + Segmented, + Row, + Col, } from 'antd'; -import { - DownloadOutlined, - VideoCameraOutlined, - CalendarOutlined, - SearchOutlined +import { + DownloadOutlined, + VideoCameraOutlined, + CalendarOutlined, + SearchOutlined } from '@ant-design/icons'; -import { VIDEOS } from '../constants'; const { Text, Title } = Typography; const { RangePicker } = DatePicker; export default function Downloads() { - const columns = [ - { - title: '文件详情', - key: 'file', - render: (record: any) => ( - -
- -
- - ROB_{record.id}_RAW.mp4 - Cloud-Storage-01 - -
- ), - }, - { - title: '源设备', - dataIndex: 'deviceName', - key: 'deviceName', - render: (text: string) => {text}, - }, - { - title: '起止时间', - key: 'duration', - render: (record: any) => ( - - {record.startTime.split(' ')[1]} -
- {record.endTime.split(' ')[1]} - - ), - }, - { - title: '容量', - dataIndex: 'size', - key: 'size', - render: (text: string) => {text}, - }, - { - title: '操作', - key: 'action', - align: 'right' as const, - render: () => ( - - ), - }, - ]; + const columns = [ + { + title: '文件详情', + key: 'file', + render: (record: any) => ( + +
+ +
+ + ROB_{record.id}_RAW.mp4 + Cloud-Storage-01 + +
+ ), + }, + { + title: '源设备', + dataIndex: 'deviceName', + key: 'deviceName', + render: (text: string) => {text}, + }, + { + title: '起止时间', + key: 'duration', + render: (record: any) => ( + + {record.startTime.split(' ')[1]} +
+ {record.endTime.split(' ')[1]} + + ), + }, + { + title: '容量', + dataIndex: 'size', + key: 'size', + render: (text: string) => {text}, + }, + { + title: '操作', + key: 'action', + align: 'right' as const, + render: () => ( + + ), + }, + ]; - return ( -
-
- 视频回放中心 - -
+ return ( +
+
+ 视频回放中心 + +
- - - - - - 时间跨度 - - - - - - - - - - + + + + + + 时间跨度 + + + + + + + + + + - - ({ ...v, key: v.id }))} - pagination={{ pageSize: 12, size: 'small' }} - /> - - - ); + +
({ ...v, key: v.id }))} + pagination={{ pageSize: 12, size: 'small' }} + /> + + + ); } diff --git a/src/pages/Video.tsx b/src/pages/Video.tsx index ef9d1e3..41057d2 100644 --- a/src/pages/Video.tsx +++ b/src/pages/Video.tsx @@ -27,7 +27,6 @@ import { AlertOutlined, EyeOutlined } from '@ant-design/icons'; -import { DEVICES } from '../constants'; const { Text, Title } = Typography;