|
@@ -64,6 +64,7 @@ const protocolQuery = ref<ProtocolList>({
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
searchContent: '',
|
|
searchContent: '',
|
|
|
|
+ protocolType: '',
|
|
});
|
|
});
|
|
|
|
|
|
const protocolTotal = ref<number>(0);
|
|
const protocolTotal = ref<number>(0);
|
|
@@ -290,6 +291,7 @@ const agreementReset = () => {
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
searchContent: '',
|
|
searchContent: '',
|
|
|
|
+ protocolType: '',
|
|
};
|
|
};
|
|
getProtocolCandidatesList();
|
|
getProtocolCandidatesList();
|
|
};
|
|
};
|
|
@@ -338,6 +340,7 @@ const addEditor = (value: number, index: number, bindState: number, protocolType
|
|
};
|
|
};
|
|
agreementId = value;
|
|
agreementId = value;
|
|
isModbusRtuProtocol.value = protocolType.includes(ProtocolType.ModbusRTU);
|
|
isModbusRtuProtocol.value = protocolType.includes(ProtocolType.ModbusRTU);
|
|
|
|
+ protocolQuery.value.protocolType = protocolType;
|
|
|
|
|
|
interfaceIndex = index;
|
|
interfaceIndex = index;
|
|
open.value = true;
|
|
open.value = true;
|
|
@@ -407,9 +410,9 @@ const handleOk = () => {
|
|
|
|
|
|
const handleOk1 = () => {
|
|
const handleOk1 = () => {
|
|
if (protocolItem) {
|
|
if (protocolItem) {
|
|
- if (agreementData.value.some((item) => item.protocolId === protocolItem.id)) {
|
|
|
|
- return message.warning(t('registerGateway.cannotAddAgain'));
|
|
|
|
- }
|
|
|
|
|
|
+ // if (agreementData.value.some((item) => item.protocolId === protocolItem.id)) {
|
|
|
|
+ // return message.warning(t('registerGateway.cannotAddAgain'));
|
|
|
|
+ // }
|
|
const { protocolName, dataSendInterval, highFreqSendInterval, id, protocolType } = protocolItem;
|
|
const { protocolName, dataSendInterval, highFreqSendInterval, id, protocolType } = protocolItem;
|
|
agreementData.value[agreementIndex] = {
|
|
agreementData.value[agreementIndex] = {
|
|
protocolType,
|
|
protocolType,
|