Showing
2 changed files
with
3 additions
and
1 deletions
... | ... | @@ -238,7 +238,8 @@ export const commonDataSourceSchemas = (): FormSchema[] => { |
238 | 238 | |
239 | 239 | if ( |
240 | 240 | unref(selectWidgetKeys).componentKey === |
241 | - ControlComponentEnum.LATERAL_NUMERICAL_CONTROL | |
241 | + ControlComponentEnum.LATERAL_NUMERICAL_CONTROL && | |
242 | + isTcpProfile(formModel[DataSourceField.TRANSPORT_TYPE]) | |
242 | 243 | ) { |
243 | 244 | return result.filter((item) => item.codeType === TaskTypeEnum.MODBUS_RTU); |
244 | 245 | } | ... | ... |