From be102ae06e8f986bd9d1a544cd2752e5fa94231a Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期二, 11 七月 2023 14:23:51 +0800
Subject: [PATCH] LEX Community Deploy0711
---
force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js b/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js
index e0c1dbd..ed7e85f 100644
--- a/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js
+++ b/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js
@@ -17,6 +17,7 @@
IsLoading = true;
Id;
RecordTypeId;
+ RecordType;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
@@ -38,21 +39,20 @@
this.IsLoading = false;
this.Id = result.Id;
this.RecordTypeId = result.RecordTypeId;
+ this.RecordType = result.RecordType;
this.insPageBtn();
this.dispatchEvent(new CloseActionScreenEvent());
}
}).catch(error => {
console.log(error);
- }).finally(() => {
-
- });
+ })
}
// 鎶ュ憡涔︽槑缁嗙紪杈�
insPageBtn() {
var url;
- if (this.RecordTypeId == '01210000000aLii') {
+ if (this.RecordType == 'ContractInspection') {
url = '/apex/OFSInsReportLayoutForVm';
} else {
url = '/apex/OFSInsReportLayout';
--
Gitblit v1.9.1