From 12079ffb647d751ea438fed4d15c205ea02bdaff Mon Sep 17 00:00:00 2001 From: lzp <1747191978@qq.com> Date: Wed, 14 May 2025 09:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=AE=B6=E5=B1=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/views/index.vue | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.env.production b/.env.production index c5113da..71a8b7b 100644 --- a/.env.production +++ b/.env.production @@ -11,6 +11,6 @@ VUE_APP_IMG_URL = '/multimodal/' VUE_APP_API_QZURL = '/multimodal/' # 访问路径 -VUE_APP_PUBLIC_PATH = '/multimodal_yf/waterTemperature/' +VUE_APP_PUBLIC_PATH = '/multimodal_yf/safetySys/' diff --git a/src/views/index.vue b/src/views/index.vue index 96cf421..948b5d3 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -17,7 +17,7 @@
预警: -
@@ -160,7 +160,20 @@ export default { co: this.form.co, // CO } sendAttribute({ - "attributeParams": JSON.stringify(attributeParams), // 阈值JSON字符串 + "attributeAndValues": [ + { + "attributeIdentifier": "tempThreshold", + "attributeValue": this.form.temperature + }, + { + "attributeIdentifier": "humiThreshold", + "attributeValue": this.form.humidity + }, + { + "attributeIdentifier": "coThreshold", + "attributeValue": this.form.co + } + ], // 阈值JSON字符串 "deviceId": this.deviceId // 设备id }).then(response => { this.getAttributes(this.deviceId); // 根据设备id查找设备信息