|
@ -57,6 +57,7 @@ const AddFirmwareModal = (props) => { |
|
|
.attach('file',blobData,removeFlag?fileObj.name:recordRow?recordRow.firmwareName:fileObj.name) |
|
|
.attach('file',blobData,removeFlag?fileObj.name:recordRow?recordRow.firmwareName:fileObj.name) |
|
|
.field('filePath',removeFlag?fileUrl:recordRow?recordRow.filepath:fileUrl) |
|
|
.field('filePath',removeFlag?fileUrl:recordRow?recordRow.filepath:fileUrl) |
|
|
.field('userId', userId||'') |
|
|
.field('userId', userId||'') |
|
|
|
|
|
.field('firmwareName', res?.firmwareName||'') |
|
|
.field('comment',res?.remark||'') |
|
|
.field('comment',res?.remark||'') |
|
|
.field('device_meta_name', options?.find(item=>item.value===res?.deviceName)?.label||'') |
|
|
.field('device_meta_name', options?.find(item=>item.value===res?.deviceName)?.label||'') |
|
|
.query({ version:res?.versionNo,device_meta_id: res?.deviceName,token:'22767e1f-db8d-4a1d-87d4-56347cf21247'}) |
|
|
.query({ version:res?.versionNo,device_meta_id: res?.deviceName,token:'22767e1f-db8d-4a1d-87d4-56347cf21247'}) |
|
@ -109,8 +110,8 @@ const AddFirmwareModal = (props) => { |
|
|
'remark':recordRow?.remark |
|
|
'remark':recordRow?.remark |
|
|
}} getFormApi={formApi => api.current = formApi} labelCol={{ span: 7,offset:1}} wrapperCol={{span: 15,offset:1}} labelPosition='left' > |
|
|
}} getFormApi={formApi => api.current = formApi} labelCol={{ span: 7,offset:1}} wrapperCol={{span: 15,offset:1}} labelPosition='left' > |
|
|
<Form.Input field='firmwareName' label='固件版本名称:' style={{with:'80%'}} rules={[{ required: true, message: '固件版本名称必填' }]}></Form.Input> |
|
|
<Form.Input field='firmwareName' label='固件版本名称:' style={{with:'80%'}} rules={[{ required: true, message: '固件版本名称必填' }]}></Form.Input> |
|
|
<Form.Select field='deviceName' label='设备型号:' placeholder='请选择设备型号' optionList={options} rules={[{ required: true, message: '设备型号必填' }]}></Form.Select> |
|
|
<Form.Select disabled={recordRow?true:false} field='deviceName' label='设备型号:' placeholder='请选择设备型号' optionList={options} rules={[{ required: true, message: '设备型号必填' }]}></Form.Select> |
|
|
<Form.Input field='versionNo' label='版本号:' rules={[{ required: true, message: '版本号必填' }]}></Form.Input> |
|
|
<Form.Input disabled={recordRow?true:false} field='versionNo' label='版本号:' rules={[{ required: true, message: '版本号必填' }]}></Form.Input> |
|
|
<Form.Upload limit={1} |
|
|
<Form.Upload limit={1} |
|
|
action={`/_upload/attachments`} |
|
|
action={`/_upload/attachments`} |
|
|
field='files' label='文件上传' |
|
|
field='files' label='文件上传' |
|
|