diff --git a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js index bb40495..4605ef7 100644 --- a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js +++ b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js @@ -704,16 +704,18 @@ function StaffFormModal({ proofMaterialUrl: Array.isArray(values.proofMaterialUrl) ? JSON.stringify(values.proofMaterialUrl) : undefined, - titleCodeArr: [ - { - industryCode: values.industryCode, - industryName: values.industryName, - titleCode: values.titleCode, - proveUrl: Array.isArray(values.proveUrl) - ? JSON.stringify(values.proveUrl) - : undefined, - }, - ], + titleCodeArr: values.titleCode + ? [ + { + industryCode: values.industryCode, + industryName: values.industryName, + titleCode: values.titleCode, + proveUrl: Array.isArray(values.proveUrl) + ? JSON.stringify(values.proveUrl) + : undefined, + }, + ] + : undefined, registeredSafetyEngineerCert: values.registerEngineerFlag === 1 ? stringifyCert(values.registeredSafetyEngineerCert) @@ -1095,7 +1097,11 @@ function StaffFormModal({ - + - +