|
@@ -3,10 +3,16 @@
|
|
|
class="floorSpace"
|
|
|
:class="[screenType === 'hor' ? 'horiFloorClass ' : 'verFloorClass ']"
|
|
|
>
|
|
|
- <div class="buildName" v-show="allBuild.length">
|
|
|
+ <div
|
|
|
+ class="buildName"
|
|
|
+ v-show="allBuild.length"
|
|
|
+ >
|
|
|
{{ nowBuildName }}
|
|
|
</div>
|
|
|
- <div class="leftChange" v-if="screenType == 'hor'">
|
|
|
+ <div
|
|
|
+ class="leftChange"
|
|
|
+ v-if="screenType == 'hor'"
|
|
|
+ >
|
|
|
<div class="allIndicator">
|
|
|
<div
|
|
|
class="showItem"
|
|
@@ -16,14 +22,13 @@
|
|
|
>
|
|
|
<div class="title">{{ selIndicator.name }}</div>
|
|
|
<div class="textCont">
|
|
|
- <span class="value"
|
|
|
- >{{ totalAvgValues }}{{ selIndicator.unit }}</span
|
|
|
- ><br /><span class="name"
|
|
|
- >平均{{ selIndicator.name }}</span
|
|
|
- >
|
|
|
+ <span class="value">{{ totalAvgValues }}{{ selIndicator.unit }}</span><br /><span class="name">平均{{ selIndicator.name }}</span>
|
|
|
</div>
|
|
|
<div class="other">
|
|
|
- <img class="img" :src="selIndicator.img" />
|
|
|
+ <img
|
|
|
+ class="img"
|
|
|
+ :src="selIndicator.img"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
@@ -48,7 +53,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="topChange" v-if="screenType == 'ver'">
|
|
|
+ <div
|
|
|
+ class="topChange"
|
|
|
+ v-if="screenType == 'ver'"
|
|
|
+ >
|
|
|
<div class="allIndicator">
|
|
|
<div
|
|
|
class="eachItem"
|
|
@@ -67,14 +75,15 @@
|
|
|
<img :src="selIndicator.verimg" />
|
|
|
</div>
|
|
|
<div class="textCont">
|
|
|
- 平均<span>{{ selIndicator.name }}</span
|
|
|
- ><span class="value">{{ totalAvgValues }}</span
|
|
|
- ><span>
|
|
|
+ 平均<span>{{ selIndicator.name }}</span><span class="value">{{ totalAvgValues }}</span><span>
|
|
|
{{ selIndicator.unit }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="floorWrap" id="floorWrap">
|
|
|
+ <div
|
|
|
+ class="floorWrap"
|
|
|
+ id="floorWrap"
|
|
|
+ >
|
|
|
<div
|
|
|
class="floor-item"
|
|
|
v-for="(item, index) in showFloors"
|
|
@@ -130,7 +139,6 @@ export default defineComponent({
|
|
|
},
|
|
|
},
|
|
|
setup(props, contx) {
|
|
|
-
|
|
|
const {
|
|
|
floor_co2,
|
|
|
floor_jiaquan,
|
|
@@ -261,7 +269,7 @@ export default defineComponent({
|
|
|
.then((res) => {
|
|
|
// loading.close();
|
|
|
var allFloor = res.data.content || [];
|
|
|
- allFloor = allFloor.filter(function (item) {
|
|
|
+ allFloor = allFloor.filter(function(item) {
|
|
|
return item.spaceNum > 0;
|
|
|
});
|
|
|
|
|
@@ -327,7 +335,7 @@ export default defineComponent({
|
|
|
//debugger;
|
|
|
allData.getTimeFloorParam();
|
|
|
})
|
|
|
- .catch(function (res) {
|
|
|
+ .catch(function(res) {
|
|
|
// loading.close();
|
|
|
});
|
|
|
},
|
|
@@ -387,14 +395,13 @@ export default defineComponent({
|
|
|
//loading.close();
|
|
|
|
|
|
//debugger;
|
|
|
- var showFloors = res.data.data.floors || [];
|
|
|
+ var showFloors = (res.data.data || {}).floors || [];
|
|
|
allData.totalAvgValues =
|
|
|
res.data.data.avgValues || null;
|
|
|
allData.totalAvgValues &&
|
|
|
- (allData.totalAvgValues =
|
|
|
- allData.totalAvgValues.toFixed(
|
|
|
- allData.selIndicator.fixed
|
|
|
- ));
|
|
|
+ (allData.totalAvgValues = allData.totalAvgValues.toFixed(
|
|
|
+ allData.selIndicator.fixed
|
|
|
+ ));
|
|
|
var wrapHeight =
|
|
|
document.getElementById("floorWrap") &&
|
|
|
document.getElementById("floorWrap").offsetHeight;
|
|
@@ -702,11 +709,10 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
.verFloorClass {
|
|
|
- height: auto;
|
|
|
display: block;
|
|
|
.floorWrap {
|
|
|
padding-top: 14px;
|
|
|
- height: 700px;
|
|
|
+ height: calc(100% - 220px);
|
|
|
}
|
|
|
.buildName {
|
|
|
top: -55px;
|