From 3efec39f4e6191390a2bb26525abae5fe69edea7 Mon Sep 17 00:00:00 2001 From: admin <2077599564@qq.com> Date: Thu, 14 Dec 2023 17:57:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E9=A3=8E=E5=8E=8B?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content/badGasInfo/BadGasInfo.vue | 27 ++-- .../content/windPressure/WindPressureList.vue | 117 +++++++++++++++++- 2 files changed, 132 insertions(+), 12 deletions(-) diff --git a/src/components/content/badGasInfo/BadGasInfo.vue b/src/components/content/badGasInfo/BadGasInfo.vue index f84d9fe..2aae911 100644 --- a/src/components/content/badGasInfo/BadGasInfo.vue +++ b/src/components/content/badGasInfo/BadGasInfo.vue @@ -14,7 +14,6 @@ :buttonList="timeList" v-model="selectTimeButton" @select="timeSelect" - width="124px" />
@@ -34,7 +33,7 @@ const props = defineProps({ badGasData: Array }); const timeList = ref(["年", "月", "日"]); -const selectTimeButton = ref(0); +const selectTimeButton = ref(2); const isVisited = ref(false); const badGasList = ref([]) let myEcharts = reactive({}); @@ -118,7 +117,7 @@ const initChart = () => { //离容器四侧的距离 grid: { left: 0, // 左边距 - right: 0, // 右边距 + right: 20, // 右边距 top: 80, // 顶边距 bottom: 0, // 底边距 containLabel: true, @@ -131,7 +130,7 @@ const initChart = () => { //X轴 xAxis: { type: 'category', - data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + data: ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00','07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00','19:00', '20:00', '21:00', '22:00', '23:00','24:00'], axisLabel: { textStyle: { fontSize: 24, @@ -153,7 +152,7 @@ const initChart = () => { series: [ { name: '二氧化碳', - data: [5, 9, 10, 7, 8, 15, 12], + data: [56, 12, 89, 34, 71, 43, 67, 20, 98, 72, 19, 61, 3, 85, 47, 92, 17, 76, 69, 25, 31, 49, 81, 63], type: 'line', smooth: true, symbolSize: 24, @@ -163,7 +162,7 @@ const initChart = () => { }, { name: '一氧化碳', - data: [8, 15, 5, 9, 10, 7, 12], + data: [96, 38, 75, 10, 62, 81, 41, 27, 69, 16, 33, 57, 73, 87, 22, 46, 11, 79, 51, 29, 60, 48, 83, 15], type: 'line', smooth: true, symbolSize: 24, @@ -173,7 +172,17 @@ const initChart = () => { }, { name: '二氧化氮', - data: [5, 15, 1, 9, 10, 7, 8], + data: [53, 88, 10, 67, 92, 31, 74, 46, 20, 37, 85, 16, 63, 70, 41, 99, 25, 77, 82, 13, 68, 49, 55, 7, 39], + type: 'line', + smooth: true, + symbolSize: 24, + lineStyle: { + width: 5 + } + }, + { + name: '一氧化氮', + data: [37, 19, 85, 62, 28, 91, 43, 76, 14, 68, 33, 52, 71, 26, 97, 49, 82, 17, 66, 30, 78, 55, 23, 47], type: 'line', smooth: true, symbolSize: 24, @@ -183,7 +192,7 @@ const initChart = () => { }, { name: '二氧化硫', - data: [8, 15, 12, 5, 9, 2, 7], + data: [6, 30, 91, 77, 28, 51, 42, 83, 16, 65, 35, 72, 18, 96, 47, 79, 100, 23, 80, 44, 62, 59, 13, 86], type: 'line', smooth: true, symbolSize: 24, @@ -193,7 +202,7 @@ const initChart = () => { }, { name: '硫化氢', - data: [2, 9, 10, 15, 12, 7, 8,], + data: [13, 27, 39, 51, 62, 73, 84, 95, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 11, 21, 31, 41, 51], type: 'line', smooth: true, symbolSize: 24, diff --git a/src/components/content/windPressure/WindPressureList.vue b/src/components/content/windPressure/WindPressureList.vue index 678f394..26149d3 100644 --- a/src/components/content/windPressure/WindPressureList.vue +++ b/src/components/content/windPressure/WindPressureList.vue @@ -2,18 +2,40 @@
风压
- + +
+
+ +
+
+
+
+ +
+
+
+