Commit e4b78959d2509aae4f3938c93b1550319bef2a10

Authored by ww
1 parent 12028af0

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

@@ -72,6 +72,7 @@ @@ -72,6 +72,7 @@
72 const handleAfterChange = () => { 72 const handleAfterChange = () => {
73 if (unref(getDesign).password) { 73 if (unref(getDesign).password) {
74 openModal(true, { password: unref(getDesign).password }); 74 openModal(true, { password: unref(getDesign).password });
  75 + unref(sliderElRef)?.blur();
75 return; 76 return;
76 } 77 }
77 handleSendCommand(); 78 handleSendCommand();
@@ -238,7 +238,8 @@ export const commonDataSourceSchemas = (): FormSchema[] => { @@ -238,7 +238,8 @@ export const commonDataSourceSchemas = (): FormSchema[] => {
238 238
239 if ( 239 if (
240 unref(selectWidgetKeys).componentKey === 240 unref(selectWidgetKeys).componentKey ===
241 - ControlComponentEnum.LATERAL_NUMERICAL_CONTROL 241 + ControlComponentEnum.LATERAL_NUMERICAL_CONTROL &&
  242 + isTcpProfile(formModel[DataSourceField.TRANSPORT_TYPE])
242 ) { 243 ) {
243 return result.filter((item) => item.codeType === TaskTypeEnum.MODBUS_RTU); 244 return result.filter((item) => item.codeType === TaskTypeEnum.MODBUS_RTU);
244 } 245 }