From b78ad2b561d52fb63a02fa461d02e8ae97f76dcc Mon Sep 17 00:00:00 2001 From: lmk <1095689763@qq.com> Date: Wed, 17 Jun 2026 17:34:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(qa):=20ISSUE-009=20=E2=80=94=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=8C=87=E6=A0=87=E5=90=8D=E7=A7=B0=E4=B8=AD=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E9=87=8D=E5=A4=8D=E6=98=BE=E7=A4=BA=EF=BC=88=E5=A6=82?= =?UTF-8?q?'=E8=AE=A2=E5=8D=95=E9=87=91=E9=A2=9D(=E5=88=86)(=E5=88=86)'?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- controller/report/report_admin_controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controller/report/report_admin_controller.go b/controller/report/report_admin_controller.go index ae880be..02a15e3 100644 --- a/controller/report/report_admin_controller.go +++ b/controller/report/report_admin_controller.go @@ -787,7 +787,9 @@ function renderQueryUI() { let indHtml = ''; for (const d of f.indicators) { const sel = queryCtx.indicators.find(i => i.fieldCode === d.fieldCode); - indHtml += ''+esc(d.fieldName||d.fieldCode)+(d.unit?'('+d.unit+')':'')+''; + const fn = esc(d.fieldName||d.fieldCode); + const unitSuffix = d.unit && fn.indexOf('('+d.unit+')') === -1 ? '('+d.unit+')' : ''; + indHtml += ''+fn+unitSuffix+''; } document.getElementById('indicator-area').innerHTML = indHtml; renderSelectedIndicators();