From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523
---
force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js b/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js
index 594e598..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,6 +39,7 @@
this.IsLoading = false;
this.Id = result.Id;
this.RecordTypeId = result.RecordTypeId;
+ this.RecordType = result.RecordType;
this.insPageBtn();
this.dispatchEvent(new CloseActionScreenEvent());
@@ -50,7 +52,7 @@
// 鎶ュ憡涔︽槑缁嗙紪杈�
insPageBtn() {
var url;
- if (this.RecordTypeId == '01210000000aLii') {
+ if (this.RecordType == 'ContractInspection') {
url = '/apex/OFSInsReportLayoutForVm';
} else {
url = '/apex/OFSInsReportLayout';
--
Gitblit v1.9.1