fix: UI 标签优化、继电器着色、工装配置概览面板
- fixture.js: FarTol/NearTol/StepTol 容差字段去掉 ×10 换算 - test_data.js: relay_out 列增加 fmtRelay() 着色渲染 - test_op.js: 新增工装配置概览面板 (renderConfigOverview + toggleConfig);新增 fmtRelay();renderLatest 继电器着色 - fixture.html: 标签文本优化 — 触发距离/释放距离/mm/V 单位标注 - test_op.html: 新增配置概览面板 HTML,隐藏旧 test-mode-indicator - vehicle_base_test.html: 标签文本统一(触发/释放距离 + 单位) - .gitignore: 新增,排除 __pycache__/*.pyc/.venv
This commit is contained in:
@@ -217,9 +217,9 @@ function fillFormFromParam(param) {
|
||||
document.getElementById("param-fre-max").value = rawFreqToHz(param.FreMax || 0);
|
||||
document.getElementById("param-peak-min").value = rawPeakToV(param.PeakMin || 0);
|
||||
document.getElementById("param-peak-max").value = rawPeakToV(param.PeakMax || 0);
|
||||
document.getElementById("param-far-tol").value = (param.FarTol || 0) * 10;
|
||||
document.getElementById("param-near-tol").value = (param.NearTol || 0) * 10;
|
||||
document.getElementById("param-step-tol").value = (param.StepTol || 0) * 10;
|
||||
document.getElementById("param-far-tol").value = param.FarTol || 0;
|
||||
document.getElementById("param-near-tol").value = param.NearTol || 0;
|
||||
document.getElementById("param-step-tol").value = param.StepTol || 0;
|
||||
document.getElementById("param-back-forth").value = param.BackForth || 0;
|
||||
document.getElementById("param-near-stay").value = param.NearStay || 0;
|
||||
document.getElementById("param-far-stay").value = param.FarStay || 0;
|
||||
@@ -314,9 +314,9 @@ function getFormParams() {
|
||||
fre_max: hzToRawFreq(parseFloat(document.getElementById("param-fre-max").value) || 0),
|
||||
peak_min: vToRawPeak(parseFloat(document.getElementById("param-peak-min").value) || 0),
|
||||
peak_max: vToRawPeak(parseFloat(document.getElementById("param-peak-max").value) || 0),
|
||||
far_tol: Math.round((parseInt(document.getElementById("param-far-tol").value) || 0) / 10),
|
||||
near_tol: Math.round((parseInt(document.getElementById("param-near-tol").value) || 0) / 10),
|
||||
step_tol: Math.round((parseInt(document.getElementById("param-step-tol").value) || 0) / 10),
|
||||
far_tol: parseInt(document.getElementById("param-far-tol").value) || 0,
|
||||
near_tol: parseInt(document.getElementById("param-near-tol").value) || 0,
|
||||
step_tol: parseInt(document.getElementById("param-step-tol").value) || 0,
|
||||
back_forth: parseInt(document.getElementById("param-back-forth").value) || 0,
|
||||
near_stay: parseInt(document.getElementById("param-near-stay").value) || 0,
|
||||
far_stay: parseInt(document.getElementById("param-far-stay").value) || 0,
|
||||
|
||||
Reference in New Issue
Block a user