From 42c34c657dcc64a5ad71898874ced60d27e8d762 Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期一, 10 七月 2023 10:32:12 +0800 Subject: [PATCH] backup0710 --- force-app/main/default/aura/CreateTarget/CreateTargetHelper.js | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/force-app/main/default/aura/CreateTarget/CreateTargetHelper.js b/force-app/main/default/aura/CreateTarget/CreateTargetHelper.js index 993e1af..e021d2c 100644 --- a/force-app/main/default/aura/CreateTarget/CreateTargetHelper.js +++ b/force-app/main/default/aura/CreateTarget/CreateTargetHelper.js @@ -13,11 +13,12 @@ var ah = response.getReturnValue(); var select_ah = ah.Id; var select_ah_name = ah.Name; - console.log("select_ah:" + select_ah); - let agencyHosp = component.get("v.record"); - agencyHosp.Agency_Hospital__c = select_ah; + // component.set('v.record.Agency_Hospital__c', select_ah); + //add by Deloitte 2023-6-8 + let agency = component.get("v.record"); + agency.Agency_Hospital__c = select_ah; + // component.set("v.record", agency); // alert(JSON.stringify(component.find('input-hos').get("v.body")[0].get('v.values'))); - console.log("flag0"); if ($A.get("$Browser.formFactor") == "DESKTOP") { console.log("flag1"); var values = [ @@ -32,6 +33,8 @@ } } ]; + // component.find('input-hos').get("v.body")[0].set('v.values', values); + //add by Deloitte 2023-6-8 if ( component.find("input-hos").get("v.body") && component.find("input-hos").get("v.body").length > 0 @@ -42,7 +45,8 @@ .set("v.values", values); } } else { - console.log("flag2"); + // component.find('input-hos').get("v.body")[0].set('v.selectedLabel', select_ah_name); + //add by Deloitte 2023-6-8 if ( component.find("input-hos").get("v.body") && component.find("input-hos").get("v.body").length > 0 -- Gitblit v1.9.1