diff --git a/src/assets/axhub-scatter-chart_u159.svg b/src/assets/axhub-scatter-chart_u159.svg new file mode 100644 index 0000000..87dc5d8 --- /dev/null +++ b/src/assets/axhub-scatter-chart_u159.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/assets/axhub-scatter-chart_u92.svg b/src/assets/axhub-scatter-chart_u92.svg new file mode 100644 index 0000000..fe4195f --- /dev/null +++ b/src/assets/axhub-scatter-chart_u92.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/assets/index-bg.jpg b/src/assets/index-bg.jpg index cf02201..9bfda93 100644 Binary files a/src/assets/index-bg.jpg and b/src/assets/index-bg.jpg differ diff --git a/src/assets/u100.png b/src/assets/u100.png new file mode 100644 index 0000000..3d118a5 Binary files /dev/null and b/src/assets/u100.png differ diff --git a/src/assets/u104.svg b/src/assets/u104.svg new file mode 100644 index 0000000..9157e91 --- /dev/null +++ b/src/assets/u104.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u108.svg b/src/assets/u108.svg new file mode 100644 index 0000000..f55613f --- /dev/null +++ b/src/assets/u108.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u112.svg b/src/assets/u112.svg new file mode 100644 index 0000000..3ce9680 --- /dev/null +++ b/src/assets/u112.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u120.svg b/src/assets/u120.svg new file mode 100644 index 0000000..bc6b192 --- /dev/null +++ b/src/assets/u120.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/u124.svg b/src/assets/u124.svg new file mode 100644 index 0000000..02fd914 --- /dev/null +++ b/src/assets/u124.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u128.svg b/src/assets/u128.svg new file mode 100644 index 0000000..e7cd60a --- /dev/null +++ b/src/assets/u128.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u132.svg b/src/assets/u132.svg new file mode 100644 index 0000000..eb547e8 --- /dev/null +++ b/src/assets/u132.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u14.png b/src/assets/u14.png new file mode 100644 index 0000000..bb5830d Binary files /dev/null and b/src/assets/u14.png differ diff --git a/src/assets/u154.svg b/src/assets/u154.svg new file mode 100644 index 0000000..4d99f08 --- /dev/null +++ b/src/assets/u154.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u164.png b/src/assets/u164.png new file mode 100644 index 0000000..0d3f688 Binary files /dev/null and b/src/assets/u164.png differ diff --git a/src/assets/u176.svg b/src/assets/u176.svg new file mode 100644 index 0000000..073e03c --- /dev/null +++ b/src/assets/u176.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u177.svg b/src/assets/u177.svg new file mode 100644 index 0000000..53a264f --- /dev/null +++ b/src/assets/u177.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u178.svg b/src/assets/u178.svg new file mode 100644 index 0000000..a9a87c9 --- /dev/null +++ b/src/assets/u178.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u187.svg b/src/assets/u187.svg new file mode 100644 index 0000000..5c430be --- /dev/null +++ b/src/assets/u187.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u195.svg b/src/assets/u195.svg new file mode 100644 index 0000000..961ca25 --- /dev/null +++ b/src/assets/u195.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u20.png b/src/assets/u20.png new file mode 100644 index 0000000..cbf8e94 Binary files /dev/null and b/src/assets/u20.png differ diff --git a/src/assets/u212.svg b/src/assets/u212.svg new file mode 100644 index 0000000..ace17d6 --- /dev/null +++ b/src/assets/u212.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u217.svg b/src/assets/u217.svg new file mode 100644 index 0000000..c0110c0 --- /dev/null +++ b/src/assets/u217.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u239.png b/src/assets/u239.png new file mode 100644 index 0000000..39d12a0 Binary files /dev/null and b/src/assets/u239.png differ diff --git a/src/assets/u27.png b/src/assets/u27.png new file mode 100644 index 0000000..85095bb Binary files /dev/null and b/src/assets/u27.png differ diff --git a/src/assets/u280.png b/src/assets/u280.png new file mode 100644 index 0000000..975fef6 Binary files /dev/null and b/src/assets/u280.png differ diff --git a/src/assets/u282.png b/src/assets/u282.png new file mode 100644 index 0000000..1264291 Binary files /dev/null and b/src/assets/u282.png differ diff --git a/src/assets/u33.png b/src/assets/u33.png new file mode 100644 index 0000000..2dffb5b Binary files /dev/null and b/src/assets/u33.png differ diff --git a/src/assets/u39.png b/src/assets/u39.png new file mode 100644 index 0000000..ca7a552 Binary files /dev/null and b/src/assets/u39.png differ diff --git a/src/assets/u4.png b/src/assets/u4.png new file mode 100644 index 0000000..ff66454 Binary files /dev/null and b/src/assets/u4.png differ diff --git a/src/assets/u43.png b/src/assets/u43.png new file mode 100644 index 0000000..3b22ac7 Binary files /dev/null and b/src/assets/u43.png differ diff --git a/src/assets/u51.svg b/src/assets/u51.svg new file mode 100644 index 0000000..139b866 --- /dev/null +++ b/src/assets/u51.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u53.svg b/src/assets/u53.svg new file mode 100644 index 0000000..f5fc399 --- /dev/null +++ b/src/assets/u53.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u54.svg b/src/assets/u54.svg new file mode 100644 index 0000000..54ab2d0 --- /dev/null +++ b/src/assets/u54.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u55.svg b/src/assets/u55.svg new file mode 100644 index 0000000..8580087 --- /dev/null +++ b/src/assets/u55.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u7.svg b/src/assets/u7.svg new file mode 100644 index 0000000..917bbcb --- /dev/null +++ b/src/assets/u7.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u72.svg b/src/assets/u72.svg new file mode 100644 index 0000000..5f28616 --- /dev/null +++ b/src/assets/u72.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u73.svg b/src/assets/u73.svg new file mode 100644 index 0000000..9a894ed --- /dev/null +++ b/src/assets/u73.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u77.svg b/src/assets/u77.svg new file mode 100644 index 0000000..dc96b82 --- /dev/null +++ b/src/assets/u77.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u8.svg b/src/assets/u8.svg new file mode 100644 index 0000000..984c304 --- /dev/null +++ b/src/assets/u8.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u81.svg b/src/assets/u81.svg new file mode 100644 index 0000000..6c2c7ac --- /dev/null +++ b/src/assets/u81.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u85.svg b/src/assets/u85.svg new file mode 100644 index 0000000..ec8253f --- /dev/null +++ b/src/assets/u85.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/u96.svg b/src/assets/u96.svg new file mode 100644 index 0000000..87ac36a --- /dev/null +++ b/src/assets/u96.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Bindex.vue b/src/components/Bindex.vue index 287c87c..243d364 100644 --- a/src/components/Bindex.vue +++ b/src/components/Bindex.vue @@ -7,34 +7,53 @@
-

