From d77b6353ca9b59a6398df3eae9912f9fd766946d Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期六, 05 八月 2023 17:04:22 +0800
Subject: [PATCH] fix: lightning 页面确认

---
 force-app/main/default/lwc/lexUnassign/lexUnassign.js |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/lwc/lexUnassign/lexUnassign.js b/force-app/main/default/lwc/lexUnassign/lexUnassign.js
new file mode 100644
index 0000000..753a132
--- /dev/null
+++ b/force-app/main/default/lwc/lexUnassign/lexUnassign.js
@@ -0,0 +1,39 @@
+import { LightningElement, track, wire, api } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+
+export default class lexUnassign extends LightningElement {
+	@api recordId;
+	@api rentalApplySetIds;
+	msg;
+	IsLoading=true;
+
+	@wire(CurrentPageReference)
+	getStateParameters(currentPageReference){
+		console.log("杩涘叆椤甸潰");
+		console.log(currentPageReference);
+		if(currentPageReference){
+			const urvalue=currentPageReference.state.recordId;
+			if(urvalue){
+				let str=`${urvalue}`;
+				console.log('str');
+				console.log(str);
+				this.recordId=str;
+			}
+		}
+	}
+
+	connectedCallback(){
+
+		if(this.rentalApplySetIds == undefined || this.rentalApplySetIds.length<1){
+			window.open("/apex/EquipmentRentalUnassign?raId="+this.recordId); 
+		}else{
+			window.open("/apex/EquipmentRentalUnassign?raId="+this.recordId+"&EquipmentId="+this.rentalApplySetIds); 
+		}
+		this.closeAction();
+	}
+
+	closeAction() {
+        //杩斿洖褰撳墠鐨勫鍝佺敵璇�
+		window.open("/"+this.recordId,'_self');
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.1