| 
						
						
						
					 | 
				
				 | 
				
					@ -1,42 +1,44 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  <div class='congestion'> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  <div class="congestion"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <WgtTitle :title="'路段日感知事件'"></WgtTitle> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <div class="board"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <Empty v-show="!dataList || dataList.length <= 0" text="暂无数据..."></Empty> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <div v-show="dataList && dataList.length > 0" style="width: 450px;" class="charts keep-ratio " id="railwayDay"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <Empty | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        v-show="!dataList || dataList.length <= 0" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        text="暂无数据..." | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ></Empty> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <div | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        v-show="dataList && dataList.length > 0" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        style="width: 450px" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        class="charts keep-ratio" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        id="railwayDay" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ></div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<script> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import WgtTitle from '../../../widgets/title' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import WgtTitle from "../../../widgets/title"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import * as echarts from "echarts"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import chartsStatistics from "./assets/charts"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { getSectionPerceivedNumber } from '../../../../../../../api/event/perceiveEvent'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { getSectionPerceivedNumber } from "../../../../../../../api/event/perceiveEvent"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  name: 'RailWayDay', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  name: "RailWayDay", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  components: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    WgtTitle | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    WgtTitle, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  data() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    return { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      dataList: [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      dataList: [], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  created() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  methods: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  created() {}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  methods: {}, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  mounted() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    setTimeout(() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.$nextTick(() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        var myChart = echarts.init(document.getElementById('railwayDay')); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        var myChart = echarts.init(document.getElementById("railwayDay")); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        getSectionPerceivedNumber().then((res) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (res.code == 200) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.dataList = res.data; | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -44,9 +46,11 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (data.length > 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              let texts = []; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              let datas = []; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              const maxObject = data.reduce((prev, current) => (current.number > prev.number ? current : prev)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              const maxObject = data.reduce((prev, current) => | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                current.number > prev.number ? current : prev | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              ); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              data.forEach(it => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              data.forEach((it) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                texts.push(it.sectionName); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (it.number == maxObject.number) { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -54,62 +58,69 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    value: it.number, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    itemStyle: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                      color: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        type: 'linear', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        type: "linear", | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        x: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        y: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        x2: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        y2: 1, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        colorStops: [{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                          offset: 0, color: '#0469FF' // 0% 处的颜色 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        }, { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                          offset: 1, color: '#699CFF' // 100% 处的颜色 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        }], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        global: false // 缺省为 false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        colorStops: [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                          { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            offset: 0, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            color: "#0469FF", // 0% 处的颜色 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                          }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                      borderRadius: 6 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                          { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            offset: 1, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                            color: "#699CFF", // 100% 处的颜色 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                          }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        ], | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        global: false, // 缺省为 false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                      }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                      borderRadius: 6, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  datas.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    value: it.number, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    itemStyle: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                      borderRadius: 6 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                      borderRadius: 6, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              chartsStatistics.xAxis.data = texts; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					              chartsStatistics.series[0].data = datas; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            myChart.setOption(chartsStatistics); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					}; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</script> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<style lang='scss' scoped> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<style lang="scss" scoped> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					.congestion { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  width: 100%; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  .board { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    height: 200px; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    width: 100%; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    padding: 0px 20px; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // padding: 0px 20px; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    background: linear-gradient(180deg, rgba(6, 66, 88, 0.2) 0%, #064258 100%); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    border-radius: 5px 5px 5px 5px; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    opacity: 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    border: 1px solid; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    border-image: linear-gradient(360deg, rgba(55, 231, 255, 0.3), rgba(55, 231, 255, 0)) 1 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    border-image: linear-gradient( | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        360deg, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        rgba(55, 231, 255, 0.3), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        rgba(55, 231, 255, 0) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      1 1; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    display: flex; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    justify-content: space-between; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    align-items: center; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |