|
|
@@ -2131,15 +2131,11 @@ export default function TaskManagement() {
|
|
|
const url = typeof f.response === 'string' ? f.response : (f.response?.url ?? '');
|
|
|
return { name: f.name, url };
|
|
|
});
|
|
|
- const payload = {
|
|
|
- deviceNumber: isolationDeviceNumber,
|
|
|
- attachments: attachmentUrls,
|
|
|
- };
|
|
|
- const formDataString = JSON.stringify(payload);
|
|
|
await taskManagementApi.updateNodeApproval({
|
|
|
nodeId: typeof nodeId === 'number' ? nodeId : Number(nodeId),
|
|
|
approvalStatus: 'approved',
|
|
|
- formData: formDataString,
|
|
|
+ deviceNumber: isolationDeviceNumber,
|
|
|
+ attachments: JSON.stringify(attachmentUrls),
|
|
|
});
|
|
|
message.success(t('common.submit') + t('common.success'));
|
|
|
setDetailVisible(false);
|