Browse Source

主机详情页修改

dev
25604 3 weeks ago
parent
commit
6ce0a9018d
  1. 20
      src/views/centerairC/sysMonitor/hostDetails.vue

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

@ -428,20 +428,25 @@ export default {
// paramType // paramType
this.rightHostData = this.hostData.filter((item) => { this.rightHostData = this.hostData.filter((item) => {
const specificParamTypes = [6, 5, 22, 26]; const specificParamTypes = [6, 5, 22, 26];
const orderNumList = [99];
// const specificParamTypes = []; // const specificParamTypes = [];
// paramType // paramType
const isSpecificParamType = specificParamTypes.includes( const isSpecificParamType = specificParamTypes.includes(
Number(item.paramType) Number(item.paramType)
); );
// paramType
const isOrderNum = orderNumList.includes(
Number(item.orderNum)
);
// const isCombinedCondition0 = // const isCombinedCondition0 =
// Number(item.paramType) === 2 && // Number(item.paramType) === 2 &&
// item.otherName.includes(""); // item.otherName.includes("");
// false // false
return !isSpecificParamType; return !isSpecificParamType && !isOrderNum;
}); });
// ordernum // ordernum
this.rightHostData.sort((a, b) => { this.rightHostData.sort((a, b) => {
return Number(a.ordernum) - Number(b.ordernum); return Number(a.orderNum) - Number(b.orderNum);
}); });
this.hostData.forEach((item) => { this.hostData.forEach((item) => {
// paramType showValue // paramType showValue
@ -458,8 +463,11 @@ export default {
item.otherName.includes("故障") item.otherName.includes("故障")
) { ) {
// //
item.showValue = if (item.curValue === "正常") {
Number(item.curValue) === 0 ? "未故障" : "故障"; item.showValue = "无故障";
} else {
item.showValue = "故障";
}
this.badObj = item; this.badObj = item;
} else if ( } else if (
item.paramType === "22" && item.paramType === "22" &&
@ -504,6 +512,10 @@ export default {
if (item.mtType === "9") { if (item.mtType === "9") {
// //
this.compressorData = item.list; this.compressorData = item.list;
// orderNum
this.compressorData.sort((a, b) => {
return Number(a.orderNum) - Number(b.orderNum);
});
// //
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];

Loading…
Cancel
Save