Ver Fonte

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

1. 网关参数名称/编码优先取待修改参数的值,不存在则取标准参数的值
wangcong há 1 semana atrás
pai
commit
1755ec1e6c
1 ficheiros alterados com 2 adições e 0 exclusões
  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,
           });