单风机:修改数据无单位值显示值
This commit is contained in:
parent
ef2bc8cf55
commit
eec58357e0
@ -1045,7 +1045,7 @@ const createRealTimeData = async () => {
|
|||||||
}
|
}
|
||||||
const showData = {
|
const showData = {
|
||||||
name: item.attributeName,
|
name: item.attributeName,
|
||||||
value: val === '-' ? val : val + item.unit,
|
value: val === '-' ? val : val + (item?.unit ?? ''),
|
||||||
}
|
}
|
||||||
if (item.attributeType === 138 || item.attributeType === 139) {
|
if (item.attributeType === 138 || item.attributeType === 139) {
|
||||||
dataFor138And139.push(showData)
|
dataFor138And139.push(showData)
|
||||||
@ -1067,55 +1067,6 @@ const createRealTimeData = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (item.subSystem === '变桨系统' || item.subSystem === '轮毂') {
|
|
||||||
// if (item.attributeType === 138 || item.attributeType === 139) {
|
|
||||||
// realDataForSub[0].type138.push(showData)
|
|
||||||
// } else if (item.attributeType === 140) {
|
|
||||||
// realDataForSub[0].type140.push(showData)
|
|
||||||
// } else if (item.attributeType === 199) {
|
|
||||||
// realDataForSub[0].type199.push(showData)
|
|
||||||
// }
|
|
||||||
// } else if (item.subSystem === '轴承' || item.subSystem === '传动链' || item.subSystem === '齿轮箱') {
|
|
||||||
// if (item.attributeType === 138 || item.attributeType === 139) {
|
|
||||||
// realDataForSub[1].type138.push(showData)
|
|
||||||
// } else if (item.attributeType === 140) {
|
|
||||||
// realDataForSub[1].type140.push(showData)
|
|
||||||
// } else if (item.attributeType === 199) {
|
|
||||||
// realDataForSub[1].type199.push(showData)
|
|
||||||
// }
|
|
||||||
// } else if (item.subSystem === '发电机') {
|
|
||||||
// if (item.attributeType === 138 || item.attributeType === 139) {
|
|
||||||
// realDataForSub[2].type138.push(showData)
|
|
||||||
// } else if (item.attributeType === 140) {
|
|
||||||
// realDataForSub[2].type140.push(showData)
|
|
||||||
// } else if (item.attributeType === 199) {
|
|
||||||
// realDataForSub[2].type199.push(showData)
|
|
||||||
// }
|
|
||||||
// } else if (item.subSystem === '机舱') {
|
|
||||||
// if (item.attributeType === 138 || item.attributeType === 139) {
|
|
||||||
// realDataForSub[3].type138.push(showData)
|
|
||||||
// } else if (item.attributeType === 140) {
|
|
||||||
// realDataForSub[3].type140.push(showData)
|
|
||||||
// } else if (item.attributeType === 199) {
|
|
||||||
// realDataForSub[3].type199.push(showData)
|
|
||||||
// }
|
|
||||||
// } else if (item.subSystem === '控制系统') {
|
|
||||||
// if (item.attributeType === 138 || item.attributeType === 139) {
|
|
||||||
// realDataForSub[4].type138.push(showData)
|
|
||||||
// } else if (item.attributeType === 140) {
|
|
||||||
// realDataForSub[4].type140.push(showData)
|
|
||||||
// } else if (item.attributeType === 199) {
|
|
||||||
// realDataForSub[4].type199.push(showData)
|
|
||||||
// }
|
|
||||||
// } else if (item.subSystem === '环境' || item.subSystem === '气象') {
|
|
||||||
// if (item.attributeType === 138 || item.attributeType === 139) {
|
|
||||||
// realDataForSub[5].type138.push(showData)
|
|
||||||
// } else if (item.attributeType === 140) {
|
|
||||||
// realDataForSub[5].type140.push(showData)
|
|
||||||
// } else if (item.attributeType === 199) {
|
|
||||||
// realDataForSub[5].type199.push(showData)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
})
|
})
|
||||||
overviewSlotData.type138 = dataFor138And139
|
overviewSlotData.type138 = dataFor138And139
|
||||||
overviewSlotData.type140 = dataFor140
|
overviewSlotData.type140 = dataFor140
|
||||||
|
Loading…
Reference in New Issue
Block a user