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//检测最大次数