From bbc7c47e3eadfe0ae3ac57419b1c9b8b2ed3e3d4 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期四, 06 四月 2023 17:30:41 +0800
Subject: [PATCH] 修改按钮 4.6
---
force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js b/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js
index 2ba7b50..6d8e5b0 100644
--- a/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js
+++ b/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js
@@ -16,6 +16,22 @@
profileId;
Isloading = true;
+ @wire(CurrentPageReference)
+ getStateParameters(currentPageReference) {
+ console.log(111);
+ console.log(currentPageReference);
+
+ if (currentPageReference) {
+ const urlValue = currentPageReference.state.recordId;
+ if (urlValue) {
+ let str = `${urlValue}`;
+ console.log("str");
+ console.log(str);
+ this.recordId = str;
+ }
+ }
+ }
+
connectedCallback(){
console.log(this.recordId);
@@ -63,11 +79,13 @@
return;
}
if (this.status != "璺熻繘涓�") {
+ alert("涓嶆槸璺熻繘涓笉鑳界偣鍑�");
this.showToast("涓嶆槸璺熻繘涓笉鑳界偣鍑�","error");
this.dispatchEvent(new CloseActionScreenEvent());
return;
}
if (this.isVOC == undefined) {
+ alert("蹇呴』閫夋嫨鏄惁VOC");
this.showToast("蹇呴』閫夋嫨鏄惁VOC","error");
this.dispatchEvent(new CloseActionScreenEvent());
return;
--
Gitblit v1.9.1