From 2d993b2f730df417fbe68ba4a12cfb26ac83817a Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Sat, 4 Jan 2025 10:49:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E5=9C=A8=E5=B7=B2=E7=BB=8F=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=AD=A5=E9=AA=A4=EF=BC=8C=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/check/interface/index.ts | 1 + frontend/src/api/check/test/index.ts | 2 +- .../dataCheckSingleChannelSingleTestPopup.vue | 13 +- frontend/src/views/home/components/test.vue | 235 +++++++----------- .../src/views/home/components/testPopup.vue | 12 +- 5 files changed, 120 insertions(+), 143 deletions(-) diff --git a/frontend/src/api/check/interface/index.ts b/frontend/src/api/check/interface/index.ts index 6c80cb8..22e5d7d 100644 --- a/frontend/src/api/check/interface/index.ts +++ b/frontend/src/api/check/interface/index.ts @@ -53,6 +53,7 @@ export namespace CheckData { export interface TreeItem{ scriptTypeName: string|null, sourceDesc: string|null, + harmNum: number|null, index:number|null, fly:number|null, children?: TreeItem[] diff --git a/frontend/src/api/check/test/index.ts b/frontend/src/api/check/test/index.ts index b5a6ace..7ba437c 100644 --- a/frontend/src/api/check/test/index.ts +++ b/frontend/src/api/check/test/index.ts @@ -24,7 +24,7 @@ export const getFormData = (params: { */ export const getTreeData = (params: { scriptId: string, - deviceId: string, + devId: string, devNum: string, scriptType: string | null, code: string diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue index 07f0427..cab5bc3 100644 --- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue @@ -150,7 +150,7 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => { // 发起请求,查询该测试项的检测结果 const {data: resTreeDataTemp}: { data: CheckData.TreeItem[] } = await getTreeData({ scriptId: checkStore.scriptId, - deviceId, + devId: deviceId, devNum: formContent.chnNum + '', scriptType, code: checkStore.planCode @@ -161,36 +161,42 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => { { scriptTypeName: "频率准确度检测", sourceDesc: null, + harmNum: null, index: null, fly: null, children: [ { scriptTypeName: "额定条件下频率准确度测试", sourceDesc: null, + harmNum: null, index: null, fly: null, children: [ { scriptTypeName: "频率=42.5Hz", sourceDesc: "频率=42.5Hz", + harmNum: null, index: 11, fly: 1, }, { scriptTypeName: "频率=50Hz", sourceDesc: "频率=50Hz", + harmNum: null, index: 12, fly: 2, }, { scriptTypeName: "频率=50.05Hz", sourceDesc: "频率=50.05Hz", + harmNum: null, index: 13, fly: 1, }, { scriptTypeName: "频率=57.5Hz", sourceDesc: "频率=57.5Hz", + harmNum: null, index: 14, fly: 2, } @@ -199,18 +205,21 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => { { scriptTypeName: "单影响量下频率准确度测试", sourceDesc: null, + harmNum: null, index: null, fly: null, children: [ { scriptTypeName: "电压幅值对频率测量的影响", sourceDesc: null, + harmNum: null, index: null, fly: null, children: [ { scriptTypeName: "10%Un对频率=50.05Hz的影响", sourceDesc: "10%Un对频率=50.05Hz的影响", + harmNum: null, index: null, fly: 1, } @@ -219,12 +228,14 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => { { scriptTypeName: "谐波对频率测量的影响", sourceDesc: null, + harmNum: null, index: null, fly: null, children: [ { scriptTypeName: "叠加多次谐波对频率=50.05Hz的影响", sourceDesc: "叠加多次谐波对频率=50.05Hz的影响", + harmNum: null, index: null, fly: 2, } diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index f7925ee..415c82d 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -24,6 +24,12 @@ :icon="Failed" disabled>预检测失败 + 重新检测 + 检测完成 @@ -36,17 +42,6 @@ >继续检测 检测项进度 - - -
@@ -139,7 +134,7 @@