单风机:修改数据无单位值显示值

This commit is contained in:
高云鹏 2024-11-29 16:43:57 +08:00
parent ef2bc8cf55
commit eec58357e0

View File

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