-
数据源配置
+
数据源配置 {{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);
};