From 0e4f543434daa0f1ed912309cf7e5c2d1b20058d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 7 Oct 2025 10:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=B7=A1=E6=A3=80=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtsp-vue/src/views/index.vue | 243 +++++++++--------- rtsp-vue/src/views/video/inspection/index.vue | 7 + .../src/views/video/inspection/record.vue | 12 +- rtsp-vue/vite.config.js | 2 +- 4 files changed, 141 insertions(+), 123 deletions(-) diff --git a/rtsp-vue/src/views/index.vue b/rtsp-vue/src/views/index.vue index 860a71b..7d80de6 100644 --- a/rtsp-vue/src/views/index.vue +++ b/rtsp-vue/src/views/index.vue @@ -1,139 +1,140 @@ - - - diff --git a/rtsp-vue/src/views/video/inspection/index.vue b/rtsp-vue/src/views/video/inspection/index.vue index fea49b4..d070023 100644 --- a/rtsp-vue/src/views/video/inspection/index.vue +++ b/rtsp-vue/src/views/video/inspection/index.vue @@ -103,6 +103,7 @@ 停止 执行 删除 + 详情 @@ -171,6 +172,8 @@ import { listInspection, getInspection, delInspection, addInspection, updateInspection, startTask, stopTask, executeTask } from "@/api/video/inspection"; import { listDevice } from "@/api/video/device"; +import router from '@/router' + const { proxy } = getCurrentInstance(); const { sys_normal_disable } = proxy.useDict('sys_normal_disable'); @@ -290,6 +293,10 @@ function handleUpdate(row) { }); } +function handleDetail(row) { + router.push({ path: "/insrecord", query: { taskId: row.taskId } }); +} + /** 提交按钮 */ function submitForm() { proxy.$refs["inspectionRef"].validate(valid => { diff --git a/rtsp-vue/src/views/video/inspection/record.vue b/rtsp-vue/src/views/video/inspection/record.vue index c91b0ca..982116c 100644 --- a/rtsp-vue/src/views/video/inspection/record.vue +++ b/rtsp-vue/src/views/video/inspection/record.vue @@ -161,6 +161,9 @@ import { listInspection } from "@/api/video/inspection"; const { proxy } = getCurrentInstance(); const { ins_record_status } = proxy.useDict('ins_record_status'); +const route = useRoute(); +const taskId = route.query.taskId; + const inspectionList = ref([]); const inspectionRecordList = ref([]); const open = ref(false); @@ -177,7 +180,7 @@ const data = reactive({ queryParams: { pageNum: 1, pageSize: 20, - taskId: null, + taskId: taskId ? parseInt(taskId) : null, executeTime: null, duration: null, accessory: null, @@ -188,6 +191,13 @@ const data = reactive({ } }); +watch(() => taskId, (newVal) => { + if (newVal) { + queryParams.value.taskId = parseInt(newVal); + getList(); + } +}); + const { queryParams, form, rules } = toRefs(data); /** 查询巡检任务记录列表 */ diff --git a/rtsp-vue/vite.config.js b/rtsp-vue/vite.config.js index 795a97a..20e8094 100644 --- a/rtsp-vue/vite.config.js +++ b/rtsp-vue/vite.config.js @@ -31,7 +31,7 @@ export default defineConfig(({ mode, command }) => { proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': { - target: 'http://localhost:10081', + target: 'http://49.232.154.205:10082', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') },