Showing
2 changed files
with
6 additions
and
1 deletions
... | ... | @@ -68,6 +68,7 @@ |
68 | 68 | { |
69 | 69 | field: 'authScriptId', |
70 | 70 | label: '鉴权脚本', |
71 | + show: () => props.record.protocol !== TCPProtocolTypeEnum.MODBUS_RTU, | |
71 | 72 | render: (value: string) => { |
72 | 73 | return ( |
73 | 74 | value && |
... | ... | @@ -81,6 +82,7 @@ |
81 | 82 | { |
82 | 83 | field: 'upScriptId', |
83 | 84 | label: '上行脚本', |
85 | + show: () => props.record.protocol !== TCPProtocolTypeEnum.MODBUS_RTU, | |
84 | 86 | render: (value: string) => { |
85 | 87 | return ( |
86 | 88 | value && | ... | ... |
... | ... | @@ -23,7 +23,10 @@ |
23 | 23 | <section> |
24 | 24 | <DefaultConfiguration |
25 | 25 | :record="getTransportInfo" |
26 | - v-if="getTransportInfo.type === TransportTypeEnum.DEFAULT || TransportTypeEnum.GBT28181" | |
26 | + v-if=" | |
27 | + getTransportInfo.type === TransportTypeEnum.DEFAULT || | |
28 | + getTransportInfo.type === TransportTypeEnum.GBT28181 | |
29 | + " | |
27 | 30 | /> |
28 | 31 | |
29 | 32 | <MQTTConfiguration | ... | ... |