From ad89b44b4e46b88981571535e07ac89aa693a9c0 Mon Sep 17 00:00:00 2001 From: wikiboss Date: Mon, 2 Nov 2026 13:54:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(testing):=20=E7=A7=BB=E9=99=A4=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E5=8F=82=E6=95=B0=E8=A1=A8=E6=A0=BC=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=88=97=E5=B9=B6=E8=A7=84=E8=8C=83=E5=88=97=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=EF=BC=8C=E5=BD=BB=E5=BA=95=E8=A7=A3=E5=86=B3=E5=B7=A6=E4=BE=A7?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E9=A1=B9=E7=9B=AE=E6=BB=91=E5=8A=A8=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/view/testing/index.html | 196 +++++++++++++++++++--- 1 file changed, 170 insertions(+), 26 deletions(-) diff --git a/application/admin/view/testing/index.html b/application/admin/view/testing/index.html index cfb38b7..bcab57e 100644 --- a/application/admin/view/testing/index.html +++ b/application/admin/view/testing/index.html @@ -45,10 +45,130 @@ padding-left: 8px; padding-right: 8px; } + + .quality-editor-dialog .el-dialog__body { + padding: 10px 18px 0; + background: #f5f7fa; + } + + .quality-editor-dialog .el-dialog__header { + padding: 16px 20px 12px; + border-bottom: 1px solid #ebeef5; + } + + .quality-editor-dialog .el-dialog__footer { + position: sticky; + bottom: 0; + z-index: 3; + padding: 12px 20px; + background: #fff; + border-top: 1px solid #ebeef5; + box-shadow: 0 -4px 14px rgba(31, 45, 61, .06); + } + + .quality-editor-card { + padding: 14px 16px 4px; + border: 1px solid #e4e7ed; + border-radius: 8px; + background: #fff; + } + + .quality-editor-toolbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + margin-bottom: 12px; + padding: 10px 12px; + border-radius: 6px; + background: #f0f9ff; + color: #5f6b7a; + font-size: 13px; + line-height: 1.6; + } + + .quality-editor-toolbar strong { + color: #303133; + } + + .quality-legend { + display: flex; + flex-wrap: wrap; + gap: 8px; + white-space: nowrap; + } + + .quality-legend span { + padding: 1px 7px; + border-radius: 10px; + font-size: 12px; + } + + .quality-legend .good { color: #16844a; background: #e8f8ef; } + .quality-legend .warn { color: #946200; background: #fff7df; } + .quality-legend .bad { color: #c0392b; background: #fff0ee; } + + .quality-editor-table .el-table__header th { + padding: 8px 0; + background: #f8fafc; + color: #475467; + font-weight: 600; + } + + .quality-editor-table .el-table__body td { + padding: 4px 0; + } + + .quality-editor-table .cell { + line-height: 20px; + } + + .quality-editor-table .el-input--small .el-input__inner { + height: 28px; + line-height: 28px; + } + + .quality-editor-table .el-input__count { + display: none; + } + + .quality-editor-table .el-table__body-wrapper { + max-height: min(58vh, 680px); + overflow-y: auto; + } + + .quality-rule-ranges { + display: flex; + flex-wrap: wrap; + gap: 3px 9px; + margin-top: 5px; + font-size: 12px; + line-height: 18px; + } + + .quality-rule-ranges span { + white-space: nowrap; + } + + .quality-direction-help { + margin-top: 6px; + color: #8492a6; + font-size: 12px; + } + + @media (max-width: 1100px) { + .quality-editor-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; } + .quality-editor-dialog .el-dialog__body { padding-left: 10px; padding-right: 10px; } + }
+
+ + + +
@@ -78,7 +198,7 @@ @@ -150,6 +270,7 @@ + @@ -186,17 +307,23 @@ :close-on-click-modal="false" :title="title" :visible.sync="addDialog" - width="98%" + custom-class="quality-editor-dialog" + width="96%" >
- + + + + + + @@ -224,41 +351,56 @@ -

数值指标请选择“越大越好”或“越小越好”。绿色为达标、黄色为预警、红色为警告;等于阈值时归入较低一级,保存后对大屏生效。

- +
+
+
录入提示:先填实测值、预警值和警告值,再选择指标偏好。等于阈值时归入较低一级。
+
+ 绿 · 达标 + 黄 · 预警 + 红 · 警告 +
+
+ - - + + + + - - - - + +
“越大越好”:低于预警值会触发风险;“越小越好”:高于预警值会触发风险。文字指标按检测结果判定。
+
@@ -309,7 +447,12 @@ >
- + + + + + +
{{detail.granary.name}}
@@ -353,6 +496,7 @@
黄 · {{ruleRanges(scope.row)[1]}}
红 · {{ruleRanges(scope.row)[2]}}
+ {{ruleError(scope.row)}} 文字指标,按检测结果判定