From 02dfecfcadfad7593ecdab4665d78ee14ad796a3 Mon Sep 17 00:00:00 2001 From: Li xia <2309368887@qq.com> Date: Tue, 27 Aug 2024 14:03:14 +0800 Subject: [PATCH] =?UTF-8?q?fest:"=E5=A4=A7=E5=B1=8F=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E8=B0=83=E6=95=B4"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigScreen/enpComponents/pollutant.vue | 91 +++++++++++- .../bigScreen/enpComponents/transport.vue | 42 +++--- src/views/bigScreen/enpComponents/video.vue | 140 +++++++++++++----- src/views/em/equipment.vue | 4 +- src/views/em/equipment_form.vue | 137 +++++------------ src/views/em/equipmentjk.vue | 35 +---- 6 files changed, 260 insertions(+), 189 deletions(-) diff --git a/src/views/bigScreen/enpComponents/pollutant.vue b/src/views/bigScreen/enpComponents/pollutant.vue index 4330aaac..2c19a7fd 100644 --- a/src/views/bigScreen/enpComponents/pollutant.vue +++ b/src/views/bigScreen/enpComponents/pollutant.vue @@ -223,6 +223,21 @@
TSP: 0.000 m³/h
+ +
+
+
+
+ 监控设备 +
+
+ + {{ eqj.name }} +
+ + +
+
@@ -255,6 +270,7 @@ export default { eqs: {}, eqc: {}, eqz: {}, + eqj: {}, pollutantDetail: false, query: {}, apiObj: this.$API.enp.drain.list, @@ -316,7 +332,8 @@ export default { } }, mounted() { - + let that = this; + that.init(); }, methods: { initDom() { @@ -363,7 +380,13 @@ export default { that.getDetailData(2, id); } else if (res.type == 30) { //治理设备 that.eqz = res; + that.getDetailData(3, id); + } + else if (res.type == 50) { //监控设备 + debugger; + this.login(res);//监控摄像头 + that.eqj = res; } }) }); @@ -425,6 +448,70 @@ export default { this.pollutantDetail = false; this.detailItem = {}; }, + + //监控摄像头 + //初始化插件 + init() { + + WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin"); + //初始化 + alert(1) + WebVideoCtrl.I_InitPlugin("divPlugin", 200, 200, { + iWndowType: 2, //分裂系数N*N + bWndFull: true, //双击全屏 + cbInitPluginCompleted: function () { + alert(1) + WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin").then(() => { + // 检查插件是否最新 + WebVideoCtrl.I_CheckPluginVersion().then((bFlag) => { + if (bFlag) { + alert("检测到新的插件版本,双击开发包目录里的HCWebSDKPlugin.exe升级!"); + } + }); + }, () => { + alert("插件初始化失败,请确认是否已安装插件;如果未安装,请双击开发包目录里的HCWebSDKPlugin.exe安装!"); + }); + + }, + }); + + }, + + //摄像头登录 + login(jkdata){ + + WebVideoCtrl.I_Login( + jkdata.ip, + 1, + jkdata.port, + jkdata.login_name, + jkdata.login_pwd, + { + async: true, + cgi: 1, + success: (xmlDoc) => { + console.log("登录成功", xmlDoc); + //预览 + WebVideoCtrl.I_StartRealPlay(szIp + "_" + ipPort, { + success: () => { + console.log("预览成功"); + }, + }); + }, + error: (xmlDoc) => { + console.log("登录失败", xmlDoc); + }, + } + ); + } + } } - \ No newline at end of file + + diff --git a/src/views/bigScreen/enpComponents/transport.vue b/src/views/bigScreen/enpComponents/transport.vue index 43e64cb7..78d217c7 100644 --- a/src/views/bigScreen/enpComponents/transport.vue +++ b/src/views/bigScreen/enpComponents/transport.vue @@ -58,27 +58,27 @@ background-color: rgb(4, 50, 83); box-shadow: inset 0px 0px 30px 15px rgb(7, 79, 109)" v-model="dialogFormVisible" title="车辆运输台账详情" > - {{ ysdata.crkbh }} - {{ ysdata.dzbh }} - {{ ysdata.tgfs }} - {{ ysdata.jcsj }} - {{ ysdata.ccsj }} - {{ ysdata.cllx }} - {{ ysdata.clys }} - {{ ysdata.cph }} - {{ ysdata.zcdjsj }} - {{ ysdata.cpsbdm }} - {{ ysdata.clppxh }} - {{ ysdata.fdjhm }} - {{ ysdata.rllx }} - {{ ysdata.pfjd }} - {{ ysdata.syxz }} - {{ ysdata.lwzt }} - {{ ysdata.jcyshwmc }} - {{ ysdata.jchwl }} - {{ ysdata.cchwmc }} - {{ ysdata.cchwl }} - {{ ysdata.cdmc }} + {{ ysdata.crkbh }} + {{ ysdata.dzbh }} + {{ ysdata.tgfs }} + {{ ysdata.jcsj }} + {{ ysdata.ccsj }} + {{ ysdata.cllx }} + {{ ysdata.clys }} + {{ ysdata.cph }} + {{ ysdata.zcdjsj }} + {{ ysdata.cpsbdm }} + {{ ysdata.clppxh }} + {{ ysdata.fdjhm }} + {{ ysdata.rllx }} + {{ ysdata.pfjd }} + {{ ysdata.syxz }} + {{ ysdata.lwzt }} + {{ ysdata.jcyshwmc }} + {{ ysdata.jchwl }} + {{ ysdata.cchwmc }} + {{ ysdata.cchwl }} + {{ ysdata.cdmc }}
diff --git a/src/views/bigScreen/enpComponents/video.vue b/src/views/bigScreen/enpComponents/video.vue index ac64f767..88ce17b6 100644 --- a/src/views/bigScreen/enpComponents/video.vue +++ b/src/views/bigScreen/enpComponents/video.vue @@ -3,18 +3,29 @@
- 登录 - 预览 - 停止预览 - 登出设备 - 销毁设备 - 初始化设备 +
+ 登录 + 预览 + 停止预览 + 登出设备 + 销毁设备 + 初始化设备 + + + + + +
+
diff --git a/src/views/em/equipment.vue b/src/views/em/equipment.vue index f5760a78..217eeba0 100644 --- a/src/views/em/equipment.vue +++ b/src/views/em/equipment.vue @@ -159,7 +159,7 @@