From 87dbb4ae09e5e16ff2e39199f2617f4847420ad7 Mon Sep 17 00:00:00 2001 From: 彭锟 <pengkun@prec-tech.com> Date: 星期四, 24 三月 2022 17:38:54 +0800 Subject: [PATCH] NFM624 324 回滚 --- force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js index 8069347..395b1f9 100644 --- a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js +++ b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js @@ -123,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