From ba0c577514a71dd2daab9216168ffd9ef0384b17 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Tue, 7 Jan 2025 11:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E6=B5=8B=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=BC=B9=E7=AA=97=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/check/interface/index.ts | 4 + .../home/components/dataCheckRawDataTable.vue | 6 +- .../home/components/dataCheckResultTable.vue | 48 +++-- .../dataCheckSingleChannelSingleTestPopup.vue | 168 +++++++++++------- frontend/src/views/home/components/test.vue | 80 ++++----- 5 files changed, 186 insertions(+), 120 deletions(-) diff --git a/frontend/src/api/check/interface/index.ts b/frontend/src/api/check/interface/index.ts index f5d11d7..bfa364c 100644 --- a/frontend/src/api/check/interface/index.ts +++ b/frontend/src/api/check/interface/index.ts @@ -48,15 +48,19 @@ export namespace CheckData { aStd?: string, aData?: string, aError?: string, + isDataA?: number, bStd?: string, bData?: string, bError?: string, + isDataB?: number, cStd?: string, cData?: string, cError?: string, + isDataC?: number, tStd?: string, tData?: string, tError?: string, + isDataT?: number, //最大误差值 maxError?: string, diff --git a/frontend/src/views/home/components/dataCheckRawDataTable.vue b/frontend/src/views/home/components/dataCheckRawDataTable.vue index 18bacbb..d245997 100644 --- a/frontend/src/views/home/components/dataCheckRawDataTable.vue +++ b/frontend/src/views/home/components/dataCheckRawDataTable.vue @@ -6,12 +6,12 @@ style="width: 100%;"> - + - + @@ -31,7 +31,7 @@ const unit = computed(() => { return tableData.length > 0 ? tableData[0].unit : ''; }) -const phaseFlag = computed(() => { +const phaseT = computed(() => { let result = 0; if (tableData.length > 0) { result = !tableData[0].dataT ? 0 : 1; diff --git a/frontend/src/views/home/components/dataCheckResultTable.vue b/frontend/src/views/home/components/dataCheckResultTable.vue index fc7c80e..4adae01 100644 --- a/frontend/src/views/home/components/dataCheckResultTable.vue +++ b/frontend/src/views/home/components/dataCheckResultTable.vue @@ -8,24 +8,42 @@ - + - - - + + + + + {{scope.row.aError}} + {{scope.row.aError}} + / + + - - - + + + + + {{scope.row.bError}} + {{scope.row.bError}} + / + + - - - + + + + + {{scope.row.cError}} + {{scope.row.cError}} + / + + - - + + 不符合 符合 @@ -34,7 +52,7 @@ - + @@ -43,8 +61,8 @@ - 不符合 符合 + 不符合 / @@ -68,7 +86,7 @@ const unit = computed(() => { return tableData.length > 0 ? tableData[0].unit : ''; }) -const phaseFlag = computed(() => { +const phaseT = computed(() => { let result = 0; if (tableData.length > 0) { result = !tableData[0].tData ? 0 : 1; diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue index 9e94a65..db8b359 100644 --- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue @@ -26,24 +26,21 @@ - - - - - + + - + - {{ data.scriptTypeName }} - - - - - {{ data.scriptTypeName }} + {{ data.scriptTypeName }} @@ -55,7 +52,7 @@ 当前检测项目: - + {{ currentScriptTypeName ? currentScriptTypeName : '无' }} @@ -91,7 +88,7 @@