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 @@