From 128b02c14532e6bb29fb357935e3f406846cf0c9 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Fri, 1 Aug 2025 08:46:44 +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 --- .../machine/device/components/devicePopup.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/machine/device/components/devicePopup.vue b/frontend/src/views/machine/device/components/devicePopup.vue index 5deccf7..faff0f5 100644 --- a/frontend/src/views/machine/device/components/devicePopup.vue +++ b/frontend/src/views/machine/device/components/devicePopup.vue @@ -444,14 +444,16 @@ const handleDevTypeChange = (value: string) => { formContent.value.devVolt = dev.devVolt; // 默认值为1 formContent.value.icdId = dev.icd formContent.value.power = dev.power - if (dev.name.includes('NPQS-580')) { - formContent.value.encryptionFlag = 1 - formContent.value.series = 'Pqs&cn870299' - formContent.value.devKey = '!qaz@wsx3edc4rfv' - } else { - formContent.value.encryptionFlag = 0 - formContent.value.series = null - formContent.value.devKey = null + if(scene.value === '1'){ + if (dev.name.includes('NPQS-580')) { + formContent.value.encryptionFlag = 1 + formContent.value.series = 'Pqs&cn870299' + formContent.value.devKey = '!qaz@wsx3edc4rfv' + } else { + formContent.value.encryptionFlag = 0 + formContent.value.series = null + formContent.value.devKey = null + } } } else { formContent.value.devChns = 1; // 默认值为1