From 428f42fab44b654c69fbc461513203830743d7de Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期二, 18 七月 2023 10:55:50 +0800
Subject: [PATCH] hql20230718更新lightning按钮

---
 force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js |   48 +++++++++++++++++++++++++++---------------------
 1 files changed, 27 insertions(+), 21 deletions(-)

diff --git a/force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js b/force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js
index 7d23de7..de2af7f 100644
--- a/force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js
+++ b/force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js
@@ -2,13 +2,19 @@
 import { CurrentPageReference } from 'lightning/navigation';
 import init  from '@salesforce/apex/QISReportController.initForQisUniversalFailureCodeButton';
 import sqlForPAE  from '@salesforce/apex/QISReportController.sqlForPAE';
-
+/*
+ * @Description: Final universal code缂栬緫
+ * @Author: hql
+ * @Date: 2023-07-12 09:45:19
+ * @LastEditTime: 2023-07-12 15:44:33
+ * @LastEditors:  
+ */
 export default class lexQisUniversalFailureCode extends LightningElement {
-	@api recordId;
-	IsLoading = true;
-	qisReportId;
-	paeId;
-	 @wire(CurrentPageReference)
+    @api recordId;
+    IsLoading = true;
+    qisReportId;
+    paeId;
+     @wire(CurrentPageReference)
      getStateParameters(currentPageReference) {
              console.log(111);
              console.log(currentPageReference);
@@ -34,22 +40,22 @@
                 this.qisReportId = result.Id;
                 var RecordTypeId = "ASACDecision";
                 sqlForPAE({
-                	qisReportId: this.qisReportId
-           		 }).then(result => {
-	            	if (result!=null) {
-	            		this.paeId = result.pAEid;
-	            		console.log('result='+this.paeId);
-	            	}   
-	            	var url = '';
-					if (result!=null&& this.paeId!=null){
-						url = "/apex/PAEDecisionRecord?Id="+this.paeId+"&QISReportId="+this.qisReportId +"&RecordTypeIds="+RecordTypeId ;
-					} else {
-						url = "/apex/PAEDecisionRecord?QISReportId="+this.qisReportId +"&RecordTypeIds="+RecordTypeId;
-					} 
-					console.log('url='+url);
-					// window.open(url,'_self');
+                    qisReportId: this.qisReportId
+                 }).then(result => {
+                    if (result!=null) {
+                        this.paeId = result.pAEid;
+                        console.log('result='+this.paeId);
+                    }   
+                    var url = '';
+                    if (result!=null&& this.paeId!=null){
+                        url = "/apex/PAEDecisionRecord?Id="+this.paeId+"&QISReportId="+this.qisReportId +"&RecordTypeIds="+RecordTypeId ;
+                    } else {
+                        url = "/apex/PAEDecisionRecord?QISReportId="+this.qisReportId +"&RecordTypeIds="+RecordTypeId;
+                    } 
+                    console.log('url='+url);
+                    // window.open(url,'_self');
                     window.location.replace(url);
-		        }); 
+                }); 
             }
         }).catch(error => {
             console.log('error='+error);

--
Gitblit v1.9.1