Commit 38bba2871fa977ce68c7a67dfc49f518071d8244

Authored by xp.Huang
2 parents 21312de2 e4b78959

Merge branch 'fix/DEFECT-1900' into 'main_dev'

fix: 修复看板控制组件4设置密码框时下发命令重复弹出密码框

See merge request yunteng/thingskit-front!1191
... ... @@ -72,6 +72,7 @@
72 72 const handleAfterChange = () => {
73 73 if (unref(getDesign).password) {
74 74 openModal(true, { password: unref(getDesign).password });
  75 + unref(sliderElRef)?.blur();
75 76 return;
76 77 }
77 78 handleSendCommand();
... ...
... ... @@ -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 }
... ...