From d6fdc093117e3afbd5dd4db04914ec40222dfcc9 Mon Sep 17 00:00:00 2001 From: nieli <329261568@qq.com> Date: Fri, 9 Dec 2022 08:38:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=20=E5=91=8A=E8=AD=A6=E9=85=8D=E7=BD=AE=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8=E9=85=8D=E7=BD=AE=20=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +- src/api/iot/device.js | 52 ++ src/views/iot/device/index.vue | 271 ++++++----- src/views/iot/device/profile/info.vue | 30 +- .../profileV2/DeviceManage/EDeviceTable.vue | 1 - .../DeviceAlarmConfig/DeviceAlarmConfig.vue | 454 ++++++++++++++++++ .../profile/DeviceAlarmConfig/ECardItem.vue | 53 ++ .../DeviceTimingConfig/DeviceTimingConfig.vue | 381 +++++++++++++++ 8 files changed, 1113 insertions(+), 135 deletions(-) create mode 100644 src/views/profile/DeviceAlarmConfig/DeviceAlarmConfig.vue create mode 100644 src/views/profile/DeviceAlarmConfig/ECardItem.vue create mode 100644 src/views/profile/DeviceTimingConfig/DeviceTimingConfig.vue diff --git a/.env.development b/.env.development index 7c8827db..e859f106 100644 --- a/.env.development +++ b/.env.development @@ -13,10 +13,12 @@ port= 9988 # 服务端地址 // 陈志荣 本地 //target = http://192.168.18.140:8899 +// 黄明 本地 + target = http://192.168.18.134:8899 //target = http://192.168.18.139:8899 // target = http://192.168.18.136:8899 // 测试端 -// target = http://192.168.10.241:32024 +// target = http://192.168.10.241:32024 // 开发端 - target = http://192.168.10.241:30646 +// target = http://192.168.10.241:30646 diff --git a/src/api/iot/device.js b/src/api/iot/device.js index 303ec9e0..7167c1a1 100644 --- a/src/api/iot/device.js +++ b/src/api/iot/device.js @@ -178,3 +178,55 @@ export function listChildrenDevice(query) { params: query }); } + +// 获取 断路器设备 告警配置 +export function getDeviceAlarmConfig(devKey) { + return request({ + url: "/iot/alarm/" + devKey, + method: "get", + }); +} + +// 更新告警配置 +export function updateDeviceAlarmConfig(data) { + return request({ + url: "/iot/alarm/", + method: "put", + data: data + }); +} + +// 同步设备告警配置 +export function deviceSendAlarmConfig(data) { + return request({ + url: "/iot/dev/opt/setalarm", + method: "post", + data: data + }); +} + +// 获取 断路器设备 定时器配置 +export function getDeviceTimingConfig(devKey) { + return request({ + url: "/iot/timer/" + devKey, + method: "get", + }); +} + +// 更新 断路器设备 定时器配置 +export function updateDeviceTimingConfig(data) { + return request({ + url: "/iot/timer", + method: "put", + data: data + }); +} + +// 同步 断路器设备 定时器配置 +export function deviceSendTimingConfig(data) { + return request({ + url: "/iot/dev/opt/settimer", + method: "post", + data: data + }); +} diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index a9a824b0..be5cd709 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -239,138 +239,147 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> + + +