From 9a143c26b08fed226f2751538c63ee17bbdf1c07 Mon Sep 17 00:00:00 2001 From: fhysy <1149505133@qq.com> Date: Tue, 26 Nov 2024 10:40:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BD=91=E5=85=B3=E8=B0=83=E8=AF=95):?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=87=87=E9=9B=86=E6=95=B0=E6=8D=AE=E7=9B=91?= =?UTF-8?q?=E8=A7=86=E6=8E=A5=E5=8F=A3=E3=80=81=E8=B0=83=E6=95=B4=E5=8D=97?= =?UTF-8?q?=E5=8C=97=E5=90=91=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/gateway/collectdatamonitor.vue | 439 ++++++++---------- .../src/views/gateway/northboundtask.vue | 2 +- .../src/views/gateway/southdirection.vue | 19 +- 3 files changed, 208 insertions(+), 252 deletions(-) diff --git a/src/renderer/src/views/gateway/collectdatamonitor.vue b/src/renderer/src/views/gateway/collectdatamonitor.vue index 0e8182d..7c13dd8 100644 --- a/src/renderer/src/views/gateway/collectdatamonitor.vue +++ b/src/renderer/src/views/gateway/collectdatamonitor.vue @@ -1,273 +1,240 @@ diff --git a/src/renderer/src/views/gateway/northboundtask.vue b/src/renderer/src/views/gateway/northboundtask.vue index e49646c..09e5cdf 100644 --- a/src/renderer/src/views/gateway/northboundtask.vue +++ b/src/renderer/src/views/gateway/northboundtask.vue @@ -118,7 +118,7 @@
-

上报测点{{activeDeviceConfig.taskId}}

+

上报测点 {{activeDeviceConfig.taskId}}

-

数据源配置

+

数据源配置 {{activeDeviceConfig.equipId}}

新增配置 @@ -75,8 +75,6 @@ 导入 - -
@@ -412,7 +410,8 @@ const deviceConfigList = ref([]); const protocolList = ref([ { label: 'ModbusTCP', value: 'ModbusTCP' }, - { label: 'DLT645_2007', value: 'DLT645_2007' } + { label: 'DLT645_2007', value: 'DLT645_2007' }, + { label: 'gycan', value: 'gycan' }, ]); //新增配置 const addDeviceConfig = () => { @@ -654,7 +653,7 @@ const openConnectModel = row => { console.log('当前采集', row.protocol.libName); if (!row.protocol.libName) { ElMessage.error('请先选择通信类型'); - } else if (row.protocol.libName === 'DLT645_2007') { + } else if (row.protocol.libName === 'DLT645_2007' || row.protocol.libName === 'gycan') { if (row.interfaceParams.link) { tcpForm.value.port = row.interfaceParams.link.split(',')[0]; tcpForm.value.baudrate = row.interfaceParams.link.split(',')[1]; @@ -774,15 +773,6 @@ const changeTaskId = (e, index) => { activeDeviceConfig.value.properties[index].uploadMode = taskObj[0].uploadMode; }; -watch( - () => ({ ...activeDeviceConfig.value }), - newVal => { - // console.log("数据变化",newVal) - // deviceConfigList.value[ActiveRowIndex.value] = newVal; - }, - { deep: true } -); - //删除数据源配置 const delDeviceDataConfig = index => { ElMessageBox.confirm('确认要删除该数据源配置吗?', '告警', { @@ -807,7 +797,6 @@ const delDeviceDataConfig = index => { //选择设备配置 const deviceConfigClick = (e, event, column) => { - activeDeviceConfig.value = e; ActiveRowIndex.value = deviceConfigList.value.indexOf(e); };