From 2c1c110c55de21e9930a8a16b8a203a8d5317350 Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Fri, 17 Mar 2023 14:30:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=95=B0=E7=82=B9=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E4=B8=A4=E4=BD=8D=E8=AE=A1=E7=AE=97=E4=BF=AE=E6=AD=A3=EF=BC=9B?= =?UTF-8?q?=E6=9A=96=E8=A1=A8=E6=9E=84=E4=BB=B6=E6=A5=BC=E5=B1=82=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E4=B8=BAinit=E8=A7=A3=E5=86=B3=E6=9E=84=E4=BB=B6?= =?UTF-8?q?=E6=9C=AA=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98=EF=BC=9B=E7=85=A7?= =?UTF-8?q?=E6=98=8E=E6=81=A2=E5=A4=8D=E7=8A=B6=E6=80=81=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E6=A0=87=E7=AD=BE=E5=92=8C=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E4=B8=8D=E4=BD=BF=E7=94=A8resetStatus=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/monitoring/light.vue | 2 + src/components/monitoring/warm.vue | 108 +++++++++++------- src/util/bfHelper.js | 5 +- src/views/garden/generalizePattern.vue | 2 +- .../sourceAnaly/components/consumeAnaly.vue | 2 +- src/views/sourceAnaly/totalCenter.vue | 2 +- 6 files changed, 75 insertions(+), 46 deletions(-) diff --git a/src/components/monitoring/light.vue b/src/components/monitoring/light.vue index a5bb8a7..ac036fa 100644 --- a/src/components/monitoring/light.vue +++ b/src/components/monitoring/light.vue @@ -365,6 +365,8 @@ export default { if (newval) { // 模型恢复全部状态 // bfHelper.resetStatus(2); + bfHelper.clearDrawableContainer(); + bfHelper.clearTags(); if (newval == 1) { window.sessionStorage.setItem( "camera", diff --git a/src/components/monitoring/warm.vue b/src/components/monitoring/warm.vue index 2f8b672..285fdf3 100644 --- a/src/components/monitoring/warm.vue +++ b/src/components/monitoring/warm.vue @@ -3,13 +3,13 @@
+ position: absolute; + left: 105px; + top: 210px; + width: 250px; + height: 180px; + margin: 45px auto; + " v-if="bimModel == 1">
@@ -37,7 +37,7 @@ {{ - Math.abs(curWarm.compare) + (curWarm.compare + "").substring((curWarm.compare + "").indexOf(".")).length > 3 ? curWarm.compare.toFixed(2) : Math.abs(curWarm.compare) }}MJ
@@ -85,7 +85,7 @@ {{ - Math.abs(item.monthBasis) + (item.monthBasis + "").substring((item.monthBasis + "").indexOf(".")) > 2 ? item.monthBasis.toFixed(2) : Math.abs(item.monthBasis) }}% @@ -227,9 +227,9 @@ }">{{ item.warnDate.substring(5, 16) }} -
+ @mouseleave="closeAlarkAlert(item, index, 1)" :key="'warnEvent' + index">

@@ -273,15 +273,15 @@

+ position: absolute; + bottom: 10px; + right: 10px; + width: 345px; + text-align: right; + color: rgb(7, 230, 237); + font-size: 14px; + cursor: pointer; + "> 查看报警详情
@@ -317,24 +317,24 @@ @@ -477,6 +477,7 @@ export default { // 模型恢复全部状态 bfHelper.resetStatus(2); bfHelper.extObjMngClear(); //清除外部构件 + console.log('bfstate',newval) if (newval == 1) { // 滚轮设置透明度 @@ -514,6 +515,31 @@ export default { }, 300); bfHelper.lookEquipmentCop("暖"); bfHelper.setOpacityFun(); + bfHelper.setCameraStatus({ + aspect: 1.889763779527559, + coordinateSystem: "world", + far: 960464.7787185954, + fov: 45, + name: "persp", + near: 105041.57557288553, + position: { + x: 114923.08877241895, + y: -391542.9803033385, + z: 219845.7809478254 + }, + target: { + x: -8729.420142852026, + y: 863922.0428858905, + z: -496665.6824418152 + }, + up: { + x: -0.048407478040169157, + y: 0.4914893345691443, + z: 0.8695372045373162 + }, + version: 1, + zoom: 1 + });//回标准视角 } else { if (floor.indexOf("undefined") == -1) { //如果是单楼加载 @@ -632,9 +658,9 @@ export default { this.getHistoryWarm(); //历史用热统计 this.getCurWarm(); //本月用热 this.getMode(); //模式 - this.getWarmLists(); //获取热量表列表 + // this.getWarmLists(); //获取热量表列表 20230317bim加载状态监听内执行 // this.getWarmGK(); //获取热量表概况 - this.getHeatWarnList(); //告警列表 + // this.getHeatWarnList(); //告警列表 20230317bim加载状态监听内执行 } }, clickAlarm(item) { @@ -724,6 +750,7 @@ export default { this.layer = item.floored; bfHelper.clearDrawableContainer(); let id = bfHelper.disposeId(item.area, item.build, item.modelId); + console.log('bjclick',id) bfHelper.customTag( bfHelper.getBoxMessage(id, true).max, null, @@ -770,7 +797,7 @@ export default { }, addLabel() { //添加热量表的标签 - this.labelContent();; + this.labelContent(); window.addEventListener("click", (e) => { //监听事件 if (e.target.id.indexOf("heatmeter") != -1) { @@ -885,14 +912,13 @@ export default { }, labelContent() { //初始化时显示所有热量表标签 - for (let i = 0; i < this.tableData.length; i++) { let id = bfHelper.disposeId( this.tableData[i].area, this.tableData[i].build, this.tableData[i].modelId ); - // console.log(bfHelper.getBoxMessage(id)) + // console.log(id,bfHelper.getBoxMessage(id)) let zb = bfHelper.getBoxMessage(id, true).max; bfHelper.customTag( zb, diff --git a/src/util/bfHelper.js b/src/util/bfHelper.js index d5f3fb5..2cc0647 100644 --- a/src/util/bfHelper.js +++ b/src/util/bfHelper.js @@ -3491,7 +3491,7 @@ const navigationMap = (dom, img, build, floor) => { viewer3D.render(); }; const mapUpdate = (img, mapAnchors, modelAnchors) => { - console.log('mapUpdate', navigationMap2); + // console.log('mapUpdate', navigationMap2); if (navigationMap2 != undefined && navigationMap2) { navigationMap2.associateModel({ url: img, @@ -4467,7 +4467,7 @@ const lookPipeline2 = ( categoryId: conditions2[b].categoryId, familyType: conditions2[b].familyType, fileId: ywqTowerFileId[tower], - levelName: layer + 1 + "F", + levelName: (parseInt(layer) + 1) + "F", }; } else { obj = { @@ -4511,6 +4511,7 @@ const lookPipeline2 = ( // 根据条件显示 arr2.push(...arr3); // 根据条件设置构件颜色 + console.log('条件显示的构件',arr2) showComponentsByObjectData(arr2); setConditionsColor(arr2, color); } diff --git a/src/views/garden/generalizePattern.vue b/src/views/garden/generalizePattern.vue index 4ea58a9..9a30497 100644 --- a/src/views/garden/generalizePattern.vue +++ b/src/views/garden/generalizePattern.vue @@ -638,7 +638,7 @@ > {{ - (item.consumeTotal + "").substring(".").length > 3 + (item.consumeTotal + "").substring((item.consumeTotal + "").indexOf(".")).length > 3 ? item.consumeTotal.toFixed(2) : item.consumeTotal }} diff --git a/src/views/sourceAnaly/totalCenter.vue b/src/views/sourceAnaly/totalCenter.vue index d17991d..4ec61be 100644 --- a/src/views/sourceAnaly/totalCenter.vue +++ b/src/views/sourceAnaly/totalCenter.vue @@ -28,7 +28,7 @@
消耗量 {{ - (consumeSituation.totalKgce + "").substring(".") > 2 + (consumeSituation.totalKgce + "").substring((consumeSituation.totalKgce + "").indexOf(".")).length > 3 ? consumeSituation.totalKgce.toFixed(2) : consumeSituation.totalKgce }}kgce