预检测不显示温度框

This commit is contained in:
sjl
2025-06-04 16:38:02 +08:00
parent 15f2c1ee41
commit bc0de34c15
2 changed files with 11 additions and 5 deletions

View File

@@ -90,6 +90,7 @@ const handleStart = () => {
checkStore.setCheckType(0) checkStore.setCheckType(0)
checkStore.setSelectTestItems({...formContent}) checkStore.setSelectTestItems({...formContent})
handleClose() handleClose()
emit('openTestDialog',checkStore.selectTestItems.test) emit('openTestDialog',checkStore.selectTestItems.test)
} }
} }

View File

@@ -1023,7 +1023,7 @@ const handleTest = async (val: string) => {
if(appSceneStore.currentScene === '0'){ if(appSceneStore.currentScene === '0'){
writeTHPopupRef.value?.open() writeTHPopupRef.value?.open()
}else{ }else{
openTestDialog() openTestDialog(true)
} }
}) })
.catch((action: Action) => { .catch((action: Action) => {
@@ -1034,13 +1034,13 @@ const handleTest = async (val: string) => {
if (appSceneStore.currentScene === '0') { if (appSceneStore.currentScene === '0') {
writeTHPopupRef.value?.open() writeTHPopupRef.value?.open()
} else { } else {
openTestDialog() openTestDialog(true)
} }
} }
}) })
checkStore.setSelectTestItems({preTest: false, timeTest: false, channelsTest: false, test: true}) checkStore.setSelectTestItems({preTest: false, timeTest: false, channelsTest: false, test: true})
} else { } else {
openTestDialog() openTestDialog(true)
} }
} }
} }
@@ -1084,15 +1084,20 @@ const handleTest = async (val: string) => {
} }
} }
const openTestDialog = () => { const openTestDialog = (testData:any) => {
if (appSceneStore.currentScene === '0') { if (appSceneStore.currentScene === '0') {
writeTHPopupRef.value?.open() if(testData)
writeTHPopupRef.value?.open()
else
testPopup.value?.open(dialogTitle.value)
} else { } else {
testPopup.value?.open(dialogTitle.value) testPopup.value?.open(dialogTitle.value)
} }
} }
const openTestDialog2 = () => { const openTestDialog2 = () => {
testPopup.value?.open(dialogTitle.value) testPopup.value?.open(dialogTitle.value)
} }