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') {
// 发送继续指令