From db4e75dabb6c61be6c3a09e9f11707f6018c2ef2 Mon Sep 17 00:00:00 2001 From: Li Jun <buli@deloitte.com.cn> Date: 星期日, 20 三月 2022 15:21:18 +0800 Subject: [PATCH] PIPLDeploy0320 --- force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js index 5056425..395b1f9 100644 --- a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js +++ b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js @@ -76,10 +76,6 @@ if(rv.Data && fields.hasOwnProperty(item.field) && fields[item.field].References && fields[item.field].References.map(m=>m.value).indexOf(rv.Data.pidType) > -1){ item.value = pid; } - - if(fields.hasOwnProperty(item.field)){ - item.fi = fields[item.field]; - } } } } @@ -127,6 +123,17 @@ payloadPi[pi_fields_map[item.field].AWS_Field_API__c] = item.value; } + + if (item.behavior == "Required" && !item.value ) { + let fs = component.find("field"); + for(let fi in fs){ + let f = fs[fi]; + if(!f.get('v.value')){ + f.reset(); + } + } + return; + } } } } -- Gitblit v1.9.1