|
@@ -45,6 +45,7 @@ const customParamsForm = reactive<Partial<ProtocolParamInfo>>({
|
|
gatewayParamCode: '',
|
|
gatewayParamCode: '',
|
|
unit: '',
|
|
unit: '',
|
|
module: '',
|
|
module: '',
|
|
|
|
+ groupType: '',
|
|
readWriteType: undefined,
|
|
readWriteType: undefined,
|
|
readWriteTypeCode: undefined,
|
|
readWriteTypeCode: undefined,
|
|
parsingType: undefined,
|
|
parsingType: undefined,
|
|
@@ -224,12 +225,15 @@ const handleOk = () => {
|
|
await addProtocolParam({
|
|
await addProtocolParam({
|
|
baseInfoId: props.protocolId,
|
|
baseInfoId: props.protocolId,
|
|
...customParamsForm,
|
|
...customParamsForm,
|
|
|
|
+ groupType: customParamsForm.groupType || '默认分组',
|
|
});
|
|
});
|
|
|
|
|
|
message.success(t('setupProtocol.addCustomParamsSuccessful'));
|
|
message.success(t('setupProtocol.addCustomParamsSuccessful'));
|
|
} else {
|
|
} else {
|
|
await updateProtocolParam({
|
|
await updateProtocolParam({
|
|
|
|
+ baseInfoId: props.protocolId,
|
|
...customParamsForm,
|
|
...customParamsForm,
|
|
|
|
+ groupType: customParamsForm.groupType || '默认分组',
|
|
id: props.paramId,
|
|
id: props.paramId,
|
|
});
|
|
});
|
|
|
|
|
|
@@ -285,7 +289,7 @@ defineExpose({
|
|
<AInput v-model:value="customParamsForm.unit" class="protocol-input" :placeholder="$t('common.plzEnter')" />
|
|
<AInput v-model:value="customParamsForm.unit" class="protocol-input" :placeholder="$t('common.plzEnter')" />
|
|
</AFormItem>
|
|
</AFormItem>
|
|
</ACol>
|
|
</ACol>
|
|
- <ACol :span="8">
|
|
|
|
|
|
+ <!-- <ACol :span="8">
|
|
<AFormItem :label="$t('setupProtocol.protocolParamFields.module')" name="module">
|
|
<AFormItem :label="$t('setupProtocol.protocolParamFields.module')" name="module">
|
|
<AInput
|
|
<AInput
|
|
v-model:value="customParamsForm.module"
|
|
v-model:value="customParamsForm.module"
|
|
@@ -293,6 +297,15 @@ defineExpose({
|
|
:placeholder="$t('common.plzEnter')"
|
|
:placeholder="$t('common.plzEnter')"
|
|
/>
|
|
/>
|
|
</AFormItem>
|
|
</AFormItem>
|
|
|
|
+ </ACol> -->
|
|
|
|
+ <ACol :span="8">
|
|
|
|
+ <AFormItem :label="$t('setupProtocol.protocolParamFields.groupName')" name="groupType">
|
|
|
|
+ <AInput
|
|
|
|
+ v-model:value="customParamsForm.groupType"
|
|
|
|
+ class="protocol-input"
|
|
|
|
+ :placeholder="$t('common.plzEnter')"
|
|
|
|
+ />
|
|
|
|
+ </AFormItem>
|
|
</ACol>
|
|
</ACol>
|
|
<ACol :span="8">
|
|
<ACol :span="8">
|
|
<AFormItem :label="$t('setupProtocol.protocolParamFields.readWriteType')">
|
|
<AFormItem :label="$t('setupProtocol.protocolParamFields.readWriteType')">
|