|
@@ -406,26 +406,51 @@
|
|
|
powerdistributionState: {
|
|
|
"name": "persp",
|
|
|
"position": {
|
|
|
- "x": 5534.535803870811,
|
|
|
- "y": 90876.53553995928,
|
|
|
- "z": -3314.823840911769
|
|
|
+ "x": 2632.2859361604883,
|
|
|
+ "y": 111223.79774583911,
|
|
|
+ "z": -7881.380106302236
|
|
|
},
|
|
|
"target": {
|
|
|
- "x": 38892.46701167584,
|
|
|
- "y": 156962.5294575589,
|
|
|
- "z": -52151.804819285775
|
|
|
+ "x": -77.33010542628317,
|
|
|
+ "y": 199776.22030910433,
|
|
|
+ "z": -11917.134894432931
|
|
|
},
|
|
|
"up": {
|
|
|
- "x": 0.24814330707818513,
|
|
|
- "y": 0.49159674163953404,
|
|
|
- "z": 0.8347200385528641
|
|
|
+ "x": -0.0013919067086316582,
|
|
|
+ "y": 0.045484949100334654,
|
|
|
+ "z": 0.9989640544088934
|
|
|
},
|
|
|
- "near": 5.777222038555453,
|
|
|
- "far": 40980.73258230227,
|
|
|
- "zoom": 23.947915797812488,
|
|
|
+ "near": 5.777222038556004,
|
|
|
+ "far": 17006.60929286916,
|
|
|
+ "zoom": 215.89621661586904,
|
|
|
"version": 1,
|
|
|
"fov": 45,
|
|
|
- "aspect": 2.0854271356783918,
|
|
|
+ "aspect": 2.759493670886076,
|
|
|
+ "coordinateSystem": "world"
|
|
|
+ },
|
|
|
+ elevatorState: {
|
|
|
+ "name": "persp",
|
|
|
+ "position": {
|
|
|
+ "x": 6572.0875033955235,
|
|
|
+ "y": 95699.82781558658,
|
|
|
+ "z": -7105.60800578779
|
|
|
+ },
|
|
|
+ "target": {
|
|
|
+ "x": -8483.19355863921,
|
|
|
+ "y": 10707.06775943514,
|
|
|
+ "z": -27470.53196359404
|
|
|
+ },
|
|
|
+ "up": {
|
|
|
+ "x": -0.04005162448132288,
|
|
|
+ "y": -0.22611035388830691,
|
|
|
+ "z": 0.9732779537423581
|
|
|
+ },
|
|
|
+ "near": 5.777222038554977,
|
|
|
+ "far": 27618.853234549413,
|
|
|
+ "zoom": 124.51749491660715,
|
|
|
+ "version": 1,
|
|
|
+ "fov": 45,
|
|
|
+ "aspect": 2.049382716049383,
|
|
|
"coordinateSystem": "world"
|
|
|
},
|
|
|
indoorState: {
|
|
@@ -503,31 +528,6 @@
|
|
|
"aspect": 1.119842829076621,
|
|
|
"coordinateSystem": "world"
|
|
|
},
|
|
|
- liftPosition: [{
|
|
|
- "x": 41357.04645174326,
|
|
|
- "y": 20517.92965761399,
|
|
|
- "z": 2521.946938110247
|
|
|
- }, {
|
|
|
- "x": 38650.448942289164,
|
|
|
- "y": 21167.72420755811,
|
|
|
- "z": 2537.343862507356
|
|
|
- }, {
|
|
|
- "x": 36078.44798126248,
|
|
|
- "y": 21785.20338155814,
|
|
|
- "z": 2397.8923693159045
|
|
|
- }, {
|
|
|
- "x": 34727.814122374904,
|
|
|
- "y": 16500.92440760654,
|
|
|
- "z": 2550.0049591064453
|
|
|
- }, {
|
|
|
- "x": 37402.664463801375,
|
|
|
- "y": 15787.959087318342,
|
|
|
- "z": 2550.0049591064453
|
|
|
- }, {
|
|
|
- "x": 40100.01511579268,
|
|
|
- "y": 15112.013140613166,
|
|
|
- "z": 2504.101514927484
|
|
|
- }],
|
|
|
coldState: {
|
|
|
"name": "persp",
|
|
|
"position": {
|
|
@@ -1034,91 +1034,49 @@
|
|
|
}, data => {})
|
|
|
} else if (this.type === 'powerdistribution') {
|
|
|
this.bimViewer.setCameraState(this.powerdistributionState);
|
|
|
- this.bimViewer.addDrawable({
|
|
|
- position: {
|
|
|
- "x": 7621.26346650055,
|
|
|
- "y": 97886.27164849853,
|
|
|
- "z": -6705.819606781007
|
|
|
- },
|
|
|
- html: `<div class="tips-5" style="width:170px;transform: scale(0.7);transform-origin: 0% 0%;">
|
|
|
- <div class="title"><i class="iconfont huifont-shuzhuangcaidanxiala"></i>电配箱</div>
|
|
|
- <div class="content">
|
|
|
- <div class="tips-6">
|
|
|
- <div class="item">
|
|
|
- <div class="label">A项电流</div>
|
|
|
- <div class="value">10A</div>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <div class="label">B项电流</div>
|
|
|
- <div class="value">12A</div>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <div class="label">A项电压</div>
|
|
|
- <div class="value">24V</div>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <div class="label">B项电压</div>
|
|
|
- <div class="value">24V</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>`,
|
|
|
- }, data => {})
|
|
|
+ this.bimViewer.hideComponentsById(['1664928', '1664929']);
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ this.bimViewer.addDrawable({
|
|
|
+ position: list[i].column2,
|
|
|
+ html: list[i].html,
|
|
|
+ }, data => {})
|
|
|
+ }
|
|
|
} else if (this.type === 'elevator') {
|
|
|
- this.bimViewer.setCameraState(this.powerdistributionState);
|
|
|
- this.bimViewer.addDrawable({
|
|
|
- position: {
|
|
|
- "x": 7621.26346650055,
|
|
|
- "y": 97886.27164849853,
|
|
|
- "z": -6705.819606781007
|
|
|
- },
|
|
|
- html: `<div class="tips-5" style="width:170px;transform: scale(0.7);transform-origin: 0% 0%;">
|
|
|
- <div class="title"><i class="iconfont huifont-shuzhuangcaidanxiala"></i>电表1</div>
|
|
|
- <div class="content">
|
|
|
- <div class="tips-6">
|
|
|
- <div class="item">
|
|
|
- <div class="label">Ua电压</div>
|
|
|
- <div class="value">236V</div>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <div class="label">Ub电压</div>
|
|
|
- <div class="value">236V</div>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <div class="label">Uc电压</div>
|
|
|
- <div class="value">236V</div>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <div class="label">Ia电流</div>
|
|
|
- <div class="value">20A</div>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <div class="label">Ib电流</div>
|
|
|
- <div class="value">20A</div>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <div class="label">Ic电流</div>
|
|
|
- <div class="value">20A</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>`,
|
|
|
- }, data => {})
|
|
|
+ this.bimViewer.setCameraState(this.elevatorState);
|
|
|
+ this.bimViewer.hideComponentsById(['1664928', '1714956']);
|
|
|
+ this.bimViewer.clearDrawable();
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ this.bimViewer.addDrawable({
|
|
|
+ position: list[i].column2,
|
|
|
+ html: list[i].html,
|
|
|
+ }, data => {})
|
|
|
+ }
|
|
|
} else if (this.type === 'indoor') {
|
|
|
this.bimViewer.setCameraState(this.indoorState);
|
|
|
+ this.bimViewer.hideComponentsById(['2818831']);
|
|
|
this.bimViewer.setLight();
|
|
|
+ this.bimViewer.clearLight();
|
|
|
+ let ids = [];
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ ids = ids.concat(list[i].column2)
|
|
|
+ }
|
|
|
+ if (ids.length > 0) this.indoor(ids);
|
|
|
} else if (this.type === 'outdoor') {
|
|
|
this.bimViewer.setCameraState(this.outdoorState);
|
|
|
- this.bimViewer.overrideComponentsColorByObjectData();
|
|
|
+ this.bimViewer.overrideAllComponentsColor();
|
|
|
+ this.bimViewer.clearGlowEffect();
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ this.outdoor(list[i].column2);
|
|
|
+ }
|
|
|
} else if (this.type === 'lift') {
|
|
|
this.bimViewer.setCameraState(this.liftState);
|
|
|
- for (var i = 0; i < this.liftPosition.length; i++) {
|
|
|
+ for (var i = 0; i < list.length; i++) {
|
|
|
this.bimViewer.addDrawable({
|
|
|
- position: this.liftPosition[i],
|
|
|
+ position: list[i].column2,
|
|
|
offsetY: -45,
|
|
|
html: `<div class="tips-12" style="transform: scale(0.7);transform-origin: 0% 0%;">
|
|
|
<i class="iconfont huifont-dianti1"></i>
|
|
|
- <div class="name">${i+1}F</div>
|
|
|
+ <div class="name">${list[i].name}</div>
|
|
|
</div>`,
|
|
|
}, data => {})
|
|
|
}
|
|
@@ -1320,6 +1278,9 @@
|
|
|
renderSuccess: () => {
|
|
|
this.modeRender = true;
|
|
|
this.setData(this.list);
|
|
|
+ },
|
|
|
+ click: (data) => {
|
|
|
+ console.log(data);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1333,21 +1294,12 @@
|
|
|
a
|
|
|
}
|
|
|
},
|
|
|
- outdoor(isOpen, ids) {
|
|
|
- if (isOpen) {
|
|
|
- this.bimViewer.setGlowEffectById(ids);
|
|
|
- } else {
|
|
|
- this.bimViewer.removeGlowEffectById(ids);
|
|
|
- }
|
|
|
+ outdoor(ids) {
|
|
|
+ this.bimViewer.setGlowEffectById(ids);
|
|
|
},
|
|
|
- indoor(isOpen, ids) {
|
|
|
- if (isOpen) {
|
|
|
- this.bimViewer.setLightShow(ids);
|
|
|
- this.bimViewer.setExposureShift(0.1);
|
|
|
- } else {
|
|
|
- this.bimViewer.clearLight();
|
|
|
- this.bimViewer.setExposureShift(-0.1);
|
|
|
- }
|
|
|
+ indoor(ids, intensity) {
|
|
|
+ this.bimViewer.setLightShow(ids, intensity);
|
|
|
+ this.bimViewer.setExposureShift(0.1);
|
|
|
}
|
|
|
},
|
|
|
}
|