fix: 优化前端页面

This commit is contained in:
yarnom 2025-08-27 18:12:40 +08:00
parent 1ad2eb6e60
commit 3b3cfe8a49
2 changed files with 5 additions and 4 deletions

View File

@ -84,7 +84,7 @@ const WeatherChart = {
yAxisID: 'y-rainfall' yAxisID: 'y-rainfall'
}, },
{ {
label: '累计雨量 (mm) - 实测(10m total)', label: '累计雨量 (mm) - 实测',
data: historyRainTotals, data: historyRainTotals,
borderColor: 'rgb(75, 192, 192)', borderColor: 'rgb(75, 192, 192)',
backgroundColor: 'rgba(75, 192, 192, 0.1)', backgroundColor: 'rgba(75, 192, 192, 0.1)',
@ -108,7 +108,7 @@ const WeatherChart = {
yAxisID: 'y-temperature', yAxisID: 'y-temperature',
tension: 0.4, tension: 0.4,
spanGaps: false, spanGaps: false,
hidden: true hidden: false
}, },
{ {
label: '湿度 (%) - 预报', label: '湿度 (%) - 预报',
@ -119,7 +119,7 @@ const WeatherChart = {
yAxisID: 'y-humidity', yAxisID: 'y-humidity',
tension: 0.4, tension: 0.4,
spanGaps: false, spanGaps: false,
hidden: false hidden: true
}, },
{ {
label: '雨量 (mm) - 预报', label: '雨量 (mm) - 预报',

View File

@ -486,10 +486,11 @@
<div class="control-group flex items-center gap-1"> <div class="control-group flex items-center gap-1">
<label for="interval" class="text-sm text-gray-600">数据粒度:</label> <label for="interval" class="text-sm text-gray-600">数据粒度:</label>
<select id="interval" class="px-2 py-1 border border-gray-300 rounded text-sm"> <select id="interval" class="px-2 py-1 border border-gray-300 rounded text-sm">
<option value="raw">原始(16s)</option>
<option value="10min">10分钟</option> <option value="10min">10分钟</option>
<option value="30min">30分钟</option> <option value="30min">30分钟</option>
<option value="1hour" selected>1小时</option> <option value="1hour" selected>1小时</option>
<option value="raw">原始(16s)</option>
</select> </select>
</div> </div>