手动检测根据检测内容不同动态决定是否进行初始化操作
This commit is contained in:
@@ -233,7 +233,7 @@
|
||||
<SelectTestItemPopup ref="selectTestItemPopupRef" @openTestDialog="openTestDialog"></SelectTestItemPopup>
|
||||
<!-- 省平台-填写温度湿度弹窗 -->
|
||||
<WriteTHPopup ref="writeTHPopupRef" @openTestDialog2="openTestDialog2"></WriteTHPopup>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user