|
@@ -104,6 +104,7 @@ const addList = (key: Key | Key[]) => {
|
|
|
};
|
|
|
|
|
|
const postGatewayLinkProtocolList = (value: number) => {
|
|
|
+ protocolList.value = [];
|
|
|
handleRequest(async () => {
|
|
|
const { records } = await gatewayParameterList({
|
|
|
pageIndex: 1,
|
|
@@ -187,14 +188,16 @@ onMounted(() => {
|
|
|
|
|
|
<div class="agreement-text">
|
|
|
<span>{{ $t('setupProtocol.protocolType') }}:</span> <span>{{ interfaceItem?.protocolType }}</span>
|
|
|
- <span class="agreement-text1">{{ $t('setupProtocol.baudRate') }}:</span>
|
|
|
- <span>{{ interfaceItem?.baudRate }}</span>
|
|
|
- <span class="agreement-text1">{{ $t('setupProtocol.dataBit') }}:</span>
|
|
|
- <span>{{ interfaceItem?.dataBit }}</span>
|
|
|
- <span class="agreement-text1">{{ $t('setupProtocol.stopBit') }}:</span>
|
|
|
- <span>{{ interfaceItem?.stopBit }}</span>
|
|
|
- <span class="agreement-text1">{{ $t('setupProtocol.parityBit') }}:</span>
|
|
|
- <span>{{ interfaceItem?.parityBit }}</span>
|
|
|
+ <span v-if="interfaceItem?.protocolType === 'ModbusRTU'"
|
|
|
+ ><span class="agreement-text1">{{ $t('setupProtocol.baudRate') }}:</span>
|
|
|
+ <span>{{ interfaceItem?.baudRate }}</span>
|
|
|
+ <span class="agreement-text1">{{ $t('setupProtocol.dataBit') }}:</span>
|
|
|
+ <span>{{ interfaceItem?.dataBit }}</span>
|
|
|
+ <span class="agreement-text1">{{ $t('setupProtocol.stopBit') }}:</span>
|
|
|
+ <span>{{ interfaceItem?.stopBit }}</span>
|
|
|
+ <span class="agreement-text1">{{ $t('setupProtocol.parityBit') }}:</span>
|
|
|
+ <span>{{ interfaceItem?.parityBit }}</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
<ACollapse
|
|
|
v-model:active-key="activeKey"
|
|
@@ -205,7 +208,7 @@ onMounted(() => {
|
|
|
>
|
|
|
<ACollapsePanel v-for="item in verificationAgreement" :key="item.id">
|
|
|
<template #header>
|
|
|
- <span class="header-text">{{ $t('registerGateway.station') }}{{ item.station }}</span>
|
|
|
+ <!-- <span class="header-text">{{ $t('registerGateway.station') }}{{ item.station }}</span> -->
|
|
|
<span class="header-text1">{{ $t('registerGateway.communicationProtocol') }}:{{ item.protocolName }}</span>
|
|
|
</template>
|
|
|
<template #extra>
|