ソースを参照

perf(components): 优化协议变更标准参数的逻辑

1. 网关参数名称/编码优先取待修改参数的值,不存在则取标准参数的值
wangcong 1 週間 前
コミット
1755ec1e6c
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/views/setup-protocol/SelectStandardParams.vue

+ 2 - 0
src/views/setup-protocol/SelectStandardParams.vue

@@ -314,6 +314,8 @@ const handleFormOk = () => {
             baseInfoId: props.protocolId,
             platformProtocolInfoId: standardParam.id,
             paramName: props.paramName || standardParam.platformParamName,
+            gatewayParamName: props.paramInfo?.gatewayParamName || standardParam.gatewayParamName,
+            gatewayParamCode: props.paramInfo?.gatewayParamCode || standardParam.gatewayParamCode,
             id: props.paramId,
           });