Commit 17886e0fc694b3ff323fef316fa4d33cf3ad52e7

Authored by xp.Huang
2 parents a3bc2183 1feaa2cd

Merge branch 'fix/product-transport-configuration' into 'main_dev'

fix: 修复产品详情传输配置回显错误

See merge request yunteng/thingskit-front!1241
... ... @@ -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
... ...