From d338ca6b25808529af1b250953869251dfd81f21 Mon Sep 17 00:00:00 2001
From: caozehui <2427765068@qq.com>
Date: Wed, 26 Feb 2025 18:55:50 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/home/components/testPopup.vue | 50 ++++++++++---------
1 file changed, 26 insertions(+), 24 deletions(-)
diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue
index 4dfe8b0..7f239c1 100644
--- a/frontend/src/views/home/components/testPopup.vue
+++ b/frontend/src/views/home/components/testPopup.vue
@@ -3,19 +3,20 @@
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
@@ -110,6 +111,7 @@ const initOperate = () => {
channelsTestStatus.value = 'waiting'
TestStatus.value = 'waiting'
+ stepsActiveIndex.value = 1
showComponent.value = true
// 初始化勾选的检测内容
preTestSelected.value = checkStore.selectTestItems.preTest
@@ -208,21 +210,21 @@ const handleSubmit = () => {
break;
case 4:
if (TestStatus.value == "waiting") {
- startPreTest({
- userPageId: "cdf",
- devIds: deviceIds,
- planId: planId,
- operateType: '2' // '1'为预检测、‘2‘为正式检测
- }).then(res => {
- console.log(res)
- if (res.code === 'A001014') {
- ElMessageBox.alert('装置配置异常', '初始化失败', {
- confirmButtonText: '确定',
- type: 'error',
- })
- TestStatus.value = 'test_init_fail'
- }
- })
+ startPreTest({
+ userPageId: "cdf",
+ devIds: deviceIds,
+ planId: planId,
+ operateType: '2' // '1'为预检测、‘2‘为正式检测
+ }).then(res => {
+ console.log(res)
+ if (res.code === 'A001014') {
+ ElMessageBox.alert('装置配置异常', '初始化失败', {
+ confirmButtonText: '确定',
+ type: 'error',
+ })
+ TestStatus.value = 'test_init_fail'
+ }
+ })
TestStatus.value = 'start'
} else if (TestStatus.value == 'paused') {
// 发送继续指令