From 29fbeff08ec332db9bc6257e106b81d21c8d4534 Mon Sep 17 00:00:00 2001 From: 付煜 <fuyu3103346691@163.com> Date: 星期二, 12 四月 2022 09:44:07 +0800 Subject: [PATCH] 系统周报添加字段 --- force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js index 08b932a..2a57fe3 100644 --- a/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js +++ b/force-app/main/default/aura/NewAgencyContact/NewAgencyContactController.js @@ -125,6 +125,13 @@ } 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; } } @@ -167,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