diff --git a/ui/dasadmin/src/views/backend/WindBlower/index.vue b/ui/dasadmin/src/views/backend/WindBlower/index.vue index 26e5ad36..7a38d2fe 100644 --- a/ui/dasadmin/src/views/backend/WindBlower/index.vue +++ b/ui/dasadmin/src/views/backend/WindBlower/index.vue @@ -1045,7 +1045,7 @@ const createRealTimeData = async () => { } const showData = { name: item.attributeName, - value: val === '-' ? val : val + item.unit, + value: val === '-' ? val : val + (item?.unit ?? ''), } if (item.attributeType === 138 || item.attributeType === 139) { 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.type140 = dataFor140