diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue index e392e78..dde4d28 100644 --- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue +++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Gwfx.vue @@ -126,7 +126,19 @@ listData.value = res.data; listData.value.map((e) => { let wellDepth = e.wellDepth || 2; - e.percentum = ((e.z / wellDepth) * 100).toFixed(2)<100?((e.z / wellDepth) * 100).toFixed(2):100; + let atSum=((e.z / wellDepth) * 100).toFixed(2) + if(atSum==0){ + e.percentum=0 + return + } + if(atSum>100){ + e.percentum =100 + }else if(atSum<15){ + e.percentum =15 + }else { + e.percentum=atSum + } + // e.percentum = ((e.z / wellDepth) * 100).toFixed(2)<100?((e.z / wellDepth) * 100).toFixed(2):100; }); console.log("listData.value", listData.value); }