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: () => (
- }
- style={{ fontSize: 11, fontWeight: 'bold' }}
- >
- 下载
-
- ),
- },
- ];
+ 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: () => (
+ }
+ style={{ fontSize: 11, fontWeight: 'bold' }}
+ >
+ 下载
+
+ ),
+ },
+ ];
- return (
-
-
-
视频回放中心
-
-
+ return (
+
+
+
视频回放中心
+
+
-
-
-
-
-
- 时间跨度
-
-
-
-
-
-
- } style={{ borderRadius: 2 }}>
- 联机检索
-
-
-
-
+
+
+
+
+
+ 时间跨度
+
+
+
+
+
+
+ } style={{ borderRadius: 2 }}>
+ 联机检索
+
+
+
+
-
- ({ ...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;