|
|
|
@ -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]; |
|
|
|
|