From c2b6083e1ea0444b228d97553e92caf8d4aa8fce Mon Sep 17 00:00:00 2001 From: zch Date: Mon, 17 Mar 2025 11:12:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor(record):=20=E7=A7=BB=E9=99=A4=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=92=AD=E6=94=BE=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 VideoPlayer 组件的实现 - 移除了旧的 OldVideoPlayer组件 - 注释掉了路由配置中的视频播放页面 - 删除了 recordInspectionCabinet 中的视频播放相关代码 --- ruoyi-ui/src/api/base/baseBusbarInfo.js | 4 + ruoyi-ui/src/router/index.js | 7 +- .../OldVideoPlayer.vue | 180 ------------------ .../recordInspectionCabinet/VideoPlayer.vue | 2 + .../record/recordInspectionCabinet/index.vue | 6 +- 5 files changed, 13 insertions(+), 186 deletions(-) delete mode 100644 ruoyi-ui/src/views/record/recordInspectionCabinet/OldVideoPlayer.vue diff --git a/ruoyi-ui/src/api/base/baseBusbarInfo.js b/ruoyi-ui/src/api/base/baseBusbarInfo.js index 8446005..f78bb2d 100644 --- a/ruoyi-ui/src/api/base/baseBusbarInfo.js +++ b/ruoyi-ui/src/api/base/baseBusbarInfo.js @@ -53,6 +53,10 @@ export function countBusbar() { }) } + +/** + * 查询母排信息列表 + */ export function baseBusbarInfolist(data) { return request({ url: '/base/baseBusbarInfo/baseBusbarInfolist', diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 2403c1e..35b9718 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -8,7 +8,8 @@ Vue.use(Router) import Layout from '@/layout' import BoardLayout from '@/layout/index2' /*import VideoPlayer from "@/views/record/recordInspectionCabinet/OldVideoPlayer.vue";*/ -import VideoPlayer from "@/views/record/recordInspectionCabinet/VideoPlayer.vue"; +// import VideoPlayer from "@/views/record/recordInspectionCabinet/VideoPlayer.vue"; + /** * Note: 路由配置项 * @@ -49,11 +50,11 @@ export const constantRoutes = [ component: () => import('@/views/login'), hidden: true }, - { +/* { path: '/video-player', component: VideoPlayer - }, + },*/ { path: '/register', component: () => import('@/views/register'), diff --git a/ruoyi-ui/src/views/record/recordInspectionCabinet/OldVideoPlayer.vue b/ruoyi-ui/src/views/record/recordInspectionCabinet/OldVideoPlayer.vue deleted file mode 100644 index ec79dfe..0000000 --- a/ruoyi-ui/src/views/record/recordInspectionCabinet/OldVideoPlayer.vue +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - - diff --git a/ruoyi-ui/src/views/record/recordInspectionCabinet/VideoPlayer.vue b/ruoyi-ui/src/views/record/recordInspectionCabinet/VideoPlayer.vue index 18f34a7..70f0318 100644 --- a/ruoyi-ui/src/views/record/recordInspectionCabinet/VideoPlayer.vue +++ b/ruoyi-ui/src/views/record/recordInspectionCabinet/VideoPlayer.vue @@ -1,3 +1,4 @@ + diff --git a/ruoyi-ui/src/views/record/recordInspectionCabinet/index.vue b/ruoyi-ui/src/views/record/recordInspectionCabinet/index.vue index 21b4cdb..4af3356 100644 --- a/ruoyi-ui/src/views/record/recordInspectionCabinet/index.vue +++ b/ruoyi-ui/src/views/record/recordInspectionCabinet/index.vue @@ -463,16 +463,16 @@ export default { }, `recordInspectionCabinet_${new Date().getTime()}.xlsx`) }, - openVideoPage(filePath) { +/* openVideoPage(filePath) { if(filePath){ const url = `/video-player`; - /* this.$router.push({path:url,query: {filePath}});*/ + /!* this.$router.push({path:url,query: {filePath}});*!/ const fullPath = `${url}?filePath=${encodeURIComponent(filePath)}`; window.open(fullPath, '_blank'); }else { this.$modal.msgError("暂无文件路径"); } - }, + },*/ } };