diff --git a/public/dz_video.html b/public/dz_video.html index 2f476e0..34e687c 100644 --- a/public/dz_video.html +++ b/public/dz_video.html @@ -81,11 +81,11 @@ } function onServerOpen(time) { - alert("第" + time + "次连接上视频服务器"); + // alert("第" + time + "次连接上视频服务器"); } function onServerClose(time) { - alert("第" + time + "次断开视频服务器"); + // alert("第" + time + "次断开视频服务器"); } //视频================================================================================================ diff --git a/src/api/construction/index.js b/src/api/construction/index.js new file mode 100644 index 0000000..290b283 --- /dev/null +++ b/src/api/construction/index.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' +/* 判断人员管控是否有告警 */ +export function getPersonControlIsWarn(query) { + return request({ + url: '/bracelet/consControl/getPersonControlIsWarn', + method: 'get', + params: query + }) +} diff --git a/src/assets/images/warn_img.png b/src/assets/images/warn_img.png new file mode 100644 index 0000000..ed140c6 Binary files /dev/null and b/src/assets/images/warn_img.png differ diff --git a/src/views/construction/manage/hoistManage/hoistManage.vue b/src/views/construction/manage/hoistManage/hoistManage.vue index 921e21c..2529fb2 100644 --- a/src/views/construction/manage/hoistManage/hoistManage.vue +++ b/src/views/construction/manage/hoistManage/hoistManage.vue @@ -186,6 +186,8 @@ export default { }, // 定时刷新 intervalId: null, + // 选中的吊装设备 + checkDevCode: null }; }, created() { @@ -204,8 +206,8 @@ export default { }, methods: { startRefresh() { - // 每10分钟刷新一次 - this.intervalId = setInterval(this.refreshData, 1000 * 60 * 10); + // 每3分钟刷新一次 + this.intervalId = setInterval(this.refreshData, 1000 * 60 * 3); }, stopRefresh() { if (this.intervalId) { @@ -264,6 +266,21 @@ export default { } else { this.isShow = false; } + if (this.checkDevCode) { + this.devArr.forEach((item, index) => { + if (item.devCode === this.checkDevCode) { + this.devArr[index].status = 'check' + // 设置吊装预警设备动图 + if (warnPosition) { + this.dz_dev_warn_img = require('../../../../assets/gif/' + warnPosition + '.gif'); + } else { + this.dz_dev_warn_img = dz_dev_warn_img; + } + } + }) + // 刷新dom + this.$forceUpdate(); + } }).catch(() => { }) }, /* 加载近电感应设备 */ diff --git a/src/views/construction/manage/index.vue b/src/views/construction/manage/index.vue index 105e13b..b64fba4 100644 --- a/src/views/construction/manage/index.vue +++ b/src/views/construction/manage/index.vue @@ -1,7 +1,10 @@