Commit a7ab2d78 authored by lei's avatar lei

fix:heghtThreshold NOT heightThreshold

parent f11c2000
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div <div
class="water-pump" class="water-pump"
v-for="(item, i) in pumpList" v-for="(item, i) in pumpList"
:key="i" :key="item.pumpId || `pump_${i}`"
:class="`pst${Number(item.locationNum) - 3}`" :class="`pst${Number(item.locationNum) - 3}`"
> >
<div class="H36"> <div class="H36">
...@@ -197,7 +197,11 @@ export default { ...@@ -197,7 +197,11 @@ export default {
filters: { filters: {
// 水池显示数据过滤 // 水池显示数据过滤
sumpFilter(dateTmp, index, key) { sumpFilter(dateTmp, index, key) {
return dateTmp[index][key]; if (dateTmp?.[index]?.[key]) {
// 添加空值检测
return dateTmp[index][key];
}
return "--"; // 添加默认值
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment