diff --git a/.env.production b/.env.production index f5561ec..ae6a6f9 100644 --- a/.env.production +++ b/.env.production @@ -2,7 +2,7 @@ VITE_NODE_ENV=production # API 基础路径 - 实际项目中替换为真实的后端接口地址 -VITE_API_BASE_URL=https://api.your-domain.com +VITE_API_BASE_URL=http://127.0.0.1:3000 # 项目基础路径 VITE_BASE_URL=/ diff --git a/src/api/videos.js b/src/api/videos.js new file mode 100644 index 0000000..59c2976 --- /dev/null +++ b/src/api/videos.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +/** + * 获取视频列表 + * @returns {Promise} 返回视频列表数据 + */ +export function getVideoList() { + return request.get('/api/videos/list') +} \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index c176ef6..d58cca2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -269,6 +269,15 @@ const router = createRouter({ title: '无人机管理', keepAlive: true } + }, + { + path: 'videos', + name: 'VideoList', + component: () => import(/* webpackChunkName: "aipatrol" */ '../views/AIPatrol/videos/index.vue'), + meta: { + title: '视频列表', + keepAlive: true + } } ] }, diff --git a/src/views/AIPatrol/videos/index.vue b/src/views/AIPatrol/videos/index.vue new file mode 100644 index 0000000..827dafb --- /dev/null +++ b/src/views/AIPatrol/videos/index.vue @@ -0,0 +1,309 @@ + + + + + + + AI巡检视频列表 + + + + + + + + + 刷新 + + + + + + + + + + + + + + + {{ video.fileName }} + + + + {{ video.createTime }} + + + + {{ formatFileSize(video.fileSize) }} + + + + + + + + + 查看 + + + + 下载 + + + + + + + + + + + + + + + + + + + \ No newline at end of file