feat(diagnosis): 按新协议实现多光谱诊断算法+分区差异化下发+报告面罩图
- 新协议《协议简述-添加扫描时光色》落地: FFE4 Byte17 高3位=扫描光色(1红/2红外/3紫外/4暖黄), 低5位保留贴合状态; Byte18=0xFF 故障; auto-scan 按光色分桶采集(旧固件无标识归 red 桶降级) - diagnosis.js 重写: PD极性(值大=吸收多,固件已确认) NR=本区/本色5区平均-1; 每区4色argmax>0.10判定; 3路PD区几何平均+MAD剔奇异(3σ对n=3失效,审计实证); 严重度0.05/0.15/0.30仅展示; 全参数走 diagnosis_config 热调(极性/阈值/PD映射/亮度) - buildVendorCommand 支持 plan 多区多色单命令下发(每IO独立 红/红外/紫外/暖黄); builder层安全硬上限 治疗亮度≤204(80%) 时长≤600s - 区域映射修正: 掩码=IO纵列 左0x01/中上0x02/中0x04/中下0x08/右0x10, 修复 treatment-setup/manual/treating/getRegionName/i18n 共7处标签错位, FULL_FACE 0x7F→0x1F - 扫描报告页: 新增分区面罩示意图(5区按推荐光着色+模式名+严重度,点击跳光疗介绍), 推荐护理改一条命令多色下发(亮度204); 扫描中设备故障即时中止 - schema.sql diagnosis_config 种子更新(新结构); i18n 清理死键,中英对齐25/24键
这个提交包含在:
@@ -60,6 +60,73 @@
|
||||
|
||||
.empty-hint { color: #999; font-size: 26rpx; }
|
||||
|
||||
.face-map {
|
||||
display: flex;
|
||||
height: 480rpx;
|
||||
gap: 8rpx;
|
||||
padding: 12rpx;
|
||||
box-sizing: border-box;
|
||||
background: #FAFAFA;
|
||||
border-radius: 32rpx;
|
||||
}
|
||||
.face-col { display: flex; flex-direction: column; flex: 1; gap: 8rpx; }
|
||||
.face-col-mid { flex: 1.15; }
|
||||
.face-zone {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 20rpx;
|
||||
border: 2rpx solid transparent;
|
||||
padding: 8rpx;
|
||||
box-sizing: border-box;
|
||||
transition: transform 0.1s ease;
|
||||
}
|
||||
.face-col-side .face-zone { border-radius: 28rpx; }
|
||||
.face-zone:active { transform: scale(0.96); }
|
||||
.face-zone-name { font-size: 26rpx; font-weight: 600; }
|
||||
.face-zone-mode { font-size: 22rpx; margin-top: 6rpx; }
|
||||
.face-zone-level { font-size: 20rpx; margin-top: 2rpx; opacity: 0.85; }
|
||||
|
||||
.zone-red {
|
||||
background: rgba(232, 93, 93, 0.14);
|
||||
border-color: rgba(232, 93, 93, 0.4);
|
||||
color: #B23C3C;
|
||||
}
|
||||
.zone-ir {
|
||||
background: rgba(192, 107, 74, 0.14);
|
||||
border-color: rgba(192, 107, 74, 0.4);
|
||||
color: #8C4A2E;
|
||||
}
|
||||
.zone-uv {
|
||||
background: rgba(142, 107, 216, 0.14);
|
||||
border-color: rgba(142, 107, 216, 0.4);
|
||||
color: #5F3FAE;
|
||||
}
|
||||
.zone-yellow {
|
||||
background: rgba(232, 185, 61, 0.18);
|
||||
border-color: rgba(232, 185, 61, 0.45);
|
||||
color: #8A6A10;
|
||||
}
|
||||
.zone-none {
|
||||
background: #F0F0F0;
|
||||
border-color: #E5E5E5;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.face-legend { display: flex; flex-wrap: wrap; margin-top: 20rpx; }
|
||||
.legend-item { display: flex; align-items: center; margin: 0 20rpx 10rpx 0; }
|
||||
.legend-dot { width: 16rpx; height: 16rpx; border-radius: 50%; margin-right: 8rpx; }
|
||||
.legend-dot.zone-red { background: #E85D5D; border: none; }
|
||||
.legend-dot.zone-ir { background: #C06B4A; border: none; }
|
||||
.legend-dot.zone-uv { background: #8E6BD8; border: none; }
|
||||
.legend-dot.zone-yellow { background: #E8B93D; border: none; }
|
||||
.legend-label { font-size: 22rpx; color: #666; }
|
||||
|
||||
.face-tap-hint { font-size: 22rpx; color: #bbb; margin-top: 14rpx; text-align: center; }
|
||||
.face-all-normal-hint { font-size: 24rpx; color: #6BBF59; text-align: center; margin-top: 12rpx; }
|
||||
|
||||
.region-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
在新工单中引用
屏蔽一个用户