区域面积

- 75 - + +
+

区域面积

+ 75 + +
-

液位

- 323 - mm + +
+

液位

+ 323 + mm +
-

渗透量

- 1356 - + +
+

渗透量

+ 1356 + +
-

COD

- 19 - mg/L + + +
+

COD

+ 19 + mg/L +
-

氨氮

- 8 - mg/L + +
+

氨氮

+ 8 + mg/L +
-

SS

- 9 - mg/L + +
+

SS

+ 9 + mg/L +
@@ -90,21 +109,25 @@ flex-wrap: wrap; justify-content: space-around; align-items: center; - + img { + width: 80px; + height: 80px; + } >div { width: 40%; height: 30%; border: 1px solid rgb(197, 195, 195); display: flex; flex-direction: column; - background:#d8e8f7; - // align-items: center; + background:#3CB6CC; + align-items: center; justify-content: center; text-align: center; padding: 10px; border-radius: 10px; font-size: 20px; line-height: 45px; + color: #fff; } } } @@ -112,7 +135,7 @@ } .value { font-size: 38px; - color: #1baeae; + color: #02ffff; font-weight: bold; } \ No newline at end of file diff --git a/src/components/Cindex.vue b/src/components/Cindex.vue index 4bbe3c8..3a6a330 100644 --- a/src/components/Cindex.vue +++ b/src/components/Cindex.vue @@ -6,46 +6,80 @@
-
-

地块面积

- 730 - + +
+ +
+

地块面积

+ 730 + +
+
-
-

地块调蓄容积

- 500 - +
+ +
+

地块调蓄容积

+ 500 + +
+
-
-

调蓄池液位

- 3.6 - m +
+ +
+

调蓄池液位

+ 3.6 + m +
+
-
-

溢流量

- 1.25 - L/s +
+ +
+

溢流量

+ 1.25 + L/s +
+
-
-

COD

- 8 - mg/L +
+ +
+

COD

+ 8 + mg/L +
+
-
-

氨氮

- 12.5 - mg/L +
+ +
+

氨氮

+ 12.5 + mg/L +
+
-
-

SS

- 20.7 - mg/L +
+ +
+

SS

+ 20.7 + mg/L +
+
-
-

地块剩余调蓄容积

- 316 - +
+ +
+

地块剩余调蓄容积

+ 316 + +
+
+
@@ -103,29 +137,32 @@ flex-wrap: wrap; justify-content: space-around; align-items: center; - + img { + width: 60px; + height: 60px; + } >div { - width: 10%; + width: 11%; height: 80%; border: 1px solid rgb(197, 195, 195); display: flex; - flex-direction: column; - background:#d8e8f7; + // flex-direction: column; + background:#3CB6CC; // align-items: center; - justify-content: center; + justify-content: space-between; text-align: center; padding: 10px; border-radius: 10px; font-size: 20px; - line-height: 45px; + color: #fff; } } } } } .value { - font-size: 38px; - color: #1baeae; + font-size: 32px; + color: #02ffff; font-weight: bold; } \ No newline at end of file diff --git a/src/components/Ganalyse1.vue b/src/components/Ganalyse1.vue index 6caf8ba..956c949 100644 --- a/src/components/Ganalyse1.vue +++ b/src/components/Ganalyse1.vue @@ -1,6 +1,19 @@ @@ -21,61 +34,49 @@ export default { }); onMounted(async () => { - getChartsZf2("echartDiv", '热岛消减率'); - // getChartsZfl("echartDivQ", '蒸发带走的潜热') + getChartsZf2("echartDiv", '每日热岛消减率'); + getChartsGauge("echartGauge"); + getChartsPie("echartPie"); }); - const getChartsZfl = (id, text) => { + const getChartsGauge = (id) => { var dom = document.getElementById(id); var op = { - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross', - crossStyle: { - color: '#999' - } - } - }, legend: { - data: ['系统A', '系统B', '系统C', '系统D', '系统E'] + orient: 'vertical', + left: '10%', + top: '20%' }, - xAxis: [ + radar: { + // center: ['45%', '70%'], + indicator: [ + { name: '1月', max: 6500 }, + { name: '2月', max: 16000 }, + { name: '3月', max: 30000 }, + { name: '4月', max: 38000 }, + { name: '5月', max: 52000 }, + { name: '6月', max: 25000 }, + { name: '7月', max: 6500 }, + { name: '8月', max: 16000 }, + { name: '9月', max: 30000 }, + { name: '10月', max: 38000 }, + { name: '11月', max: 52000 }, + { name: '12月', max: 25000 } + ] + }, + series: [ { - type: 'category', + type: 'radar', data: [ - "00", - "01", - "02", - "03", - "04", - "05", - "06", - "07", - "08", - "09", - "10", - "11", - "12", - "13", - "14", - "15", - "16", - "17", - "18", - "19", - "20", - "21", - "22", - "23", - ], - axisPointer: { - type: 'shadow' - } + { + value: [4200, 3000, 20000, 35000, 50000, 18000, 4200, 3000, 20000, 35000, 50000, 18000], + name: '系统A' + }, + { + value: [4000, 1000, 10000, 25000, 20000, 14000, 2200, 1000, 10000, 25000, 40000, 20000], + name: '系统B' + } + ] } - ], - yAxis: [ - - ] }; getEchart(dom, op) @@ -95,6 +96,7 @@ export default { bottom: '3%', containLabel: true }, + legend: {}, xAxis: [ { type: 'category', @@ -193,8 +195,46 @@ export default { }; getEchart(dom, op) } + const getChartsPie = (id) => { + var dom = document.getElementById(id); + var op = { + tooltip: { + trigger: 'item' + }, + legend: { + orient: 'vertical', + left: '10%', + top: '20%' + }, + series: [ + { + name: '热岛消减率', + type: 'pie', + radius: '50%', + data: [ + { value: 1048, name: '系统A' }, + { value: 735, name: '系统B' }, + { value: 580, name: '系统C' }, + { value: 484, name: '系统D' }, + { value: 300, name: '系统E' }, + ], + emphasis: { + itemStyle: { + shadowBlur: 10, + shadowOffsetX: 0, + shadowColor: 'rgba(0, 0, 0, 0.5)' + } + } + } + ] + }; + getEchart(dom, op) + } const getEchart = (dom, op) => { if (dom) { + // 图表的dom属性中发现了一个特殊的属性:_echarts_instance_,对应的值是一个id,可能是由于再次渲染时这个id未发生改变导致ehcarts认为不需要重新渲染 + // 手动移除该属性 + dom.removeAttribute('_echarts_instance_') var myChart = echarts.init(dom); var option = op; @@ -203,7 +243,8 @@ export default { }; return { ...toRefs(state), - getChartsZfl, + getChartsZf2, + getChartsGauge, getEchart }; }, @@ -215,13 +256,42 @@ export default { width: 100%; height: 100%; display: flex; - flex-direction: column; justify-content: space-between; padding: 10px; - + .left { + width: 50%; + height: 100%; + font-size: 20px; + >div { + width: 100%; + height: 48%; + // border: 1px solid red; + .echartDiv100 { + width: 100%; + height: 100% !important; + margin: 0 auto; + // border: 1px solid red; + } + } + } + .right { + width: 50%; + height: 100%; + font-size: 20px; + } +.gongshi { + width: 100%; + height: 100px; + display: flex; + flex-direction: column; + align-items: start; + p { + line-height: 50px; + } +} .echartDiv100 { width: 100%; - height: 100%; + height: calc(100% - 100px); margin: 0 auto; // border: 1px solid red; } diff --git a/src/components/Ganalyse2.vue b/src/components/Ganalyse2.vue index 829879d..99ad9d7 100644 --- a/src/components/Ganalyse2.vue +++ b/src/components/Ganalyse2.vue @@ -1,7 +1,22 @@ @@ -19,12 +34,110 @@ export default { }, setup() { const state = reactive({ - + }); - onMounted(async () => { + onMounted(async () => { + getChartsBar("echartBar"); + getChartsPie("echartPie"); getChartsZfl("echartDiv", '蒸发量'); getChartsZfl("echartDivQ", '蒸发带走的潜热') - }); + }); + const getChartsBar = (id) => { + var dom = document.getElementById(id); + var op = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross' + } + }, + title: { + text: '蒸发带走的潜热' + }, + legend: {}, + xAxis: { + type: 'value' + + }, + yAxis: { + type: 'category', + data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'] + }, + series: [ + { + name: '系统A', + data: [100, 200, 300, 200, 100, 300, 400, 200, 150, 600, 550, 340], + type: 'bar' + }, + { + name: '系统B', + data: [200, 150, 600, 550, 100, 200, 300, 200, 100, 300, 400, 340], + type: 'bar' + }, + { + name: '系统C', + data: [100, 200, 150, 600, 550, 200, 300, 200, 100, 300, 400, 340], + type: 'bar' + }, + { + name: '系统D', + data: [400, 200, 150, 600, 100, 200, 300, 200, 100, 300, 550, 340], + type: 'bar' + }, + { + name: '系统E', + data: [200, 100, 100, 200, 300, 400, 400, 200, 150, 600, 550, 340], + type: 'bar' + } + ] + }; + getEchart(dom, op) + } + const getChartsPie = (id) => { + var dom = document.getElementById(id); + var op = { + title: { + text: '蒸发量' + }, + tooltip: { + trigger: 'item' + }, + legend: { + top: '5%', + left: 'center' + }, + series: [ + { + name: 'Access From', + type: 'pie', + radius: ['40%', '70%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + emphasis: { + label: { + show: true, + fontSize: 40, + fontWeight: 'bold' + } + }, + labelLine: { + show: false + }, + data: [ + { value: 1048, name: '系统A' }, + { value: 735, name: '系统B' }, + { value: 580, name: '系统C' }, + { value: 484, name: '系统D' }, + { value: 300, name: '系统E' } + ] + } + ] + }; + getEchart(dom, op) + } const getChartsZfl = (id, text) => { var dom = document.getElementById(id); var op = { @@ -242,7 +355,8 @@ export default { return { ...toRefs(state), getChartsZfl, - getEchart + getEchart, + getChartsBar }; }, }; @@ -253,15 +367,45 @@ export default { width: 100%; height: 100%; display: flex; - flex-direction: column; justify-content: space-between; padding: 10px; + .left { + width: 50%; + height: 100%; + font-size: 20px; + >div { + width: 100%; + height: 48%; + // border: 1px solid red; + .echartDiv100 { + width: 100%; + height: 100% !important; + margin: 0 auto; + // border: 1px solid red; + } + } + } + + .right { + width: 50%; + height: 100%; + font-size: 20px; + } + + .gongshi { + width: 100%; + height: 100px; + display: flex; + flex-direction: column; + align-items: start; + line-height: 50px; + } + .echartDiv100 { width: 100%; - height: 49%; + height: calc(50% - 50px); margin: 0 auto; // border: 1px solid red; } -} - +} diff --git a/src/components/Gindex.vue b/src/components/Gindex.vue index c0f38b1..9779bdc 100644 --- a/src/components/Gindex.vue +++ b/src/components/Gindex.vue @@ -6,45 +6,76 @@
-
-

径流系数

- 0.6 - - +
+ +
+

径流系数

+ 0.6 + +
-
-

蒸腾量

- 32 - % +
+ + +
+

蒸腾量

+ 32 + % +
-
-

COD

- 27 - mg/L +
+ +
+

COD

+ 27 + mg/L +
+
-
-

氨氮

- 11 - mg/L +
+ +
+

氨氮

+ 11 + mg/L +
+
-
-

Ss

- 6 - mg/L +
+ +
+

SS

+ 6 + mg/L +
+
-
-

屋面温度 无绿化

- 23 - +
+ +
+

屋面温度 无绿化

+ 23 + +
+
-
-

屋面温度 有绿化

- 19 - +
+ +
+

屋面温度 有绿化

+ 19 + +
+
-
-

热岛消减率

- 21 - % +
+ +
+

热岛消减率

+ 21 + % +
+
@@ -103,29 +134,32 @@ flex-wrap: wrap; justify-content: space-around; align-items: center; - >div { width: 10%; height: 80%; border: 1px solid rgb(197, 195, 195); display: flex; - flex-direction: column; - background:#d8e8f7; + background:#3CB6CC; // align-items: center; - justify-content: center; + justify-content: space-between; text-align: center; padding: 10px; border-radius: 10px; font-size: 20px; - line-height: 45px; + // line-height: 45px; + color: #fff; + img { + width: 60px; + height: 60px; + } } } } } } .value { - font-size: 38px; - color: #1baeae; + font-size: 32px; + color: #02ffff; font-weight: bold; } \ No newline at end of file diff --git a/src/components/History.vue b/src/components/History.vue index 37b0167..2bec40a 100644 --- a/src/components/History.vue +++ b/src/components/History.vue @@ -2,7 +2,7 @@
- 系统选择: + 参数选择:
- 系统选择: - + 参数选择: +
@@ -81,37 +81,45 @@ export default { { id: "echart0", title: "降水量-柱状图", - legend: ["降水量", "数据2", "数据3"], + legend: [], color: ["#6fdbce", "#f00", "#0000ff"], } ], fxOptions: [ { value: "0", - label: "降水量", + label: "径流系数", }, { value: "1", - label: "系统A", + label: "蒸腾量", }, { value: "2", - label: "系统B", + label: "COD", }, { value: "3", - label: "系统C", + label: "氨氮", }, { value: "4", - label: "系统D", + label: "SS", }, { value: "5", - label: "系统E", + label: "屋面温度无绿化", + }, + { + value: "6", + label: "屋面温度有绿化", + }, + { + value: "7", + label: "热岛消减率", }, ], - value1: "降水量", + value1: "0", tableHeader: [ { label: 1, @@ -200,10 +208,19 @@ export default { }, ], }); - onMounted(async () => {}); - + onMounted(async () => { + state.value1 = state.fxOptions[0]; + console.log(123, state.value1) + state.listData[0].title = state.value1.label; + }); + const changeValue = (data) => { + console.log('data', data); + console.log('selectItem', state.value1); + state.listData[0].title = state.value1.label; + } return { ...toRefs(state), + changeValue }; }, }; diff --git a/src/components/History2.vue b/src/components/History2.vue index 9a79f30..702c6cb 100644 --- a/src/components/History2.vue +++ b/src/components/History2.vue @@ -2,13 +2,13 @@
- 系统选择: - + 参数选择: +
@@ -73,37 +73,37 @@ export default { { id: "echart0", title: "降水量-柱状图", - legend: ["降水量", "数据2"], + legend: [], color: ["#6fdbce"], }, ], fxOptions: [ { value: "0", - label: "降水量", + label: "区域面积", }, { value: "1", - label: "系统A", + label: "液位", }, { value: "2", - label: "系统B", + label: "渗透量", }, { value: "3", - label: "系统C", + label: "COD", }, { value: "4", - label: "系统D", + label: "氨氮", }, { value: "5", - label: "系统E", + label: "SS", }, ], - value1: "降水量", + value1: "0", tableHeader: [ { label: 1, @@ -192,10 +192,19 @@ export default { }, ], }); - onMounted(async () => {}); - + onMounted(async () => { + state.value1 = state.fxOptions[0]; + console.log(123, state.value1) + state.listData[0].title = state.value1.label; + }); + const changeValue = (data) => { + console.log('data', data); + console.log('selectItem', state.value1); + state.listData[0].title = state.value1.label; + } return { ...toRefs(state), + changeValue }; }, }; diff --git a/src/components/History3.vue b/src/components/History3.vue index 78b7301..3edc490 100644 --- a/src/components/History3.vue +++ b/src/components/History3.vue @@ -2,13 +2,13 @@
- 系统选择: - + 参数选择: +
@@ -72,38 +72,54 @@ export default { listData: [ { id: "echart0", - title: "降水量-柱状图", - legend: ["降水量"], + title: "透水铺砖储水量-面积图", + legend: [], color: ["#6fdbce"], }, ], fxOptions: [ { value: "0", - label: "降水量", + label: "透水铺砖储水量", }, { value: "1", - label: "系统A", + label: "透水铺砖表面温度", }, { value: "2", - label: "系统B", + label: "热岛消减率", }, { value: "3", - label: "系统C", + label: "孔隙率", }, { value: "4", - label: "系统D", + label: "透水铺装面积", }, { value: "5", - label: "系统E", + label: "入渗系统面积", + }, + { + value: "6", + label: "透水系数", + }, + { + value: "7", + label: "入渗系数", + }, + { + value: "8", + label: "透水层厚度", + }, + { + value: "9", + label: "渗透量", }, ], - value1: "降水量", + value1: "", tableHeader: [ { label: 1, @@ -192,10 +208,20 @@ export default { }, ], }); - onMounted(async () => {}); + onMounted(async () => { + state.value1 = state.fxOptions[0]; + console.log(123, state.value1) + state.listData[0].title = state.value1.label; + }); + const changeValue = (data) => { + console.log('data', data); + console.log('selectItem', state.value1); + state.listData[0].title = state.value1.label; + } return { ...toRefs(state), + changeValue }; }, }; diff --git a/src/components/History4.vue b/src/components/History4.vue index 7bb985d..906f1f2 100644 --- a/src/components/History4.vue +++ b/src/components/History4.vue @@ -2,13 +2,13 @@
- 系统选择: - + 参数选择: +
@@ -74,38 +74,46 @@ export default { listData: [ { id: "echart0", - title: "降水量-柱状图", - legend: ["降水量"], + title: "", + legend: [], color: ["#6fdbce"], }, ], fxOptions: [ { value: "0", - label: "降水量", + label: "地块面积", }, { value: "1", - label: "系统A", + label: "地块调蓄容积", }, { value: "2", - label: "系统B", + label: "调蓄池液位", }, { value: "3", - label: "系统C", + label: "溢流量", }, { value: "4", - label: "系统D", + label: "COD", }, { value: "5", - label: "系统E", + label: "氨氮", + }, + { + value: "6", + label: "SS", + }, + { + value: "7", + label: "地块剩余调蓄容积", }, ], - value1: "降水量", + value1: "0", tableHeader: [ { label: 1, @@ -194,10 +202,19 @@ export default { }, ], }); - onMounted(async () => {}); - + onMounted(async () => { + state.value1 = state.fxOptions[0]; + console.log(123, state.value1) + state.listData[0].title = state.value1.label; + }); + const changeValue = (data) => { + console.log('data', data); + console.log('selectItem', state.value1); + state.listData[0].title = state.value1.label; + } return { ...toRefs(state), + changeValue }; }, }; diff --git a/src/components/History5.vue b/src/components/History5.vue index 37b0167..e675859 100644 --- a/src/components/History5.vue +++ b/src/components/History5.vue @@ -2,13 +2,13 @@
- 系统选择: - + 参数选择: +
@@ -20,9 +20,7 @@
- + @@ -74,38 +72,38 @@ export default { listData: [ { id: "echart0", - title: "降水量-柱状图", - legend: ["降水量"], + title: "降雨量-柱状图", + legend: ["降雨量"], color: ["#6fdbce"], }, ], fxOptions: [ { value: "0", - label: "降水量", + label: "降雨量", }, { value: "1", - label: "系统A", + label: "温度", }, { value: "2", - label: "系统B", + label: "空气湿度", }, { value: "3", - label: "系统C", + label: "蒸发量", }, { value: "4", - label: "系统D", + label: "土壤湿度", }, { value: "5", - label: "系统E", + label: "风速", }, ], - value1: "降水量", + value1: "0", tableHeader: [ { label: 1, @@ -194,10 +192,20 @@ export default { }, ], }); - onMounted(async () => {}); + onMounted(async () => { + state.value1 = state.fxOptions[0]; + console.log(123, state.value1) + state.listData[0].title = state.value1.label; + }); + const changeValue = (data) => { + console.log('data', data); + console.log('selectItem', state.value1); + state.listData[0].title = state.value1.label; + } return { ...toRefs(state), + changeValue }; }, }; diff --git a/src/components/Index.vue b/src/components/Index.vue index 61df449..20df4c1 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -117,7 +117,7 @@ export default { border: 1px solid rgb(197, 195, 195); display: flex; flex-direction: column; - background:#d8e8f7; + background:#3CB6CC; // align-items: center; justify-content: center; text-align: center; @@ -126,6 +126,7 @@ export default { font-size: 20px; line-height: 40px; margin: 10px 0; + color: #fff; } } } diff --git a/src/components/Report.vue b/src/components/Report.vue index 3f3c010..9081f4c 100644 --- a/src/components/Report.vue +++ b/src/components/Report.vue @@ -46,29 +46,29 @@
- -
- -
-

- 未来7天预报 -

-
-
-

- {{ item.day }}{{ item.date }} -

-
- - - - -

{{ item.high }}

-

{{ item.low }}

-
+

+ 未来7天预报 +

+
+
+

+ {{ item.day }}{{ item.date }} +

+
+ + + + +

{{ item.high }}

+

{{ item.low }}

+
+
+
+
+
@@ -141,78 +141,269 @@ export default { onMounted(async () => { getWeatherCharts() }); const getWeatherCharts = () => { var dom = document.getElementById("echartDiv"); + var weatherName = ["小雨","小雨","阴","小雨","多云","小雨","小雨"]; var op = { - title: { - text: '未来一周天气图' - }, grid: { - left: "3%", //画布左移位置 - right: '3%', - top: "20%", - width: "90%", //画布宽度 - height: "65%", //画布高度 + left: '2%', + right: '2%', + bottom: '3%', + containLabel: true }, tooltip: { trigger: 'axis' }, - legend: {}, - xAxis: { - type: 'category', - boundaryGap: false, - data: ['周一', '周二', '周三', '周四', '周五', '周六', '周天'] + legend: { + show: false }, + dataZoom: [ + { + type: 'inside', + start: 0, + end: 100 + }, + { + start: 0, + end: 100 + } + ], + xAxis: [ + // 日期 + { + type: 'category', + boundaryGap: false, + position: 'top', + offset: 130, + zlevel: 100, + axisLine: { + show: false + }, + axisTick: { + show: false + }, + axisLabel: { + interval: 0, + formatter: [ + '{a|{value}}' + ].join('\n'), + rich: { + a: { + // color: 'white', + fontSize: 18 + } + } + }, + nameTextStyle: { + + }, + data: ["25日","26日","27日","28日","29日","30日","31日"] + }, + // 星期 + { + type: 'category', + boundaryGap: false, + position: 'top', + offset: 110, + zlevel: 100, + axisLine: { + show: false + }, + axisTick: { + show: false + }, + axisLabel: { + interval: 0, + formatter: [ + '{a|{value}}' + ].join('\n'), + rich: { + a: { + // color: 'white', + fontSize: 14 + } + } + }, + nameTextStyle: { + fontWeight: 'bold', + fontSize: 19 + }, + data: ["周一","周二","周三","周四","周五","周六","周日"] + }, + // 天气图标 + { + type: 'category', + boundaryGap: false, + position: 'top', + offset: 20, + zlevel: 100, + axisLine: { + show: false + }, + axisTick: { + show: false + }, + axisLabel: { + interval: 0, + formatter: function(value, index) { + return '{' + value + '| }\n{b|' + weatherName[value] + '}' + }, + rich: { + 0: { + backgroundColor: { + // image: require('@/assets/weather_icon/' + this.weatherIconDic[this.weatherdata.weather[0]] + '.png') + image: 'https://d.scggqx.com/forecast/img/小雨.png' + }, + height: 40, + width: 40 + }, + 1: { + backgroundColor: { + // image: require('@/assets/weather_icon/' + this.weatherIconDic[this.weatherdata.weather[1]] + '.png') + image: 'https://d.scggqx.com/forecast/img/小雨.png' + }, + height: 40, + width: 40 + }, + 2: { + backgroundColor: { + // image: require('@/assets/weather_icon/' + this.weatherIconDic[this.weatherdata.weather[2]] + '.png') + image: 'https://d.scggqx.com/forecast/img/阴.png' + }, + height: 40, + width: 40 + }, + 3: { + backgroundColor: { + // image: require('@/assets/weather_icon/' + this.weatherIconDic[this.weatherdata.weather[3]] + '.png') + image: 'https://d.scggqx.com/forecast/img/小雨.png' + }, + height: 40, + width: 40 + }, + 4: { + backgroundColor: { + // image: require('@/assets/weather_icon/' + this.weatherIconDic[this.weatherdata.weather[4]] + '.png') + image: 'https://d.scggqx.com/forecast/img/多云.png' + }, + height: 40, + width: 40 + }, + 5: { + backgroundColor: { + // image: require('@/assets/weather_icon/' + this.weatherIconDic[this.weatherdata.weather[5]] + '.png') + image: 'https://d.scggqx.com/forecast/img/小雨.png' + }, + height: 40, + width: 40 + }, + 6: { + backgroundColor: { + // image: require('@/assets/weather_icon/' + this.weatherIconDic[this.weatherdata.weather[6]] + '.png') + image: 'https://d.scggqx.com/forecast/img/小雨.png' + }, + height: 40, + width: 40 + }, + b: { + // color: 'white', + fontSize: 12, + lineHeight: 30, + height: 20 + } + } + }, + nameTextStyle: { + fontWeight: 'bold', + fontSize: 19 + }, + // data: this.weatherdata.weather + //data: ["小雨","小雨","阴","小雨","多云","小雨","小雨"] + data: [0,1,2,3,4,5,6] + } + ], yAxis: { type: 'value', + show: false, axisLabel: { - formatter: '{value} °C' + formatter: '{value} °C', + color: 'white' } }, series: [ { - name: '最高点', + name: '最高气温', type: 'line', - data: [10, 11, 13, 11, 12, 12, 9], - markPoint: { - data: [ - { type: 'max', name: 'Max' }, - { type: 'min', name: 'Min' } - ] + data: ["16.3","16.2","17.6","14.2","17.6","15.7","14.3"], + symbol: 'emptyCircle', + symbolSize: 10, + showSymbol: true, + smooth: true, + itemStyle: { + normal: { + color: '#C95843' + } + }, + areaStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: 'rgb(255, 158, 68)' + }, + { + offset: 1, + color: 'rgb(255, 70, 131)' + } + ]) + }, + label: { + show: true, + position: 'top', + // color: 'white', + formatter: '{c} °C' + }, + lineStyle: { + width: 1, + // color: 'white' }, - markLine: { - data: [{ type: 'average', name: 'Avg' }] - } }, { - name: '最低点', + name: '最低气温', type: 'line', - data: [1, -2, 2, 5, 3, 2, 0], - markPoint: { - data: [{ name: '周最低', value: -2, xAxis: 1, yAxis: -1.5 }] + data: ["13.4","12.8","13.5","12.5","12.4","13.2","13"], + symbol: 'emptyCircle', + symbolSize: 10, + showSymbol: true, + smooth: true, + itemStyle: { + normal: { + color: 'blue' + } + }, + label: { + show: true, + position: 'bottom', + // color: 'white', + formatter: '{c} °C' + }, + lineStyle: { + width: 1, + // color: 'white' + }, + areaStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: 'rgb(255, 158, 68)' + }, + { + offset: 1, + color: 'rgb(255, 70, 131)' + } + ]) }, - markLine: { - data: [ - { type: 'average', name: 'Avg' }, - [ - { - symbol: 'none', - x: '90%', - yAxis: 'max' - }, - { - symbol: 'circle', - label: { - position: 'start', - formatter: 'Max' - }, - type: 'max', - name: '最高点' - } - ] - ] - } } ] - }; + } + getEchart(dom, op) } const getEchart = (dom, op) => { @@ -239,26 +430,28 @@ export default { display: flex; flex-direction: column; padding: 10px; - + justify-content: space-between; // border-color: #5C8AB3; .top-div { width: 100%; height: 35%; - // border: 1px solid rgb(58, 152, 230); + // display: flex; justify-content: space-between; - .left, - .right { - width: 49.8%; - border: 1px solid rgb(58, 152, 230); - padding: 20px; + .left { + width: 22%; + + padding: 10px; + height: 100%; + box-shadow: 0 0 8px #3CB6CC inset; + border-radius: 5px; } h1 { width: 100%; text-align: center; - font-size: 30px; + font-size: 26px; } .flex1 { @@ -283,42 +476,47 @@ export default { ul { display: flex; justify-content: space-between; - margin-top: 15px; - + + flex-wrap: wrap; li { - padding: 10px; - font-size: 22px; - width: 16%; + padding: 5px; + font-size: 16px; + width: 33%; text-align: center; } } } - .middle-div { - width: 100%; - height: 25%; - // border: 1px solid rgb(58, 152, 230); - font-size: 26px; + .right { + width: 77%; + box-shadow: 0 0 8px #3CB6CC inset; + border-radius: 5px; + padding: 20px; h2 { width: 100%; text-align: center; margin-bottom: 10px; - font-size: 30px; + font-size: 26px; } - + .card { + height: calc(100% - 50px); + } + .flex .one-day { width: 13%; - height: 120px; + height: 100%; display: flex; flex-direction: column; - border: 1px solid rgb(58, 152, 230); + // box-shadow: 0 0 8px #3CB6CC inset; + border-radius: 5px; justify-content: center; align-items: center; border-radius: 5px; line-height: 40px; - + background: #3CB6CC; + color: #fff; .weather-icon { display: inline-block; height: 46px; @@ -334,12 +532,13 @@ export default { } } } - .bottom-div { width: 100%; - height: 40%; - // border: 1px solid red; - + height: 63%; + box-shadow: 0 0 8px #3CB6CC inset; + border-radius: 5px; + padding: 20px; + .echartDiv100 { width: 100%; height: 100%; diff --git a/src/components/Sindex.vue b/src/components/Sindex.vue index 0d30e43..f2f5431 100644 --- a/src/components/Sindex.vue +++ b/src/components/Sindex.vue @@ -6,62 +6,97 @@
-
-

透水铺砖储水量

- 200 - + +
+ +
+

透水铺砖储水量

+ 200 + +
-
-

透水铺砖表面温度

- 16.5 - + +
+ +
+

透水铺砖表面温度

+ 16.5 + +
-
-

热岛消减率

- 19.6 - % +
+ +
+

热岛消减率

+ 19.6 + % +
-
-

孔隙率

- 10 - % +
+ +
+

孔隙率

+ 10 + % +
+
+
-

透水铺装面积

- 500 - + +
+

透水铺装面积

+ 500 + +
-

入渗系统面积

- 437 - + +
+

入渗系统面积

+ 437 + +
-

透水系数

- 10 - mm/min + +
+

透水系数

+ 10 + mm/min +
-

入渗系数

- 1.3 - mm/min + +
+

入渗系数

+ 1.3 + mm/min +
-

透水层厚度

- 300 - mm + +
+

透水层厚度

+ 300 + mm +
-

渗透量

- 362 - + +
+

渗透量

+ 362 + +
+
@@ -112,21 +147,23 @@ flex-wrap: wrap; justify-content: space-around; align-items: center; - + >div { width: 24%; height: 80%; border: 1px solid rgb(197, 195, 195); display: flex; - flex-direction: column; - background:#d8e8f7; + // flex-direction: column; + background:#3CB6CC; // align-items: center; - justify-content: center; + justify-content: space-around; text-align: center; padding: 10px; border-radius: 10px; font-size: 20px; line-height: 45px; + color: #fff; + } } } @@ -147,21 +184,25 @@ flex-wrap: wrap; justify-content: space-around; align-items: center; - + img { + height: 80px; + width: 80px; + } >div { width: 40%; height: 30%; border: 1px solid rgb(197, 195, 195); display: flex; flex-direction: column; - background:#d8e8f7; - // align-items: center; + background:#3CB6CC; + align-items: center; justify-content: center; text-align: center; padding: 10px; border-radius: 10px; font-size: 20px; line-height: 45px; + color: #fff; } } h2 { @@ -173,8 +214,8 @@ } } .value { - font-size: 38px; - color: #1baeae; + font-size: 32px; + color: #0af1f1; font-weight: bold; } \ No newline at end of file diff --git a/src/components/Windex.vue b/src/components/Windex.vue index d7b75ab..effaa35 100644 --- a/src/components/Windex.vue +++ b/src/components/Windex.vue @@ -6,36 +6,56 @@
+
-

降雨量

- 12 - mm/s + +
+

降雨量

+ 12 + mm/s +
-

温度

- 23 - + +
+

温度

+ 23 + +
-

空气湿度

- 22 - % + +
+

空气湿度

+ 22 + % +
-

蒸发量

- 9 - mm + +
+

蒸发量

+ 9 + mm +
-

土壤湿度

- 56 - % + +
+

土壤湿度

+ 56 + % +
-

风速

- 3 - m/s + +
+

风速

+ 3 + m/s +
+
@@ -90,21 +110,24 @@ flex-wrap: wrap; justify-content: space-around; align-items: center; - + img { + height: 80px; + } >div { width: 40%; height: 30%; border: 1px solid rgb(197, 195, 195); display: flex; flex-direction: column; - background:#d8e8f7; - // align-items: center; + background:#3CB6CC; + align-items: center; justify-content: center; text-align: center; padding: 10px; border-radius: 10px; font-size: 20px; line-height: 45px; + color: #fff; } } } @@ -112,7 +135,7 @@ } .value { font-size: 38px; - color: #1baeae; + color: #02ffff; font-weight: bold; } \ No newline at end of file diff --git a/src/views/Home.vue b/src/views/Home.vue index a4499e2..e6fe4db 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -8,13 +8,14 @@
  • {{ item.name }}
    -
    -

    {{ item.parms && item.parms[0].name }}

    - {{ item.parms && item.parms[0].value }} +
    +

    {{ one.name }}

    - {{ item.parms && item.parms[0].dw }} + {{ one.value }} + {{ one.dw }} -
    + +
  • @@ -36,14 +37,22 @@ export default { url: 'page', parms: [{ name: '节水量', - value: '4.00', + value: '4', dw: 'm³' + },{ + name: '节碳量', + value: '0.67', + dw: 'kg' }] }, { name: '屋顶绿化系统', url: 'green', parms: [{ - name: '热岛消减率', + name: '径流系数', + value: '0.6', + dw: '' + },{ + name: '热岛减率', value: '21', dw: '%' }] @@ -51,7 +60,11 @@ export default { name: '生物滞留&净化系统', url: 'biology', parms: [{ - name: '液位', + name: '区域面积', + value: '75', + dw: '㎡' + },{ + name: '滞留系统液位', value: '323', dw: 'mm' }] @@ -62,6 +75,10 @@ export default { name: '热岛消减率', value: '19.6', dw: '%' + },{ + name: '孔隙率', + value: '10', + dw: '%' }] }, { name: '调蓄系统&逆流监测系统', @@ -70,14 +87,22 @@ export default { name: '溢流量', value: '1.25', dw: 'L/s' - }] + },{ + name: '氨氮', + value: '12.5', + dw: 'mg/L' + },] }, { name: '气象监测系统', url: 'weather', parms: [{ - name: '天气', - value: '晴', - dw: '' + name: '温度', + value: '23', + dw: '℃' + },{ + name: '空气湿度', + value: '22', + dw: '%' }] }] }) @@ -100,7 +125,7 @@ export default { .home { width: 100%; height: 100%; - background: url(../assets/index-bg1.jpg) left top no-repeat; + background: url(../assets/index-bg.jpg) left top no-repeat; background-size: 100% 100%; // border: 1px solid rgb(180, 20, 180); display: flex; @@ -169,7 +194,7 @@ export default { justify-content: space-between; box-shadow: 0 0 8px #99ACB0 inset; cursor: pointer; - color: #fff; + // color: #fff; .one-card-left { width: 80%; padding: 10px; @@ -219,18 +244,18 @@ export default { background: linear-gradient(to right, #c3d4cb, #81CFA3); } .one-card-right { - width: 20%; - color: #043b8d; + width: 40%; + color: #3E9537; + padding: 10px; .parm { display: flex; flex-direction: column; - height: 100%; - padding: 10px; - align-items: center; + line-height: 30px; + align-items: start; justify-content: space-around; - .font28 { - font-size: 28px; - color: #0866f3; + .font24 { + font-size: 24px; + color: #00646C; font-size: 800; } }