|
@@ -1,12 +1,15 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="hardware-data">
|
|
<div class="hardware-data">
|
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|
|
|
- <div class="module-title">硬件数据</div>
|
|
|
|
|
|
|
+ <div class="module-title">
|
|
|
|
|
+ <img src="@/assets/images/shb.png" class="title-icon" />
|
|
|
|
|
+ 硬件数据
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
<!-- 智能电表部分 -->
|
|
<!-- 智能电表部分 -->
|
|
|
<div class="data-section">
|
|
<div class="data-section">
|
|
|
<div class="device-info">
|
|
<div class="device-info">
|
|
|
- <div class="device-icon electric"></div>
|
|
|
|
|
|
|
+ <img src="@/assets/images/dblxzhb.png" class="title-icon" />
|
|
|
<div>
|
|
<div>
|
|
|
<div class="device-count">8921</div>
|
|
<div class="device-count">8921</div>
|
|
|
<div class="device-name">智能电表</div>
|
|
<div class="device-name">智能电表</div>
|
|
@@ -52,37 +55,39 @@
|
|
|
<!-- 智能水表部分 -->
|
|
<!-- 智能水表部分 -->
|
|
|
<div class="data-section">
|
|
<div class="data-section">
|
|
|
<div class="device-info">
|
|
<div class="device-info">
|
|
|
- <div class="device-icon water"></div>
|
|
|
|
|
- <div class="device-name">智能水表</div>
|
|
|
|
|
- <div class="device-count">8921</div>
|
|
|
|
|
|
|
+ <img src="@/assets/images/zhnmj.png" class="title-icon" />
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="device-count">8921</div>
|
|
|
|
|
+ <div class="water-device-name">智能水表</div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="data-cards">
|
|
<div class="data-cards">
|
|
|
<div class="data-card">
|
|
<div class="data-card">
|
|
|
<div class="data-label">年度用水</div>
|
|
<div class="data-label">年度用水</div>
|
|
|
<div>
|
|
<div>
|
|
|
<div class="data-value">89321</div>
|
|
<div class="data-value">89321</div>
|
|
|
- <div class="data-unit">m³</div>
|
|
|
|
|
|
|
+ <div class="water-data-unit">m³</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="data-card">
|
|
<div class="data-card">
|
|
|
<div class="data-label">月均用水</div>
|
|
<div class="data-label">月均用水</div>
|
|
|
<div>
|
|
<div>
|
|
|
<div class="data-value">9212</div>
|
|
<div class="data-value">9212</div>
|
|
|
- <div class="data-unit">m³</div>
|
|
|
|
|
|
|
+ <div class="water-data-unit">m³</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="data-card">
|
|
<div class="data-card">
|
|
|
<div class="data-label">日均用水</div>
|
|
<div class="data-label">日均用水</div>
|
|
|
<div>
|
|
<div>
|
|
|
<div class="data-value">921</div>
|
|
<div class="data-value">921</div>
|
|
|
- <div class="data-unit">m³</div>
|
|
|
|
|
|
|
+ <div class="water-data-unit">m³</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="data-card">
|
|
<div class="data-card">
|
|
|
<div class="data-label">开关次数</div>
|
|
<div class="data-label">开关次数</div>
|
|
|
<div>
|
|
<div>
|
|
|
<div class="data-value">887</div>
|
|
<div class="data-value">887</div>
|
|
|
- <div class="data-unit">近12个月</div>
|
|
|
|
|
|
|
+ <div class="water-data-unit">近12个月</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -351,7 +356,233 @@ export default {
|
|
|
if (this.waterChartInstance) {
|
|
if (this.waterChartInstance) {
|
|
|
this.waterChartInstance.resize()
|
|
this.waterChartInstance.resize()
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ // 初始化用电量柱状图
|
|
|
|
|
+ initPowerChart() {
|
|
|
|
|
+ this.powerChartInstance = echarts.init(this.$refs.powerChart)
|
|
|
|
|
+
|
|
|
|
|
+ const option = {
|
|
|
|
|
+ tooltip: {
|
|
|
|
|
+ trigger: "axis",
|
|
|
|
|
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
|
|
|
+ borderColor: "rgba(64, 158, 255, 0.3)",
|
|
|
|
|
+ textStyle: {
|
|
|
|
|
+ color: "#fff",
|
|
|
|
|
+ },
|
|
|
|
|
+ formatter: (params) => {
|
|
|
|
|
+ let result = ``
|
|
|
|
|
+ params.forEach((param) => {
|
|
|
|
|
+ result += `${param.name}<br/>${
|
|
|
|
|
+ param.seriesName
|
|
|
|
|
+ }: ${param.value.toLocaleString()}<br/>`
|
|
|
|
|
+ })
|
|
|
|
|
+ return result
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ grid: {
|
|
|
|
|
+ left: "1%",
|
|
|
|
|
+ right: "1%",
|
|
|
|
|
+ top: "5%",
|
|
|
|
|
+ bottom: "2%",
|
|
|
|
|
+ containLabel: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ xAxis: {
|
|
|
|
|
+ type: "category",
|
|
|
|
|
+ data: this.monthlyData.map((item) => item.month),
|
|
|
|
|
+ axisLine: {
|
|
|
|
|
+ lineStyle: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.3)",
|
|
|
|
|
+ type: "dashed",
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ axisLabel: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.7)",
|
|
|
|
|
+ fontSize: 11,
|
|
|
|
|
+ interval: 0,
|
|
|
|
|
+ },
|
|
|
|
|
+ axisTick: {
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ splitLine: {
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ // 将坐标轴内的线设置为虚线
|
|
|
|
|
+ lineStyle: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.3)",
|
|
|
|
|
+ type: "dashed",
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ yAxis: {
|
|
|
|
|
+ type: "value",
|
|
|
|
|
+ axisLine: {
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ axisLabel: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.7)",
|
|
|
|
|
+ fontSize: 11,
|
|
|
|
|
+ },
|
|
|
|
|
+ axisTick: {
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ splitLine: {
|
|
|
|
|
+ lineStyle: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.1)",
|
|
|
|
|
+ type: "dashed",
|
|
|
|
|
+ width: 1,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ series: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "用电量",
|
|
|
|
|
+ type: "bar",
|
|
|
|
|
+ data: this.monthlyData.map((item) => item.power),
|
|
|
|
|
+ barWidth: "30%",
|
|
|
|
|
+ itemStyle: {
|
|
|
|
|
+ color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [
|
|
|
|
|
+ { offset: 0, color: "#FCE2B4" },
|
|
|
|
|
+ { offset: 1, color: "#F66757" },
|
|
|
|
|
+ ]),
|
|
|
|
|
+ borderRadius: [20, 20, 0, 0],
|
|
|
|
|
+ },
|
|
|
|
|
+ label: {
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ position: "top",
|
|
|
|
|
+ color: "#fff",
|
|
|
|
|
+ fontSize: 10,
|
|
|
|
|
+ formatter: (params) =>
|
|
|
|
|
+ params.value >= 10000
|
|
|
|
|
+ ? (params.value / 10000).toFixed(1) + "万"
|
|
|
|
|
+ : params.value,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.powerChartInstance.setOption(option)
|
|
|
|
|
+ this.powerChartInstance.resize()
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ // 初始化用水量柱状图
|
|
|
|
|
+ initWaterChart() {
|
|
|
|
|
+ this.waterChartInstance = echarts.init(this.$refs.waterChart)
|
|
|
|
|
+
|
|
|
|
|
+ const option = {
|
|
|
|
|
+ tooltip: {
|
|
|
|
|
+ trigger: "axis",
|
|
|
|
|
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
|
|
|
+ borderColor: "rgba(64, 158, 255, 0.3)",
|
|
|
|
|
+ textStyle: {
|
|
|
|
|
+ color: "#fff",
|
|
|
|
|
+ },
|
|
|
|
|
+ formatter: (params) => {
|
|
|
|
|
+ let result = ``
|
|
|
|
|
+ params.forEach((param) => {
|
|
|
|
|
+ result += `${param.name}<br/>${
|
|
|
|
|
+ param.seriesName
|
|
|
|
|
+ }: ${param.value.toLocaleString()}<br/>`
|
|
|
|
|
+ })
|
|
|
|
|
+ return result
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ grid: {
|
|
|
|
|
+ left: "1%",
|
|
|
|
|
+ right: "1%",
|
|
|
|
|
+ top: "2%",
|
|
|
|
|
+ bottom: "5%",
|
|
|
|
|
+ containLabel: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ xAxis: {
|
|
|
|
|
+ type: "category",
|
|
|
|
|
+ data: this.monthlyData.map((item) => item.month),
|
|
|
|
|
+ axisLine: {
|
|
|
|
|
+ lineStyle: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.3)",
|
|
|
|
|
+ type: "dashed",
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ axisLabel: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.7)",
|
|
|
|
|
+ fontSize: 11,
|
|
|
|
|
+ interval: 0,
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ axisTick: {
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ splitLine: {
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ // 将坐标轴内的线设置为虚线
|
|
|
|
|
+ lineStyle: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.3)",
|
|
|
|
|
+ type: "dashed",
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ yAxis: {
|
|
|
|
|
+ type: "value",
|
|
|
|
|
+ // 反转 y 轴的 min 和 max,实现“倒立”
|
|
|
|
|
+ min: 400000,
|
|
|
|
|
+ max: 0,
|
|
|
|
|
+ axisLine: {
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ axisLabel: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.7)",
|
|
|
|
|
+ fontSize: 11,
|
|
|
|
|
+ },
|
|
|
|
|
+ axisTick: {
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ splitLine: {
|
|
|
|
|
+ lineStyle: {
|
|
|
|
|
+ color: "rgba(160, 179, 214, 0.1)",
|
|
|
|
|
+ type: "dashed",
|
|
|
|
|
+ width: 1,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ series: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "用水量",
|
|
|
|
|
+ type: "bar",
|
|
|
|
|
+ data: this.monthlyData.map((item) => item.water),
|
|
|
|
|
+ barWidth: "30%",
|
|
|
|
|
+ itemStyle: {
|
|
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
|
|
+ { offset: 0, color: "#3AB3E3" },
|
|
|
|
|
+ { offset: 1, color: "#1620D4" },
|
|
|
|
|
+ ]),
|
|
|
|
|
+ borderRadius: [0, 0, 20, 20],
|
|
|
|
|
+ },
|
|
|
|
|
+ label: {
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ position: "bottom",
|
|
|
|
|
+ color: "#fff",
|
|
|
|
|
+ fontSize: 10,
|
|
|
|
|
+ formatter: (params) =>
|
|
|
|
|
+ params.value >= 10000
|
|
|
|
|
+ ? (params.value / 10000).toFixed(1) + "万"
|
|
|
|
|
+ : params.value,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.waterChartInstance.setOption(option)
|
|
|
|
|
+ this.waterChartInstance.resize()
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ handleResize() {
|
|
|
|
|
+ if (this.powerChartInstance) {
|
|
|
|
|
+ this.powerChartInstance.resize()
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.waterChartInstance) {
|
|
|
|
|
+ this.waterChartInstance.resize()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -362,24 +593,28 @@ export default {
|
|
|
.hardware-data {
|
|
.hardware-data {
|
|
|
background: var(--content-bg);
|
|
background: var(--content-bg);
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
- padding: 20px;
|
|
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
- gap: 20px;
|
|
|
|
|
|
|
+ gap: halfW(20);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.module-title {
|
|
.module-title {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
color: var(--title-primary);
|
|
color: var(--title-primary);
|
|
|
- font-size: 18px;
|
|
|
|
|
|
|
+ font-size: halfW(18);
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
- margin-bottom: 10px;
|
|
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ padding: halfH(4) halfW(10);
|
|
|
|
|
+ background: var(--title-bg);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.data-section {
|
|
.data-section {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
- gap: 20px;
|
|
|
|
|
|
|
+ gap: halfW(16);
|
|
|
|
|
+ padding: halfH(10) halfW(10);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.device-info {
|
|
.device-info {
|
|
@@ -387,60 +622,29 @@ export default {
|
|
|
background: var(--title-bg);
|
|
background: var(--title-bg);
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- gap: 20px;
|
|
|
|
|
|
|
+ gap: halfW(20);
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
border: 1px solid rgba(64, 158, 255, 0.1);
|
|
border: 1px solid rgba(64, 158, 255, 0.1);
|
|
|
- border-radius: 6px;
|
|
|
|
|
- padding: 16px;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .device-icon {
|
|
|
|
|
- width: 48px;
|
|
|
|
|
- height: 48px;
|
|
|
|
|
- border-radius: 50%;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- position: relative;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .device-icon.electric {
|
|
|
|
|
- background: linear-gradient(135deg, #ff8c00 0%, #ffd700 100%);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .device-icon.water {
|
|
|
|
|
- background: linear-gradient(135deg, #00bfff 0%, #87ceeb 100%);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .device-icon::after {
|
|
|
|
|
- content: "";
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- width: 24px;
|
|
|
|
|
- height: 24px;
|
|
|
|
|
- background-size: contain;
|
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
|
- background-position: center;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .device-icon.electric::after {
|
|
|
|
|
- background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C13.1 2 14 .9 14 0H10C10 .9 10.9 2 12 2M15.78 9H14.22L14 12H10L9.78 9H8.22L7.79 14H9.2L9.5 17H14.5L14.8 14H16.21L15.78 9M12 4C10.9 4 10 4.9 10 6S10.9 8 12 8 14 7.1 14 6 13.1 4 12 4Z"/></svg>');
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .device-icon.water::after {
|
|
|
|
|
- background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C13.1 2 14 .9 14 0H10C10 .9 10.9 2 12 2M12 18.5C11.45 18.5 11 18.05 11 17.5C11 16.95 11.45 16.5 12 16.5C12.55 16.5 13 16.95 13 17.5C13 18.05 12.55 18.5 12 18.5M12 12C9.79 12 8 13.79 8 16H16C16 13.79 14.21 12 12 12M12 4C9.79 4 8 5.79 8 8H16C16 5.79 14.21 4 12 4M3 20V22H13V20H3M16.5 18.21L17.79 16.93L19.5 18.65L23.07 15.07L24.5 16.45L19.5 21.45L16.5 18.21Z"/></svg>');
|
|
|
|
|
|
|
+ border-radius: halfW(6);
|
|
|
|
|
+ padding: halfH(16) halfW(10);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.device-name {
|
|
.device-name {
|
|
|
color: #fea373;
|
|
color: #fea373;
|
|
|
- font-size: 16px;
|
|
|
|
|
|
|
+ font-size: halfW(14);
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ }
|
|
|
|
|
+ .water-device-name {
|
|
|
|
|
+ color: #3ab3e3;
|
|
|
|
|
+ font-size: halfW(14);
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.device-count {
|
|
.device-count {
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
- font-size: 18px;
|
|
|
|
|
|
|
+ font-size: halfW(18);
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
- margin-bottom: 10px;
|
|
|
|
|
|
|
+ margin-bottom: halfH(10);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.data-cards {
|
|
.data-cards {
|
|
@@ -448,11 +652,10 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
- // gap: 20px;
|
|
|
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
|
background: var(--title-bg);
|
|
background: var(--title-bg);
|
|
|
border: 1px solid rgba(64, 158, 255, 0.1);
|
|
border: 1px solid rgba(64, 158, 255, 0.1);
|
|
|
- border-radius: 6px;
|
|
|
|
|
|
|
+ border-radius: halfW(4);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.data-card {
|
|
.data-card {
|
|
@@ -462,7 +665,7 @@ export default {
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
border-right: 1px solid rgba(64, 158, 255, 0.3);
|
|
border-right: 1px solid rgba(64, 158, 255, 0.3);
|
|
|
text-align: right;
|
|
text-align: right;
|
|
|
- padding: 10px 20px;
|
|
|
|
|
|
|
+ padding: halfH(10) halfW(10);
|
|
|
&:last-child {
|
|
&:last-child {
|
|
|
border-right: none;
|
|
border-right: none;
|
|
|
}
|
|
}
|
|
@@ -470,20 +673,24 @@ export default {
|
|
|
|
|
|
|
|
.data-label {
|
|
.data-label {
|
|
|
color: var(--primary);
|
|
color: var(--primary);
|
|
|
- font-size: 18px;
|
|
|
|
|
|
|
+ font-size: halfW(14);
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.data-value {
|
|
.data-value {
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
- font-size: 18px;
|
|
|
|
|
|
|
+ font-size: halfW(18);
|
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
|
- margin-bottom: 2px;
|
|
|
|
|
|
|
+ margin-bottom: halfH(2);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.data-unit {
|
|
.data-unit {
|
|
|
color: #fea373;
|
|
color: #fea373;
|
|
|
- font-size: 16px;
|
|
|
|
|
|
|
+ font-size: halfW(14);
|
|
|
|
|
+ }
|
|
|
|
|
+ .water-data-unit {
|
|
|
|
|
+ color: #3ab3e3;
|
|
|
|
|
+ font-size: halfW(14);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* 修改为两个图表容器 */
|
|
/* 修改为两个图表容器 */
|
|
@@ -492,13 +699,11 @@ export default {
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
- // min-height: 600px;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.chart-item {
|
|
.chart-item {
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
- min-height: 300px;
|
|
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|