From 86e7705985a5b0466e4df4fdc70f34ec8c8e69ea Mon Sep 17 00:00:00 2001 From: GYYM <704080176@qq.com> Date: Wed, 13 Nov 2024 18:58:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=E9=A6=96=E9=A1=B5=E3=80=81?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E3=80=81=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 2 +- frontend/src/api/plan/autoTest.json | 37 ++++++++- frontend/src/views/home/components/table.vue | 18 ++--- frontend/src/views/home/components/tree.vue | 2 +- frontend/src/views/home/tabs/dashboard.vue | 81 ++++++++++++------- .../autoTest/components/ShowDataPopup.vue | 10 +-- .../views/plan/autoTest/components/tree.vue | 21 ++++- frontend/src/views/plan/autoTest/index.vue | 73 +++++++++++++---- frontend/src/views/plan/planList/index.vue | 2 - 9 files changed, 178 insertions(+), 68 deletions(-) diff --git a/frontend/.env.development b/frontend/.env.development index 8f13788..282bdb3 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -20,5 +20,5 @@ VITE_API_URL=/api # 开发环境跨域代理,支持配置多个 VITE_PROXY=[["/api","http://192.168.1.124:18092/"]] -#VITE_PROXY=[["/api","http://192.168.1.125:18092/"]] +# VITE_PROXY=[["/api","http://192.168.1.125:18092/"]] # VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文 diff --git a/frontend/src/api/plan/autoTest.json b/frontend/src/api/plan/autoTest.json index 67ab275..1e087f3 100644 --- a/frontend/src/api/plan/autoTest.json +++ b/frontend/src/api/plan/autoTest.json @@ -3,7 +3,7 @@ "data": [ { "id": 0, - "name": "频率准备度检测", + "name": "频率准确度检测", "children": [ { "pid": 0, @@ -11,16 +11,22 @@ "name": "额定工作条件下的检测", "children": [ { + "scriptIdx":1, + "isChildNode":true, "pid": "0-1", "id": "0-1-1", "name": "输入:频率 42.5Hz..." }, { + "scriptIdx":2, + "isChildNode":true, "pid": "0-1", "id": "0-1-2", "name": "输入:频率 50.0Hz..." }, { + "scriptIdx":3, + "isChildNode":true, "pid": "0-1", "id": "0-1-3", "name": "输入:频率 50.05Hz..." @@ -33,16 +39,22 @@ "name": "电压对频率测量的影响", "children": [ { + "scriptIdx":4, + "isChildNode":true, "pid": "0-2", "id": "0-2-1", "name": "输入:频率 50.05Hz Ua =10%Un..." }, { + "scriptIdx":5, + "isChildNode":true, "pid": "0-2", "id": "0-2-1", "name": "输入:频率 51.05Hz Ua =10%Un..." }, { + "scriptIdx":6, + "isChildNode":true, "pid": "0-2", "id": "0-2-2", "name": "输入:频率 52.05Hz Ua =10%Un..." @@ -55,6 +67,8 @@ "name": "谐波对频率测量的影响", "children": [ { + "scriptIdx":7, + "isChildNode":true, "pid": "0-3", "id": "0-3-1", "name": "输入:频率 50.05Hz Ua =100%Un..." @@ -73,16 +87,22 @@ "name": "额定工作条件下的检测", "children": [ { + "scriptIdx":8, + "isChildNode":true, "pid": "1-1", "id": "1-1-1", "name": "输入:频率 42.5Hz..." }, { + "scriptIdx":9, + "isChildNode":true, "pid": "1-1", "id": "1-1-2", "name": "输入:频率 50.0Hz..." }, { + "scriptIdx":10, + "isChildNode":true, "pid": "1-1", "id": "1-1-3", "name": "输入:频率 50.05Hz..." @@ -95,16 +115,22 @@ "name": "电压对频率测量的影响", "children": [ { + "scriptIdx":11, + "isChildNode":true, "pid": "1-2", "id": "1-2-1", "name": "输入:频率 50.05Hz Ua =10%Un..." }, { + "scriptIdx":12, + "isChildNode":true, "pid": "1-2", "id": "1-2-1", "name": "输入:频率 51.05Hz Ua =10%Un..." }, { + "scriptIdx":13, + "isChildNode":true, "pid": "1-2", "id": "1-2-2", "name": "输入:频率 52.05Hz Ua =10%Un..." @@ -117,6 +143,8 @@ "name": "谐波对频率测量的影响", "children": [ { + "scriptIdx":14, + "isChildNode":true, "pid": "0-3", "id": "0-3-1", "name": "输入:频率 50.05Hz Ua =100%Un..." @@ -136,16 +164,19 @@ "name": "额定工作条件下的检测", "children": [ { + "scriptIdx":15, "pid": "2-1", "id": "2-1-1", "name": "输入:频率 42.5Hz..." }, { + "scriptIdx":16, "pid": "2-1", "id": "2-1-2", "name": "输入:频率 50.0Hz..." }, { + "scriptIdx":17, "pid": "2-1", "id": "2-1-3", "name": "输入:频率 50.05Hz..." @@ -158,16 +189,19 @@ "name": "电压对频率测量的影响", "children": [ { + "scriptIdx":18, "pid": "2-2", "id": "2-2-1", "name": "输入:频率 50.05Hz Ua =10%Un..." }, { + "scriptIdx":19, "pid": "2-2", "id": "2-2-1", "name": "输入:频率 51.05Hz Ua =10%Un..." }, { + "scriptIdx":20, "pid": "2-2", "id": "2-2-2", "name": "输入:频率 52.05Hz Ua =10%Un..." @@ -180,6 +214,7 @@ "name": "谐波对频率测量的影响", "children": [ { + "scriptIdx":21, "pid": "2-3", "id": "2-3-1", "name": "输入:频率 50.05Hz Ua =100%Un..." diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index aec1327..0321b91 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -55,13 +55,13 @@ type="primary" @click="handleTest" v-if="form.activeTabs === 0" - >启动自动检测自动检测 启动手动检测手动检测 不合格项复检 批量生成报告报告批量生成 []>([ { prop: 'reCheck_Num', label: '复检次数', - minWidth: 70, + minWidth: 100, }, { prop: 'report_State', label: '报告状态', - minWidth: 130, + minWidth: 100, }, { prop: 'check_Result', label: '检测结果', - minWidth: 130, + minWidth: 100, }, { prop: 'check_State', label: '检测状态', - minWidth: 130, + minWidth: 100, }, { prop: 'document_State', label: '归档状态', - minWidth: 130, + minWidth: 100, }, { prop: 'operation', label: '操作', fixed: 'right', minWidth: 150 ,isShow: operationShow}, ]) diff --git a/frontend/src/views/home/components/tree.vue b/frontend/src/views/home/components/tree.vue index 700d9db..226fbdf 100644 --- a/frontend/src/views/home/components/tree.vue +++ b/frontend/src/views/home/components/tree.vue @@ -32,7 +32,7 @@