Commit ece6fef1021b075b51872231a8a018c2acc67f58

Authored by ww
1 parent 73f83cde

fix: 修复DEFECT-1771 场景联动选择TCP服务校验不通过

... ... @@ -116,18 +116,15 @@ export const getFormSchemas = ({
116 116 };
117 117 };
118 118
119   - const createTCPServiceCommandInput = ({
120   - serviceCommand,
121   - functionName,
122   - }: StructJSON): FormSchema => {
  119 + const createTCPServiceCommandInput = ({ serviceCommand }: StructJSON): FormSchema => {
123 120 return {
124 121 field: 'serviceCommand',
125 122 label: '服务命令',
126 123 component: 'Input',
127 124 required,
  125 + defaultValue: serviceCommand,
128 126 componentProps: {
129   - defaultValue: serviceCommand,
130   - placeholder: `请输入${functionName}`,
  127 + placeholder: `请输入服务命令`,
131 128 },
132 129 };
133 130 };
... ...
... ... @@ -219,6 +219,10 @@ export const getFormSchemas = (hasAlarmNotify: Ref<boolean>): FormSchema[] => {
219 219 setFieldsValue({
220 220 [FormFieldsEnum.ENTITY_ID]: [],
221 221 [FormFieldsEnum.TRANSPORT_TYPE]: option?.transportType,
  222 + [FormFieldsEnum.SERVICE_ID]: null,
  223 + [FormFieldsEnum.CALL_SERVICE]: null,
  224 + [FormFieldsEnum.CALL_SERVICE_IDENTIFIER]: null,
  225 + [FormFieldsEnum.SERVICE_COMMAND]: null,
222 226 });
223 227 },
224 228 onOptionsChange(options: (DeviceProfileModel & Record<'label' | 'value', string>)[]) {
... ...