|
|
@@ -200,6 +200,21 @@ const pumpFlowChartOption = ref({
|
|
|
bottom: '15%',
|
|
|
containLabel: true
|
|
|
},
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ backgroundColor: 'rgba(0, 20, 40, 0.9)',
|
|
|
+ borderColor: 'rgba(48, 220, 255, 0.5)',
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ formatter: function(params) {
|
|
|
+ let result = params[0].name + '<br/>';
|
|
|
+ params.forEach(item => {
|
|
|
+ result += item.marker + item.seriesName + ': ' + item.value + ' m³/s<br/>';
|
|
|
+ });
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ },
|
|
|
xAxis: {
|
|
|
type: 'category',
|
|
|
data: ['08:00', '10:00', '12:00', '14:00', '16:00', '18:00'],
|
|
|
@@ -284,6 +299,21 @@ const dailyDischargeChartOption = ref({
|
|
|
bottom: '15%',
|
|
|
containLabel: true
|
|
|
},
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ backgroundColor: 'rgba(0, 20, 40, 0.9)',
|
|
|
+ borderColor: 'rgba(48, 220, 255, 0.5)',
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ formatter: function(params) {
|
|
|
+ let result = params[0].name + '<br/>';
|
|
|
+ params.forEach(item => {
|
|
|
+ result += item.marker + item.seriesName + ': ' + item.value + ' 万m³<br/>';
|
|
|
+ });
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ },
|
|
|
xAxis: {
|
|
|
type: 'category',
|
|
|
data: ['1月1日', '1月2日', '1月3日', '1月4日', '1月5日'],
|
|
|
@@ -440,30 +470,7 @@ const currentWaterLevelChartOption = computed(() => {
|
|
|
axisPointer: {
|
|
|
show: true
|
|
|
},
|
|
|
- markLine: {
|
|
|
- silent: true,
|
|
|
- lineStyle: {
|
|
|
- width: 1,
|
|
|
- type: 'dashed'
|
|
|
- },
|
|
|
- symbol: 'none',
|
|
|
- label: {
|
|
|
- position: 'end',
|
|
|
- distance: 10
|
|
|
- },
|
|
|
- data: [
|
|
|
- {
|
|
|
- yAxis: 3.32,
|
|
|
- label: {
|
|
|
- formatter: '警戒水位',
|
|
|
- color: '#ffcc00'
|
|
|
- },
|
|
|
- lineStyle: {
|
|
|
- color: '#ffcc00'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
@@ -471,6 +478,14 @@ const currentWaterLevelChartOption = computed(() => {
|
|
|
borderColor: 'rgba(48, 220, 255, 0.5)',
|
|
|
textStyle: {
|
|
|
color: '#fff'
|
|
|
+ },
|
|
|
+ formatter: function(params) {
|
|
|
+ let result = params[0].name + '<br/>';
|
|
|
+ params.forEach(item => {
|
|
|
+ let unit = item.seriesName === '水位' ? ' m' : ' m³/s';
|
|
|
+ result += item.marker + item.seriesName + ': ' + item.value + unit + '<br/>';
|
|
|
+ });
|
|
|
+ return result;
|
|
|
}
|
|
|
},
|
|
|
series: [
|
|
|
@@ -503,6 +518,44 @@ const currentWaterLevelChartOption = computed(() => {
|
|
|
color: 'rgba(48, 220, 255, 0.1)'
|
|
|
}
|
|
|
])
|
|
|
+ },
|
|
|
+ markLine: {
|
|
|
+ silent: true,
|
|
|
+ symbol: 'none',
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ yAxis: 3.32,
|
|
|
+ label: {
|
|
|
+ formatter: '警戒水位',
|
|
|
+ color: '#ffcc00',
|
|
|
+ position: 'insideMiddleTop',
|
|
|
+ distance: 5,
|
|
|
+ fontSize: 10,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ color: '#ffcc00',
|
|
|
+ width: 2,
|
|
|
+ type: 'dashed'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ yAxis: 3.82,
|
|
|
+ label: {
|
|
|
+ formatter: '保证水位',
|
|
|
+ color: '#ff0000',
|
|
|
+ position: 'insideMiddleTop',
|
|
|
+ distance: 5,
|
|
|
+ fontSize: 10,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ lineStyle: {
|
|
|
+ color: '#ff0000',
|
|
|
+ width: 2,
|
|
|
+ type: 'dashed'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -551,12 +604,27 @@ const rainfallForecast = ref([
|
|
|
// 降雨量图表配置
|
|
|
const polderRainfallChartOption = ref({
|
|
|
grid: {
|
|
|
- left: '5%',
|
|
|
- top: '20%',
|
|
|
- right: '5%',
|
|
|
- bottom: '15%',
|
|
|
+ left: '3%',
|
|
|
+ top: '15%',
|
|
|
+ right: '3%',
|
|
|
+ bottom: '12%',
|
|
|
containLabel: true
|
|
|
},
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ backgroundColor: 'rgba(0, 20, 40, 0.9)',
|
|
|
+ borderColor: 'rgba(48, 220, 255, 0.5)',
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
+ formatter: function(params) {
|
|
|
+ let result = params[0].name + '<br/>';
|
|
|
+ params.forEach(item => {
|
|
|
+ result += item.marker + item.seriesName + ': ' + item.value + ' mm<br/>';
|
|
|
+ });
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ },
|
|
|
xAxis: {
|
|
|
type: 'category',
|
|
|
data: ['00:00', '03:00', '06:00', '09:00', '12:00', '15:00', '18:00', '21:00'],
|
|
|
@@ -602,7 +670,7 @@ const polderRainfallChartOption = ref({
|
|
|
{
|
|
|
name: '降雨量',
|
|
|
type: 'bar',
|
|
|
- barWidth: '20%',
|
|
|
+ barWidth: '30%',
|
|
|
data: [0.2, 0.5, 1.2, 0.8, 0.3, 0.1, 0.2, 0.4],
|
|
|
itemStyle: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
@@ -905,8 +973,8 @@ const showMonitoringPoints = ref(true)
|
|
|
}
|
|
|
|
|
|
.forecast-icon {
|
|
|
- width: 32px;
|
|
|
- height: 32px;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
margin: 0 auto 4px;
|
|
|
background-size: contain;
|
|
|
background-repeat: no-repeat;
|
|
|
@@ -914,15 +982,15 @@ const showMonitoringPoints = ref(true)
|
|
|
}
|
|
|
|
|
|
.forecast-icon.rainy {
|
|
|
- background-image: url('@/assets/images/rain.svg');
|
|
|
+ background-image: url('@/assets/images/qixiang/暴雨.png');
|
|
|
}
|
|
|
|
|
|
.forecast-icon.cloudy {
|
|
|
- background-image: url('@/assets/images/storm.svg');
|
|
|
+ background-image: url('@/assets/images/qixiang/多云.png');
|
|
|
}
|
|
|
|
|
|
.forecast-icon.sunny {
|
|
|
- background-image: url('@/assets/images/heat.svg');
|
|
|
+ background-image: url('@/assets/images/qixiang/晴天.png');
|
|
|
}
|
|
|
|
|
|
.forecast-desc {
|
|
|
@@ -942,7 +1010,7 @@ const showMonitoringPoints = ref(true)
|
|
|
background: rgba(0, 100, 150, 0.2);
|
|
|
border: 1px solid rgba(48, 220, 255, 0.3);
|
|
|
border-radius: 4px;
|
|
|
- padding: 6px;
|
|
|
+ padding: 4px;
|
|
|
min-height: 100px;
|
|
|
|
|
|
.chart-title {
|