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/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js | 44 +++++++++++++++++++++++++-------------------
1 files changed, 25 insertions(+), 19 deletions(-)
diff --git a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
index 2168a7d..79b95fe 100644
--- a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
+++ b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
@@ -2,12 +2,18 @@
import { CurrentPageReference } from "lightning/navigation";
import init from '@salesforce/apex/QISReportController.initForlexQISIntakeuniversalcodeButton';
import sqlForPAE from '@salesforce/apex/QISReportController.sqlForPAE1';
-
+/*
+ * @Description: Intake universal code缂栬緫
+ * @Author: hql
+ * @Date: 2023-07-12 09:45:19
+ * @LastEditTime: 2023-07-12 15:44:33
+ * @LastEditors:
+ */
export default class lexQISIntakeuniversalcode extends LightningElement {
- @api recordId;
- IsLoading = true;
- qisReportId;
- paeId;
+ @api recordId;
+ IsLoading = true;
+ qisReportId;
+ paeId;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
@@ -35,21 +41,21 @@
this.qisReportId = result.Id;
var RecordTypeId = "ASRCDecision";
sqlForPAE({
- qisReportId: this.qisReportId
- }).then(result => {
- if (result!=null) {
- this.paeId = result.pAEid;
- console.log('result2='+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);
+ qisReportId: this.qisReportId
+ }).then(result => {
+ if (result!=null) {
+ this.paeId = result.pAEid;
+ console.log('result2='+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.location.replace(url);
- });
+ });
}
}).catch(error => {
console.log('error='+error);
--
Gitblit v1.9.1