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" /> + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + *注意:锁定即参数不可修改;未锁则可以修改。 +
+ +
+
+
+ +
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *注意:锁定即参数不可修改;未锁则可以修改。 -
- -
-
-
- -
+
+
+ 告警配置 +
+
+
+ +
+ +
+ + +
+
+
+ 定时器 +
+
+
+ +
+ +
+ import { updateDevice, resetPssword } from "@/api/iot/device"; import DialogTemplate from "@/components/DialogTemplate"; +import DeviceAlarmConfig from '@/views/profile/DeviceAlarmConfig/DeviceAlarmConfig' +import DeviceTimingConfig from "@/views/profile/DeviceTimingConfig/DeviceTimingConfig" export default { name: "DeviceInfo", props: ["infoData"], - components: {DialogTemplate}, + components: {DialogTemplate, DeviceAlarmConfig, DeviceTimingConfig}, data() { const validatorNull = (rule, value, callback) => { callback(); diff --git a/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue b/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue index f97167c7..91d59301 100644 --- a/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue +++ b/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue @@ -371,7 +371,6 @@ export default { }, // 处理 socket 数据返回 赋值问题 handleDeviceInfo(param) { - console.log( this.list) if (this.list && this.list.length > 0) { this.list = this.list.map((v) => { if (v["deviceKey"] === param["deviceKey"]) { diff --git a/src/views/profile/DeviceAlarmConfig/DeviceAlarmConfig.vue b/src/views/profile/DeviceAlarmConfig/DeviceAlarmConfig.vue new file mode 100644 index 00000000..15576ec3 --- /dev/null +++ b/src/views/profile/DeviceAlarmConfig/DeviceAlarmConfig.vue @@ -0,0 +1,454 @@ + + + + + diff --git a/src/views/profile/DeviceAlarmConfig/ECardItem.vue b/src/views/profile/DeviceAlarmConfig/ECardItem.vue new file mode 100644 index 00000000..e5575d55 --- /dev/null +++ b/src/views/profile/DeviceAlarmConfig/ECardItem.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/views/profile/DeviceTimingConfig/DeviceTimingConfig.vue b/src/views/profile/DeviceTimingConfig/DeviceTimingConfig.vue new file mode 100644 index 00000000..11979fb7 --- /dev/null +++ b/src/views/profile/DeviceTimingConfig/DeviceTimingConfig.vue @@ -0,0 +1,381 @@ + + + + +