From 38814b9f44c5d70134358456b3712c79c7891736 Mon Sep 17 00:00:00 2001
From: caozehui <2427765068@qq.com>
Date: Thu, 26 Jun 2025 13:17:11 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=A3=80=E6=B5=8B=E6=A0=B9?=
=?UTF-8?q?=E6=8D=AE=E6=A3=80=E6=B5=8B=E5=86=85=E5=AE=B9=E4=B8=8D=E5=90=8C?=
=?UTF-8?q?=E5=8A=A8=E6=80=81=E5=86=B3=E5=AE=9A=E6=98=AF=E5=90=A6=E8=BF=9B?=
=?UTF-8?q?=E8=A1=8C=E5=88=9D=E5=A7=8B=E5=8C=96=E6=93=8D=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/views/home/components/table.vue | 16 +-
frontend/src/views/home/components/test.vue | 2 +
.../src/views/home/components/testPopup.vue | 165 ++++++------------
3 files changed, 65 insertions(+), 118 deletions(-)
diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue
index 619289b..9138ced 100644
--- a/frontend/src/views/home/components/table.vue
+++ b/frontend/src/views/home/components/table.vue
@@ -233,7 +233,7 @@
-
+
@@ -945,7 +945,7 @@ const handleTest = async (val: string) => {
dialogTitle.value = val
if (val === '手动检测') {
checkStore.setShowDetailType(2)
-
+
if (testType === 'reTest') {
ElMessageBox.confirm('请选择复检检测方式', '设备复检',
{
@@ -965,7 +965,8 @@ const handleTest = async (val: string) => {
if(appSceneStore.currentScene === '0'){
writeTHPopupRef.value?.open()
}else{
- openTestDialog(true)
+ selectTestItemPopupRef.value?.open()
+ //openTestDialog(true)
}
})
.catch((action: Action) => {
@@ -976,17 +977,16 @@ const handleTest = async (val: string) => {
if(appSceneStore.currentScene === '0'){
writeTHPopupRef.value?.open()
}else{
- openTestDialog(true)
+ selectTestItemPopupRef.value?.open()
+ //openTestDialog(true)
}
}
})
+
checkStore.setSelectTestItems({preTest: false, timeTest: false, channelsTest: false, test: true})
} else {
-
checkStore.setReCheckType(1)
- selectTestItemPopupRef.value?.open()
}
-
} else if (val === '系数校准') {
// 检查 socketClient.Instance 是否存在
if (!socketClient.Instance) {
@@ -1190,7 +1190,7 @@ watch(
)
onBeforeMount(async () => {
-
+
const response = await getPqDev()
devTypeOptions.value = response.data.map(item => ({
id: item.id,
diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue
index 3584098..d52fdec 100644
--- a/frontend/src/views/home/components/test.vue
+++ b/frontend/src/views/home/components/test.vue
@@ -281,6 +281,8 @@ watch(testStatus, function (newValue, oldValue) {
ElMessage.success('初始化开始!')
emit('update:testStatus', 'test_init')
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:初始化开始!`})
+ } else {
+ emit('update:testStatus', 'process')
}
startTimeCount()
diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue
index a695ee5..1630679 100644
--- a/frontend/src/views/home/components/testPopup.vue
+++ b/frontend/src/views/home/components/testPopup.vue
@@ -71,7 +71,7 @@