|  | @@ -17,6 +17,7 @@ import {
 | 
	
		
			
				|  |  |  import {formatd} from "@/utils/ruoyi";
 | 
	
		
			
				|  |  |  import {filterWaterQualitys} from "@/utils/unit";
 | 
	
		
			
				|  |  |  import {Setting, View} from "@/utils/tdInstruction";
 | 
	
		
			
				|  |  | +import {getLatestTimeWithMinuteMultipleOfFive} from "@/utils/date";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const route = useRoute()
 | 
	
		
			
				|  |  |  const dibaImage = (new URL('@/assets/images/dike.png', import.meta.url).href)
 | 
	
	
		
			
				|  | @@ -122,7 +123,11 @@ async function reloadLeft2() {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  async function reloadLeft3() {
 | 
	
		
			
				|  |  |    const stcds = stationList.map(s => s.stcd).join(',')
 | 
	
		
			
				|  |  | -  const waterData = await getWaterLevelAndFlowLatest({stcds}).then(res => res.data)
 | 
	
		
			
				|  |  | +  const tm = formatd(getLatestTimeWithMinuteMultipleOfFive(new Date(), 15), 'yyyy-MM-dd hh:mm:ss')
 | 
	
		
			
				|  |  | +  const waterData = await getWaterLevelAndFlowLatest({stcds, tm}).then(res => res.data)
 | 
	
		
			
				|  |  | +  const currentStationData = waterData.find(d => d.stcd === route.params.stcd)
 | 
	
		
			
				|  |  | +  wlData.ss = currentStationData.z + ''
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    const seriesData = stationList.map(s => {
 | 
	
		
			
				|  |  |      const data = waterData.find(d => d.stcd === s.stcd)
 | 
	
		
			
				|  |  |      return data ? data.z : 0
 | 
	
	
		
			
				|  | @@ -184,7 +189,8 @@ async function reloadLeft3() {
 | 
	
		
			
				|  |  |        barWidth: 18,
 | 
	
		
			
				|  |  |        label: {
 | 
	
		
			
				|  |  |          show: true,
 | 
	
		
			
				|  |  | -        position: 'top'
 | 
	
		
			
				|  |  | +        position: 'top',
 | 
	
		
			
				|  |  | +        color: '#fff'
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        data: seriesData
 | 
	
		
			
				|  |  |      }]
 | 
	
	
		
			
				|  | @@ -349,16 +355,6 @@ async function reloadRight3() {
 | 
	
		
			
				|  |  |    right3Ref.value.carousel(1000, true)
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -/**
 | 
	
		
			
				|  |  | - * 获取实时水位数据
 | 
	
		
			
				|  |  | - */
 | 
	
		
			
				|  |  | -function getCharacteristicLevel() {
 | 
	
		
			
				|  |  | -  getWaterLevelAndFlowLatest({stcds: route.params.stcd}).then(res => {
 | 
	
		
			
				|  |  | -    const data = res.data[0]
 | 
	
		
			
				|  |  | -    wlData.ss = data.z + ''
 | 
	
		
			
				|  |  | -  })
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 获取最新水质数据
 | 
	
		
			
				|  |  |   */
 | 
	
	
		
			
				|  | @@ -384,8 +380,6 @@ onMounted(() => {
 | 
	
		
			
				|  |  |    reloadLeft2()
 | 
	
		
			
				|  |  |    reloadLeft3()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  // 获取实时水位
 | 
	
		
			
				|  |  | -  getCharacteristicLevel()
 | 
	
		
			
				|  |  |    // 获取最新水质数据
 | 
	
		
			
				|  |  |    getLatestWaterQuality()
 | 
	
		
			
				|  |  |  })
 |