From a9a580ad29a7da92b357745b1c5e40627bb943f2 Mon Sep 17 00:00:00 2001 From: fhysy <1149505133@qq.com> Date: Tue, 8 Jul 2025 17:00:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(calibration):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E6=A0=87=E5=AE=9A=E5=8A=9F=E8=83=BD=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重新设计了标定页面布局和功能 - 添加了操作员编号输入字段 - 新增了标定中和标定后检测的配置项 - 优化了设备列表和日志的显示方式 - 重构了日志处理和设备信息更新的逻辑 - 新增了漏电检测相关的配置项 --- resources/config/config.js | 4 + src/renderer/src/util/config.js | 16 +- src/renderer/src/views/calibration/index.vue | 587 ++++++++++++------- 3 files changed, 375 insertions(+), 232 deletions(-) diff --git a/resources/config/config.js b/resources/config/config.js index 457a20a..0f0e76f 100644 --- a/resources/config/config.js +++ b/resources/config/config.js @@ -1,10 +1,14 @@ module.exports = { + //打包配置 + // url: 'http://127.0.0.1:8000', // wsUrl: 'ws://127.0.0.1:8000', // swichWsUrl: 'ws://127.0.0.1:8001', // serialPortUrl: 'http://127.0.0.1:8000', + //开发配置 + url: 'http://192.168.1.17:8000', wsUrl: 'ws://192.168.1.17:8000', swichWsUrl: 'ws://192.168.1.17:8001', diff --git a/src/renderer/src/util/config.js b/src/renderer/src/util/config.js index c900d45..eb67adb 100644 --- a/src/renderer/src/util/config.js +++ b/src/renderer/src/util/config.js @@ -17,15 +17,15 @@ // } export default { - url: 'http://127.0.0.1:8888', - wsUrl: 'ws://127.0.0.1:8888', - swichWsUrl: 'ws://127.0.0.1:8001', - serialPortUrl: 'http://127.0.0.1:8888', + // url: 'http://127.0.0.1:8000', + // wsUrl: 'ws://127.0.0.1:8000', + // swichWsUrl: 'ws://127.0.0.1:8001', + // serialPortUrl: 'http://127.0.0.1:8000', - // url: 'http://192.168.1.17:8000', - // wsUrl: 'ws://192.168.1.17:8000', - // swichWsUrl: 'ws://192.168.1.17:8001', - // serialPortUrl: 'http://192.168.1.17:8000', + url: 'http://192.168.1.17:8000', + wsUrl: 'ws://192.168.1.17:8000', + swichWsUrl: 'ws://192.168.1.17:8001', + serialPortUrl: 'http://192.168.1.17:8000', // 远程连接串口使用 // serialPortUrl: 'http://120.77.172.42:7202', diff --git a/src/renderer/src/views/calibration/index.vue b/src/renderer/src/views/calibration/index.vue index 3ce2d86..50dc55b 100644 --- a/src/renderer/src/views/calibration/index.vue +++ b/src/renderer/src/views/calibration/index.vue @@ -6,7 +6,8 @@ 开始执行 - 停止 + 停止 +
刷新列表 @@ -46,8 +47,25 @@
-
-

芯片ID: {{ device.deviceSN || '无' }}

+
{{ device.activeStep }}
+
+
+

+ 芯片ID: + + {{ device.cpuId || '无' }} + +

设备端口: {{ device.devicePort || '无' }}

标定结果: @@ -57,11 +75,12 @@

结果描述: - {{ device.resultTxt || '无' }} + {{ device.resultTxt || '无' }}

@@ -70,23 +89,23 @@
-
-
- - - - - - - - - - - - - {{ item.time }} {{ item.msg }} -
-
+
+
+ + + + + + + + + + + + + {{ item.time }} {{ item.msg }} +
+
+ + + 漏电检测设置 + + + + + + + + + + + + + + + + + + + + + +