Browse Source

修改主机参数页面去掉边框样式

dev
selia-zx 3 weeks ago
parent
commit
cdc92c115b
  1. 68
      src/views/centerairC/sysMonitor/hostDetails.vue

68
src/views/centerairC/sysMonitor/hostDetails.vue

@ -163,12 +163,12 @@
</div> </div>
</div> </div>
</div> </div>
<line-square <!-- <line-square
class="line1" class="line1"
:horizontalLength="720" :horizontalLength="720"
:verticalLength="440" :verticalLength="440"
:overlap="15" :overlap="15"
></line-square> ></line-square> -->
</div> </div>
<div class="detail-data compressor"> <div class="detail-data compressor">
<div class="detail-data-top"> <div class="detail-data-top">
@ -191,12 +191,12 @@
</div> </div>
</div> </div>
</div> </div>
<line-square <!-- <line-square
class="line1" class="line1"
:horizontalLength="720" :horizontalLength="720"
:verticalLength="440" :verticalLength="440"
:overlap="15" :overlap="15"
></line-square> ></line-square> -->
</div> </div>
</div> </div>
</div> </div>
@ -368,11 +368,17 @@ export default {
// //
this.leftHostData = []; this.leftHostData = [];
this.rightHostData = []; this.rightHostData = [];
// paramType
this.rightHostData = this.hostData.filter((item) => {
return !["2", "21", "20", "6", "5", "22", "26"].includes(
Number(item.paramType)
);
});
// // ordernum
// this.rightHostData.sort((a, b) => {
// return Number(a.ordernum) - Number(b.ordernum);
// });
this.hostData.forEach((item) => { this.hostData.forEach((item) => {
// 12
if (item.paramType === "12") {
this.rightHostData.push(item);
}
// paramType showValue // paramType showValue
if (item.paramType === "6") { if (item.paramType === "6") {
// //
@ -402,10 +408,13 @@ export default {
// //
for (let i = 0; i < this.compressorData.length; i++) { for (let i = 0; i < this.compressorData.length; i++) {
const item = this.compressorData[i]; const item = this.compressorData[i];
if (item.paramType === '1' && Number(item.curValue) === 0) { if (item.paramType === "1" && Number(item.curValue) === 0) {
item.curValue = "停止"; item.curValue = "停止";
console.log("压缩机停止了啊是0···················") console.log("压缩机停止了啊是0···················");
}else if (item.paramType === '1' && Number(item.curValue) === 1){ } else if (
item.paramType === "1" &&
Number(item.curValue) === 1
) {
item.curValue = "运行"; item.curValue = "运行";
} }
} }
@ -792,7 +801,7 @@ export default {
} }
} }
.detail-bottom { .detail-bottom {
height: 5rem; // height: 5rem;
margin-top: 0.3rem; margin-top: 0.3rem;
margin-left: 0.25rem; margin-left: 0.25rem;
display: flex; display: flex;
@ -801,9 +810,9 @@ export default {
.hostStatus { .hostStatus {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: flex-start;
width: 3rem; width: 3rem !important;
margin-bottom: 1.5rem; margin-top: 1.5rem;
.hostStatus-li { .hostStatus-li {
background-color: #25455a; background-color: #25455a;
color: #c0dffc; color: #c0dffc;
@ -813,7 +822,11 @@ export default {
letter-spacing: 0.02rem; letter-spacing: 0.02rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: nowrap;
align-items: flex-start; align-items: flex-start;
span {
white-space: nowrap;
}
} }
} }
.detail-data { .detail-data {
@ -837,17 +850,18 @@ export default {
} }
} }
.detail-data-bottom { .detail-data-bottom {
width: 100%; // width: 100%;
padding: 0.1rem 0.3rem; // padding: 0.1rem 0.3rem;
z-index: 0; z-index: 0;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
align-items: flex-start; align-items: stretch;
justify-content: flex-start; justify-content: flex-start;
.detail-data-li { .detail-data-li {
// width: 100%; // width: 100%;
margin-right: 0.1rem; margin-right: 0.1rem;
margin-bottom: 0.15rem !important;
position: relative; position: relative;
color: #c0dffc; color: #c0dffc;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
@ -990,20 +1004,26 @@ export default {
} }
} }
.hostparams { .hostparams {
width: 7.6rem; // width: 7.7rem;
width: 7rem;
.detail-data-bottom { .detail-data-bottom {
padding-left: 0.5rem; // padding-left: 0.5rem;
.detail-data-li { .detail-data-li {
width: 3.2rem; // width: 3.2rem;
width: calc(50% - 0.2rem) !important;
margin: 0 0.1rem;
} }
} }
} }
.compressor { .compressor {
width: 7.6rem; width: 7.6rem;
.detail-data-bottom { .detail-data-bottom {
padding-left: 0.75rem; // padding-left: 0.75rem;
// width: 10rem;
.detail-data-li { .detail-data-li {
width: 3rem; // width: 3.4rem;
width: calc(50% - 0.2rem) !important;
margin: 0 0.1rem;
} }
} }
} }
@ -1037,4 +1057,4 @@ export default {
} }
} }
} }
</style> </style>

Loading…
Cancel
Save