From 305c30d725d5d64b812de0781e7011be969591da Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Fri, 14 Feb 2025 09:16:07 +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 --- .../views/machine/device/components/devicePopup.vue | 10 ++++++++++ frontend/src/views/plan/planList/index.vue | 3 --- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/machine/device/components/devicePopup.vue b/frontend/src/views/machine/device/components/devicePopup.vue index 625b57d..eca74f9 100644 --- a/frontend/src/views/machine/device/components/devicePopup.vue +++ b/frontend/src/views/machine/device/components/devicePopup.vue @@ -428,10 +428,20 @@ const handleDevTypeChange = (value: string) => { formContent.value.devVolt = dev.devVolt; // 默认值为1 formContent.value.icdId = dev.icd formContent.value.power = dev.power + if(dev.name.includes('882B')){ + formContent.value.ip = '172.17.102.220' + }else if(dev.name.includes('882A')){ + formContent.value.ip = '172.17.102.221' + }else{ + formContent.value.ip = '172.17.102.200' + } + + } else { formContent.value.devChns = 1; // 默认值为1 formContent.value.devCurr = 1; // 默认值为1 formContent.value.devVolt = 57.74; // 默认值为1 + formContent.value.ip = '172.17.102.200' } } diff --git a/frontend/src/views/plan/planList/index.vue b/frontend/src/views/plan/planList/index.vue index ca3880e..ab6e731 100644 --- a/frontend/src/views/plan/planList/index.vue +++ b/frontend/src/views/plan/planList/index.vue @@ -394,9 +394,6 @@ const showDeviceOpen = (row: Partial = {}) => { const myDict = new Map(); -// 引用图表容器 -const chartContainer = ref(null); -let myChart: echarts.ECharts | null = null; const statisticalAnalysis = async (row: Partial = {}) => { // const response = await getTestConfig() as unknown as Base.ResTestConfig // const maxTime= response.data.maxTime//检测最大次数