From b9f6684b53545d12e64c8822c1fdb89af4f144fc Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Tue, 5 Aug 2025 10:42:22 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=91=84=E5=83=8F=E5=A4=B4?=
=?UTF-8?q?=E8=AE=A1=E5=88=92=E8=AE=BE=E7=BD=AE=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../camera/components/CameraPictureConfig.vue | 6 ++++
src/views/iot/tplink/camera/index.vue | 3 ++
.../tplink/plan/components/PlanAddForm.vue | 32 +++++++++++--------
src/views/iot/tplink/plan/plan.data.ts | 5 +++
4 files changed, 33 insertions(+), 13 deletions(-)
diff --git a/src/views/iot/tplink/camera/components/CameraPictureConfig.vue b/src/views/iot/tplink/camera/components/CameraPictureConfig.vue
index 9efabd1..f950608 100644
--- a/src/views/iot/tplink/camera/components/CameraPictureConfig.vue
+++ b/src/views/iot/tplink/camera/components/CameraPictureConfig.vue
@@ -109,6 +109,9 @@
-->
+
+
+
@@ -128,6 +131,7 @@ import {ref, onMounted, reactive, onUnmounted} from "vue";
import CameraSoundAlarmForm from './CameraSoundAlarmForm.vue';//声音报警
import CameraRecordList from './CameraRecordList.vue';//录像列表
import CameraUploadForm from './CameraUploadForm.vue';//上传FTP
+ import PlanAddForm from '/@/views/iot/tplink/plan/components/PlanAddForm.vue';//录像设置
import { useMessage } from "@/hooks/web/useMessage";
const { createMessage } = useMessage();
@@ -208,6 +212,7 @@ import {ref, onMounted, reactive, onUnmounted} from "vue";
function edit(record) {
formData.deviceIndex = record.deviceIndex;
+ formData.deviceName = record.deviceName;
formData.parentId = record.parentId;
formData.multitrans = record.multitrans;
formData.projectId = record.projectId;
@@ -215,6 +220,7 @@ function edit(record) {
formData.ip = record.ip;
cameraData.value.deviceIndex = formData.deviceIndex;
+ cameraData.value.deviceName = formData.deviceName;
cameraData.value.projectId = formData.projectId;
cameraData.value.regionId = formData.regionId;
cameraData.value.multitrans = formData.multitrans;
diff --git a/src/views/iot/tplink/camera/index.vue b/src/views/iot/tplink/camera/index.vue
index 272f745..dbdcb38 100644
--- a/src/views/iot/tplink/camera/index.vue
+++ b/src/views/iot/tplink/camera/index.vue
@@ -155,14 +155,17 @@ function handleSuccess() {
* 画面配置
*/
function handlePicConfig(record) {
+ console.log("🚀 ~ handlePicConfig ~ record:", record)
var params = {
deviceIndex: record.deviceIndex,
+ deviceName: record.deviceName,
parentId: record.parentId,
multitrans: record.multitrans,
projectId: record.projectId,
regionId: record.regionId,
ip: record.ip
}
+ console.log("🚀 ~ handlePicConfig ~ params:", params)
cameraPictureConfigModal.value.disableSubmit = true;
cameraPictureConfigModal.value.edit(params);
}
diff --git a/src/views/iot/tplink/plan/components/PlanAddForm.vue b/src/views/iot/tplink/plan/components/PlanAddForm.vue
index d31a511..b8b54c1 100644
--- a/src/views/iot/tplink/plan/components/PlanAddForm.vue
+++ b/src/views/iot/tplink/plan/components/PlanAddForm.vue
@@ -1,7 +1,7 @@
- 2.选择录像存储位置、码流、计划
+ 选择录像存储位置、码流、计划
@@ -25,6 +25,9 @@
+
@@ -32,11 +35,12 @@