diff --git a/public/dz_video.html b/public/dz_video.html index 11b0134..dcf56e7 100644 --- a/public/dz_video.html +++ b/public/dz_video.html @@ -1,210 +1,205 @@ + - - - + + + - - - - - + + + - - -
- 视频服务器IP - - 端口 - - 未操作关闭(0不关闭) - - - 登录用户 -    - 登录密码 -    - -
-
- 设备SIM卡号 - - 通道号 - - 标题 - - 云台 -    - - -
-
- 设备SIM卡号 - - 通道号 -   - -    - - -
-
- 工具栏 - - -      - 行 - 列 -      -    - -
-
+ +
- + - + + \ No newline at end of file diff --git a/src/views/construction/manage/hoistManage/hoistManage.vue b/src/views/construction/manage/hoistManage/hoistManage.vue index 695cd51..5dbb35d 100644 --- a/src/views/construction/manage/hoistManage/hoistManage.vue +++ b/src/views/construction/manage/hoistManage/hoistManage.vue @@ -7,7 +7,8 @@ 查询
-
+
{{ item.proName }}
@@ -29,7 +30,6 @@
-
@@ -156,7 +156,10 @@ export default { }, // 表单校验 rules: {}, - htmlContent: '/dz_video.html' + htmlContent: '/dz_video.html', + nocheckStyle: ['dev-info-box', 'layout', 'nocheck'], + checkStyle: ['dev-info-box', 'layout', 'check'], + warnStyle: ['dev-info-box', 'layout', 'warn'], }; }, created() { @@ -166,14 +169,24 @@ export default { }, mounted() { this.$nextTick(() => { - // this.$refs.iframePage.src = this.htmlContent + '?timestamp=' + new Date().getTime(); this.$refs.iframePage.src = this.htmlContent; - // alert( this.$refs.iframePage.src); }) }, methods: { - openDzVideo(){ - window.open(this.htmlContent); + /* 吊装设备点击赋值 */ + getStyle(item) { + if (!item.status) { + return this.nocheckStyle; + } else if (item.status === 'check') { + return this.checkStyle + } else if (item.status === 'warn') { + return this.warnStyle + } + }, + /* 向吊装视频传递参数 */ + sendParams(devCode, index) { + this.devArr[index].status = 'check' + this.$refs.iframePage.contentWindow.postMessage({ devCode: devCode }, '*'); }, /* 加载吊装预警设备列表 */ laodDzWarnList() { @@ -272,10 +285,6 @@ export default { }, searchData() { this.laodDzWarnList(); - }, - /* 吊装设备点击事件 */ - clickDev(id) { - }, /* 近电感应设备点击事件 */ clickJdDev(id) { @@ -432,7 +441,6 @@ export default { width: 100%; margin: 0 0 4% 0; height: 160px; - border: 1px solid #cccccc; border-radius: 6px; font-size: 15px; justify-content: space-evenly; @@ -443,6 +451,18 @@ export default { cursor: pointer; } +.nocheck { + border: 1px solid #cccccc; +} + +.check { + border: 1px solid green; +} + +.warn { + border: 1px solid red; +} + .dev-info { width: calc(100% - 104px); height: 100%;