chengkai3
|
a77500a762
|
fix: [FL-110] 对齐雷电流幅值统计数据过滤逻辑
修改 _fit_line_current_parameters 函数,使其数据处理逻辑与参考工程保持一致:
1. 数据过滤改为取绝对值,不再过滤0值和负值
2. 返回值增加 peak_max 和 peak_min 字段
3. API 响应模型添加最大值和最小值字段
主要变更:
- api/app/services/lightning_service.py
* _fit_line_current_parameters: 数据清洗逻辑从 if item > 0 改为 abs(item)
* 返回值从 3 个增加到 5 个,新增 peak_max 和 peak_min
* prepare_line_lightning_current: 移除查询时的 > 0 过滤
* 在 extra_profile_json 和 preparation_source 中记录 peak_max/peak_min
- api/app/schemas/lightning.py
* LightningCurrentPreparationResponse: 添加 peak_max 和 peak_min 字段
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 23:00:24 +08:00 |
|
chengkai3
|
71e2c1b96e
|
[feat]:[FL-108][表格操作列风格统一]
统一所有表格页面的操作列按钮布局,参考用户管理页面,只保留两个按钮在外展示,其余操作按钮使用纵向省略号进行隐藏。
修改的页面:
- tower-models: 编辑、上传图片保留外显,删除移至下拉菜单
- power-lines: 编辑、专业参数保留外显,删除移至下拉菜单
- atp-models: 详情、编辑保留外显,删除移至下拉菜单
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 22:56:09 +08:00 |
|
chengkai3
|
2e29e1a975
|
[fix]:[FL-105][修复打包报错-替换curly quotes为标准ASCII引号]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 08:14:23 +08:00 |
|
chengkai3
|
07735fb23f
|
feat: [FL-104][高程数据管理中文件明细要展示各个文件的坐标范围]
- 添加 ElevationDatasetFileMeta 数据库模型存储文件级别坐标范围
- 更新 API schema 和 service,返回每个文件的 bbox 信息
- 修改高程数据分析任务,遍历目录所有文件并提取坐标范围
- 前端文件明细表格新增坐标范围列
- 创建数据库迁移脚本
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 07:59:08 +08:00 |
|
chengkai3
|
4905064c3a
|
feat:[FL-103][优化文件管理页面样式布局风格]
优化文件管理页面的视觉呈现和用户体验:
- 优化Card标题区域:添加图标和改进标题样式,增强视觉层次
- 优化操作按钮:改进按钮颜色方案和布局间距,提升交互体验
- 优化上传进度显示:渐变背景、改进布局和颜色主题,更加醒目
- 优化面包屑导航:圆角边框、渐变背景、添加分隔符,提升视觉效果
- 优化表格样式:添加表头背景色、hover效果和圆角,改善可读性
- 优化文件/文件夹图标:调整大小和颜色,增强视觉识别度
- 优化表格列内容:添加字体样式和类型样式,改善信息层次
- 优化Modal对话框:添加header样式、边框分隔和输入框大小
- 优化整体间距:从space-y-6改为space-y-5,视觉更紧凑统一
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 07:56:04 +08:00 |
|
chengkai3
|
cc41112c0b
|
feat: [FL-102][在系统右上角用户头标左边添加系统消息功能]
- 在admin布局的header中添加了系统消息按钮
- 使用BellOutlined图标展示系统消息入口
- 添加了Badge组件用于显示未读消息数量
- 按钮位于主题切换器和用户头像之间
- 包含点击事件处理函数(当前为占位实现)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 07:54:42 +08:00 |
|
chengkai3
|
efd168474a
|
[fix]:[FL-101][去掉杆塔模型管理页面右上角的上传文件初始化按钮]
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 07:52:58 +08:00 |
|
chengkai3
|
ecf3807dbc
|
feat:[FL-97][优化系统配色风格以匹配防雷计算主题]
- 新增「电光紫」(#8b5cf6)主题色,作为默认主色调
- 更新全局CSS变量,采用紫色系渐变配色
- 修改布局背景为淡紫色调(#faf8ff)
- 优化边框、阴影等视觉元素,增强防雷主题氛围
- 更新滚动条样式为紫色系
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-13 07:52:15 +08:00 |
|
chengkai3
|
a19b561e8f
|
[feat]:[FL-95][高程数据管理页面优化]
1. 新建高程集时移除编码输入字段,编码自动生成(使用时间戳+随机数)
2. 移除"数据目录自动生成"提示信息
3. 移除表格中"挂载"、"数据集目录"、"文件路径"列
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 23:52:43 +08:00 |
|
chengkai3
|
08f252e66d
|
[fix]:[FL-100][统一操作后消息弹窗样式]
- 统一所有 message.success/error 调用格式为简洁的字符串形式
- 移除对象形式的 message 调用({ content: "..." })
- 确保消息文案简洁直接,省略不必要的省略号
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 23:41:58 +08:00 |
|
chengkai3
|
0f5b338a93
|
fix:[FL-99][修复ATP版本上传接口响应模型不匹配导致500错误]
问题:POST /api/v1/atp/assets/{asset_id}/releases/upload 接口声明
response_model=AtpAssetReleaseDetail,但实际返回 {task_id, status} 字典,
导致FastAPI响应验证失败,返回500错误。
解决方案:
1. 新增 AtpAssetReleaseUploadResponse 响应模型,包含 task_id 和 status 字段
2. 更新接口声明使用正确的响应模型
3. 返回类型注解改为 AtpAssetReleaseUploadResponse
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 23:35:52 +08:00 |
|
chengkai3
|
7a6dc9501b
|
fix: [FL-98] 将Unicode编码改为直观的中文字符检测方式
将 task-monitor-display.ts 中的 [㐀-鿿] Unicode编码
改为使用 \p{Script=Han} Unicode属性转义,更清晰直观。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 23:32:47 +08:00 |
|
chengkai3
|
86377f82d4
|
fix: 修复scheduled_tasks表外键约束违规错误
修复了当system作为actor_user_id时,update_user字段违反外键约束的问题。
当actor_user_id为"system"时,将create_user和update_user设置为NULL,
而不是尝试使用不存在的"system"用户ID。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 23:25:53 +08:00 |
|
chengkai3
|
cd73237aeb
|
fix:[FL-94][修复编译报错]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 23:11:08 +08:00 |
|
chengkai3
|
2a5cbe474b
|
fix:[FL-92][高程数据管理预览时地形图渲染不出来] - 添加minzoom字段
修复地形图layer.json缺少minzoom字段导致Cesium无法正确加载地形的问题。
根本原因:
- Cesium地形加载需要layer.json同时包含minzoom和maxzoom字段
- 之前只有maxzoom字段,导致Cesium不知道从哪个层级开始加载地形
- 虽然瓦片数据正常(API返回200),但前端无法正确渲染三维地形
修改内容:
1. 在ElevationTerrainLayerResponse模型中添加minzoom字段(schemas/elevation.py)
2. 在地形构建代码中设置minzoom=0(services/elevation_service.py)
3. 地形瓦片的zoom level范围现在完整定义为0-6
影响:
- 已构建的地形数据需要重新触发构建任务才能生成包含minzoom的新layer.json
- 新构建的地形将自动包含minzoom字段
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 22:57:25 +08:00 |
|
chengkai3
|
c06390efb0
|
[fix]:[FL-87][修复TypeScript类型错误]
移除useEffect依赖数组中已删除的statusFilter变量引用
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 22:50:40 +08:00 |
|
chengkai3
|
474fd3d633
|
feat:[FL-93][操作列优化-纵向省略号和宽度调整]
1. 将操作列的省略号按钮改为纵向样式(使用 MoreOutlined 图标)
2. 操作列宽度从 260px 缩短到 120px
3. 省略号按钮只显示图标,不显示文本,节省空间
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 22:48:28 +08:00 |
|
chengkai3
|
6f2bb303fe
|
[feat]:[FL-87][ATP模型管理-表单优化]
优化ATP模型新建表单:
1. 去掉状态字段,不再使用状态控制
2. 避雷器装设组合改为必填字段
3. 去掉编码表单,编码值自动生成唯一键(格式:atp-时间戳-随机字符串)
4. 去掉名称表单,名称通过电压等级、塔型、场景、避雷器装设组合自动拼接
简化表单录入流程,减少手动输入错误。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 22:40:30 +08:00 |
|
chengkai3
|
4d74752746
|
feat:[FL-93][用户管理页面优化]
1. 调整列顺序:邮箱列放在用户名列后面
2. 移除角色列,改为分配角色操作按钮,点击后弹窗使用下拉选择配置角色
3. 重构操作列:只保留编辑和删除按钮,其他操作(分配角色、禁用/启用、重置密码)放到省略号下拉菜单中
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 22:31:44 +08:00 |
|
chengkai3
|
dd7c1c45a1
|
[feat]:[FL-90][优化表格操作列 - 状态列可点击+下拉菜单]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 22:17:51 +08:00 |
|
chengkai3
|
e56ee76610
|
[feat]:[FL-90][参考用户管理页面样式改造高程管理页面布局]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 21:55:48 +08:00 |
|
chengkai3
|
12f3a8b6cb
|
[fix]:[FL-91][修复admin-design-page-body高度问题,使表格撑满页面]
主要改动:
1. admin-design-content增加flex布局,确保内容区域撑满视口高度
2. admin-design-page-body设置flex:1,使其自动占满剩余高度
3. 添加admin-atp-models-table-anchor的CSS样式,设置表格body最小高度
4. 确保ATP模型管理页面的表格能够正确占满剩余空间,避免页面底部空白
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 21:49:34 +08:00 |
|
chengkai3
|
4607455ef9
|
[fix]:[FL-90][高程护具管理页面优化 - 将任务表格改为弹窗展示]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 21:34:16 +08:00 |
|
chengkai3
|
b1f3a8dc2b
|
[feat]:[FL-91][参考用户管理的布局样式修改ATP模型管理页面]
主要改动:
1. 更改Card组件:从自定义Card改为Ant Design原生Card(通过AntCard别名)
2. 调整容器布局:从Space改为div with space-y-6 class
3. 优化搜索区域:从Space wrap改为Form inline布局,增加搜索和重置筛选按钮
4. 增加动态表格滚动:添加tableScrollY状态和相关的ResizeObserver逻辑
5. 优化extra区域:增加Spin加载指示器显示数据加载状态
6. 统一样式:使Card title extra按钮布局与用户管理页面一致
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 21:06:40 +08:00 |
|
chengkai3
|
c863eac8ac
|
fix:[FL-92][高程数据管理预览时地形图渲染不出来]
修复前端地形图加载URL缺少layer.json后缀的问题。
- 在getElevationTerrainLayerUrl函数中,将默认返回的API路径从
/api/v1/elevation/datasets/${dataset.id}/terrain
修改为
/api/v1/elevation/datasets/${dataset.id}/terrain/layer.json
- CesiumTerrainProvider.fromUrl需要指向layer.json文件才能正确加载地形瓦片
- 这个修改影响elevation-preview-cesium-map和power-line-cesium-map两个组件
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 21:05:43 +08:00 |
|
chengkai3
|
ccdd5c89cc
|
[feat]:[FL-90][高程护具管理页面优化 - 高程回填任务和导入任务改为点击按钮查看]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 20:57:45 +08:00 |
|
chengkai3
|
257c572b6e
|
fix:[FL-89][CI失败: Web 镜像 构建错误]
修复 TypeScript 类型错误:在 useCallback 依赖数组中使用了未声明的变量 selectedReleaseId。
改动:
- 将 refreshAtpData 回调中的 selectedReleaseId 替换为 selectedReleaseIdState
- selectedReleaseId 是一个派生值,在第 169 行才声明,不能在第 135 行的依赖数组中使用
- selectedReleaseIdState 是真正的状态变量,在第 120 行已声明
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 20:07:04 +08:00 |
|
chengkai3
|
ee1fa9b725
|
feat: [FL-88] 把ATP上传版本ZIP包动作变成异步
后端已使用 Celery 异步处理上传任务,前端需对接异步响应。
**主要改动:**
1. 前端处理异步上传响应
- 修改 saveReleaseMutation 识别后端返回的 {task_id, status} 响应
- 异步上传时显示"正在后台处理"提示,不阻塞用户操作
- 保留编辑版本的同步更新逻辑
2. 订阅 WebSocket 主题自动刷新
- 添加 useTopicSubscription 订阅 "admin.atp-assets" 主题
- 任务完成后自动刷新页面数据,无需手动刷新
3. 后端主题注册
- 在 topic_registry.py 添加 "admin.atp-assets" 主题
- 允许有 atp 权限的用户订阅该主题
**测试结果:**
- ✅ 前端类型正确处理异步和同步响应
- ✅ WebSocket 主题订阅正确配置
- ✅ 后端主题已注册并配置权限
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 18:52:20 +08:00 |
|
chengkai3
|
33b41460e4
|
[feat]:[FL-87][ATP模型管理-新建模型改造]
为ATP模型新建表单添加预定义的默认下拉选项:
- 电压等级:35、66、110、220、330、500、750、800、1000(单位kV)
- 塔型:ganzi(干字塔)、guxing(鼓型塔)、guxingd(鼓型双回路塔)等9种
- 场景:fanji(反击)、raoji1(绕击1)、raoji2(绕击2)、raoji3(绕击3)
- 避雷器组合:M1、M2、M3、M12、M13、M23、M123、noM
修改buildDimensionOptions函数,将默认选项与现有数据合并,保持可扩展性。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 18:04:14 +08:00 |
|
chengkai3
|
da9fd1cd3a
|
[feat]:[FL-84][ATP模型管理改造11]
1. 为AtpAsset模型增加避雷器装设组合配置项(arrester_config)
2. 将release zip上传改为异步处理
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 12:48:46 +08:00 |
|
chengkai3
|
c6d547a985
|
feat: 高程导入改为异步非阻塞,避免大文件上传时前端长时间等待
改动范围:
- api/app/services/elevation_service.py
- web/src/app/admin/elevation/page.tsx
改动点:
1. API 端快速返回(elevation_service.py)
- 修改 `import_dataset_data_files`:不再在请求内同步执行暂存
- 新增 `_prepare_upload_files_for_staging`:快速读取上传文件并序列化为 base64
- API 端立即创建任务并返回,文件内容暂存在 `staged_files_json`
2. Worker 端异步暂存(elevation_service.py)
- 修改 `execute_dataset_data_import_job`:从 `staged_files_json` 读取文件
- 新增 `_stage_dataset_import_job_uploads_from_serialized`:从序列化数据恢复并暂存
- Worker 负责完整的"暂存→导入→分析"流程
3. 前端阶段展示(page.tsx)
- 更新 `importJobStageLabel`:添加 "pending" 和 "staging" 阶段标签
- 用户可看到"等待执行"和"暂存文件"等阶段
关联影响:
- 数据库 `staged_files_json` 字段存储格式变更(存储序列化的文件内容)
- 任务初始状态改为 "pending",Worker 启动后变为 "staging"
技术方案:
- 采用 base64 序列化文件内容存入数据库
- 保持现有暂存目录和清理逻辑不变
- WebSocket 进度推送机制继续有效
验证:
- Python 语法检查通过
- 修改符合现有代码风格和约定
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 12:42:17 +08:00 |
|
chengkai3
|
6d0a421592
|
[fix]:[FL-83][优化ATP模型管理文案]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 07:57:31 +08:00 |
|
chengkai3
|
4328d9fd34
|
[fix/feat]:[FL-82][ATP模型管理改造]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-11 23:45:57 +08:00 |
|
chengkai3
|
fac37ddb8d
|
[fix/feat]:[FL-81][ATP模型管理改造为资产发布制]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-11 22:39:48 +08:00 |
|
chengkai3
|
de22a76f70
|
docs: add fquiz ATP MinIO redesign plan
|
2026-06-11 21:37:44 +08:00 |
|
chengkai3
|
61a1954034
|
[feat]:[FL-80][高程数据导入异步并支持进度回看]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 15:38:10 +08:00 |
|
chengkai3
|
80d1c0f999
|
[fix]:[FL-79][高程导入前端批次调整为5]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 10:35:19 +08:00 |
|
chengkai3
|
5537aa2453
|
[fix]:[FL-78][修复高程数据管理删除按钮无效]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 09:44:36 +08:00 |
|
chengkai3
|
3a8027803c
|
[fix/feat]:[FL-77][修复杆塔高程回填任务 actor_user_id 传递]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 08:31:11 +08:00 |
|
chengkai3
|
2a54857fe1
|
[fix/feat]:[FL-76][高程数据导入报错]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 08:26:51 +08:00 |
|
chengkai3
|
f19f694098
|
[fix/feat]:[FL-75][任务监控页面英文和编码中文化展示]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 07:54:50 +08:00 |
|
chengkai3
|
2ad2405cd3
|
[fix/feat]:[FL-74][高程数据支持DEM地形瓦片预览和线路地形图]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 00:26:09 +08:00 |
|
chengkai3
|
640a262412
|
[fix]:[FL-73][补齐Worker监控页面loading居中]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 17:26:58 +08:00 |
|
chengkai3
|
b3fd282245
|
[fix]:[FL-73][统一页面首次加载效果居中]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 15:23:30 +08:00 |
|
chengkai3
|
33c9201fdd
|
[fix/feat]:[FL-71][文件管理页面优化]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 13:51:21 +08:00 |
|
chengkai3
|
098780b14e
|
[fix]:[FL-72][任务监控页面样式布局优化]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 13:49:25 +08:00 |
|
chengkai3
|
f7013ff32c
|
[fix]:[FL-70][移除测试临时锁文件]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 12:30:27 +08:00 |
|
chengkai3
|
4ce57708b4
|
[fix]:[FL-70][删除线路时,塔杆要一起删除]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 12:30:27 +08:00 |
|
chengkai3
|
d7f712e3c1
|
[feat]:[FL-69][接入 legacy ATP/EGM worker 适配链路]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 12:28:02 +08:00 |
|
chengkai3
|
d36aeb8636
|
[feat]:[FL-65][新增定时任务管理页面]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 12:00:59 +08:00 |
|