From 1c90c46806ef44526129d36b5b2c1dfa401a634c Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Fri, 24 Oct 2025 16:14:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ompareDataCheckSingleChannelSingleTestPopup.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue index 6243b11..0001c34 100644 --- a/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue @@ -102,7 +102,7 @@ :value="item.value" >
- {{ item.label }} + {{ item.label }} {{ item.label }} {{ item.label }}
@@ -298,7 +298,7 @@ const initGetResult = async () => { scriptNameOptions.value = selectScript.value.map(item => ({ label: item.scriptName, value: item.scriptName, - resultFlag: item.resultFlag + resultFlag: item.resultFlag?? 0 })) // 默认选中第一个选项 @@ -478,7 +478,8 @@ const handleNodeClick = (data: any) => { //.filter(item => item.code !== 'wave_data' && item.code !== 'FREQ') .map(item => ({ label: item.scriptName, - value: item.scriptName + value: item.scriptName, + resultFlag: item.resultFlag ?? 0 })) // 每次选中录波数据时都重置为第一个选项并触发getResults @@ -603,16 +604,13 @@ defineExpose({ } // 根据 resultFlag 设置不同颜色 - &[data-result-flag="1"] { - color: #67c23a; // 绿色 - 符合 - } &[data-result-flag="2"] { - color: #f56c6c; // 红色 - 不符合 + color: #ee6666; // 红色 - 不符合 } &[data-result-flag="4"] { - color: #e6a23c; // 橙色 - 警告 + color: #fac858; // 橙色 - 警告 } } }