diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue index e9648c9..2ffa84e 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -4,7 +4,7 @@ 全区合计{{gqData.portChannelNum}}{{gqData.lengthSum}}km
-
+
{{i.waterRegionName}}
({{i.lengthSum}})
@@ -33,20 +33,30 @@ () => props.waterRegionCode, (val) => { console.log("YSIndex_right:分区编号变了", val); - debugger - getData() + if(val!=''){ + filetData(val) + } }, { immediate: true ,deep:true} ); let gqData=ref({}) +let allList=ref([]) function getData(){ getPortChannelLengthSum().then(res=>{ if(res.code==200){ gqData.value=res.data + allList.value=gqData.value.waterRegionList } }) } -onMounted(() => {}); +function filetData(id){ + let list=gqData.value.waterRegionList.find(i=>{return i.waterRegionId==id}) + allList.value=[list] + debugger +} +onMounted(() => { + getData() +});