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 @@
- {{ scope.row.location }}
+ cursor: pointer;
+ ">
+ {{ scope.row.location }}
@@ -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
}}
- {{ (scope.row.totalKgce + "").substring(".") > 2 ? scope.row.totalKgce.toFixed(2) : scope.row.totalKgce }}
+ {{ (scope.row.totalKgce + "").substring((scope.row.totalKgce + "").indexOf(".")).length > 3 ? scope.row.totalKgce.toFixed(2) : scope.row.totalKgce }}
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