From b64ae957ba13cb811df9b3ec9d54b3f8deaaa9ca Mon Sep 17 00:00:00 2001
From: fanluyan <754122931@qq.com>
Date: Wed, 6 Sep 2023 10:42:27 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=BC=B9=E7=AA=97=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E8=A3=85=E7=BD=AE=E7=BC=96=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/adddeviceDialog copy.vue | 17 +
.../components/setdevice_yh.vue | 508 ++++++++++++++++++
.../components/setdevicebak.vue | 248 ---------
.../components/parameterSetDialog.vue | 6 +
4 files changed, 531 insertions(+), 248 deletions(-)
create mode 100644 src/views/devicePhotoSchedule/components/setdevice_yh.vue
delete mode 100644 src/views/devicePhotoSchedule/components/setdevicebak.vue
diff --git a/src/views/devicePhotoSchedule/components/adddeviceDialog copy.vue b/src/views/devicePhotoSchedule/components/adddeviceDialog copy.vue
index d559381..380e565 100644
--- a/src/views/devicePhotoSchedule/components/adddeviceDialog copy.vue
+++ b/src/views/devicePhotoSchedule/components/adddeviceDialog copy.vue
@@ -258,3 +258,20 @@ export default {
}
}
+paramsFn() { this.params.push( { name: "act", value: "schedule", }, { name:
+"channel", value: this.checkedAisle, }, { name: "group", value: this.groupNum, }
+); this.setTermFn(this.params); }, setTermFn(dataParams) {
+console.log("点击了统一的接口", "runningstatus"); console.log(dataParams);
+setTermCamera({ termId: 10027, list: dataParams, }) .then((res) => {
+console.log(res); this.requestid = res.data.requestId;
+clearInterval(this.timer); this.timer = window.setInterval(() => {
+this.getinfo(); this.imun++; }, 1000); }) .catch((err) => {}); }, getinfo() {
+getTermCameraRequest({ requestid: this.requestid }) .then((res) => { if
+(res.data.success == 1) { window.clearInterval(this.timer); this.timer = null;
+this.imun = 0; console.log("终止轮询"); // && res.data.result == 255
+console.log(JSON.parse(res.data.data)); this.$message({ duration: 1500,
+showClose: true, message: "信息已更新", type: "success", }); } else if
+(this.imun > 9) { window.clearInterval(this.timer); this.timer = null; this.imun
+= 0; this.$message({ duration: 1500, showClose: true, message:
+"暂未获取到信息,请稍后再试!!", type: "warning", }); } }) .catch((err) => {});
+},
diff --git a/src/views/devicePhotoSchedule/components/setdevice_yh.vue b/src/views/devicePhotoSchedule/components/setdevice_yh.vue
new file mode 100644
index 0000000..83022b4
--- /dev/null
+++ b/src/views/devicePhotoSchedule/components/setdevice_yh.vue
@@ -0,0 +1,508 @@
+
+ 时间表规则:
+ 时间表规则:
-