From e6f67a4b64a707c52c4eb635ba082f6f94250f90 Mon Sep 17 00:00:00 2001
From: 张宇恒 <bxyun0@163.com>
Date: 星期二, 12 四月 2022 09:08:30 +0800
Subject: [PATCH] NFM612Test测试程序
---
force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js
index 8069347..2a57fe3 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;
+ }
}
}
}
@@ -163,7 +174,10 @@
if(data.getState() == "SUCCESS"){
var rv = data.getReturnValue();
console.log(rv);
- var sfId = rv.Data.recordId;
+ var sfId = null;
+ if(rv.IsSuccess){
+ sfId = rv.Data.recordId;
+ }
helper.AwsPost(staticResource.transactionUrl,{
txId: result.txId,
--
Gitblit v1.9.1