瀏覽代碼

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,
           });