From c6ef54f7d352666e8517142fdbb8db07b346aa31 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Mon, 20 Jan 2025 15:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E6=A3=80=E6=B5=8B-=E9=A2=84?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E9=98=B6=E6=AE=B5=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E5=A4=84=E7=90=86=E3=80=81=E9=A2=91=E7=8E=87=E3=80=81=E4=B8=89?= =?UTF-8?q?=E9=A1=B9=E7=94=B5=E5=8E=8B=E4=B8=8D=E5=B9=B3=E8=A1=A1=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/components/dataCheckRawDataTable.vue | 12 +- .../home/components/dataCheckResultTable.vue | 12 +- .../dataCheckSingleChannelSingleTestPopup.vue | 18 +- frontend/src/views/home/components/test.vue | 170 +++++++++--------- 4 files changed, 112 insertions(+), 100 deletions(-) diff --git a/frontend/src/views/home/components/dataCheckRawDataTable.vue b/frontend/src/views/home/components/dataCheckRawDataTable.vue index de524a5..67ffe43 100644 --- a/frontend/src/views/home/components/dataCheckRawDataTable.vue +++ b/frontend/src/views/home/components/dataCheckRawDataTable.vue @@ -12,7 +12,7 @@ @@ -25,7 +25,7 @@ import { computed } from "vue"; import {useDownload} from "@/hooks/useDownload"; import {exportRawData} from "@/api/check/test" -const {tableData} = defineProps<{ +const {tableData,currentScriptTypeName} = defineProps<{ tableData: CheckData.RawDataItem[] currentScriptTypeName: string }>() @@ -38,6 +38,14 @@ const phaseT = computed(() => { return tableData[0].dataT == '/' ? 0 : 1 }) +const tableHeader = computed(() => { + if (phaseT.value === 1){ + let index = currentScriptTypeName.indexOf('='); + return currentScriptTypeName.substring(0, index); + } + return currentScriptTypeName +}) + const exportData = () => { useDownload(exportRawData, '原始数据.xlsx', {}, false, '.xlsx') } diff --git a/frontend/src/views/home/components/dataCheckResultTable.vue b/frontend/src/views/home/components/dataCheckResultTable.vue index 6651597..c2558ed 100644 --- a/frontend/src/views/home/components/dataCheckResultTable.vue +++ b/frontend/src/views/home/components/dataCheckResultTable.vue @@ -63,7 +63,7 @@