diff --git a/src/views/Home/MapCtrl/components/Skssjc/index.js b/src/views/Home/MapCtrl/components/Skssjc/index.js
index b4bb4b616..7ea30257a 100644
--- a/src/views/Home/MapCtrl/components/Skssjc/index.js
+++ b/src/views/Home/MapCtrl/components/Skssjc/index.js
@@ -131,7 +131,7 @@ function Skssjc({data}) {
)
}
- {
+ {/* {
imgList.length > 0 ? (
{setOpen(true);setkey('位移告警')}}>
{dataObj.shiftWarn?.length||0}
位移告警
diff --git a/src/views/Home/homePanelsLayoutPage/myImg.js b/src/views/Home/homePanelsLayoutPage/myImg.js
index 7dfc7a7c4..293791854 100644
--- a/src/views/Home/homePanelsLayoutPage/myImg.js
+++ b/src/views/Home/homePanelsLayoutPage/myImg.js
@@ -13,11 +13,12 @@ const MyImg = ({ record }) => {
const computerHeight = (h1, h2, h3) => {
let height;
let comHeight;
- if (h1 & h2 & h3) {
+ if (h1 && h2 && h3) {
comHeight = (h1 - h3) / (h2 - h3)
+
// height = comHeight * 100 < 80 ? `${comHeight}%` : "80%"
height = `${comHeight * 80}%`
- return height
+ return comHeight > 0 ? height : 10
} else {
return ''
}
@@ -25,33 +26,33 @@ const MyImg = ({ record }) => {
return (

-

+

-

+
{
style={{
width: 90,
height: 15,
- }}
+ }}
/>
- 设计洪水位 {record.desFloodLev?record.desFloodLev.toFixed(2):"-"}m
-
+ 设计洪水位
{record.desFloodLev ? record.desFloodLev.toFixed(2) : "-"}m
+
{
- 汛限水位 {record.flLowLimLev?record.flLowLimLev.toFixed(2):"-"}m
-
+ 汛限水位
{record.flLowLimLev ? record.flLowLimLev.toFixed(2) : "-"}m
+