feat: 抽测风速改为用户可自定义次数(增删按钮)

- models.rs:新增 spot_check_count 字段(默认 5)
- db.rs:INSERT/SELECT 添加 spotcheckcount 列
- migrations/007:ALTER TABLE weather_data ADD spotcheckcount
- afterbody.js:使用 data.spotCheckCount 动态渲染抽测数据
This commit is contained in:
2026-05-18 09:51:38 +08:00
parent 5dce0e3332
commit 54484482c3
4 changed files with 20 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
-- 为 weather_data 表添加抽测次数字段
ALTER TABLE weather_data
ADD COLUMN IF NOT EXISTS spotcheckcount INTEGER NOT NULL DEFAULT 5;