From f5e42ce53f28872e05ba53d9615c922456f9911e Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期五, 26 五月 2023 15:25:46 +0800
Subject: [PATCH] Service加注解

---
 force-app/main/default/classes/RentalApplyWebService.cls |    2 +-
 force-app/main/default/lwc/lexUnassign/lexUnassign.js    |    8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/classes/RentalApplyWebService.cls b/force-app/main/default/classes/RentalApplyWebService.cls
index b63ac41..63fe20e 100644
--- a/force-app/main/default/classes/RentalApplyWebService.cls
+++ b/force-app/main/default/classes/RentalApplyWebService.cls
@@ -1277,7 +1277,7 @@
 //        }
 //        return '1';
 //    }
-
+    @AuraEnabled
     Webservice static String postponeCheck(String endDate, Integer d) {
         Date before5day = getWD_addday(date.parse(endDate), d);
         if (Date.today() > before5day) {
diff --git a/force-app/main/default/lwc/lexUnassign/lexUnassign.js b/force-app/main/default/lwc/lexUnassign/lexUnassign.js
index e2e4da1..753a132 100644
--- a/force-app/main/default/lwc/lexUnassign/lexUnassign.js
+++ b/force-app/main/default/lwc/lexUnassign/lexUnassign.js
@@ -29,7 +29,11 @@
 		}else{
 			window.open("/apex/EquipmentRentalUnassign?raId="+this.recordId+"&EquipmentId="+this.rentalApplySetIds); 
 		}
-
-		window.open("/"+this.recordId,'_self');
+		this.closeAction();
 	}
+
+	closeAction() {
+        //杩斿洖褰撳墠鐨勫鍝佺敵璇�
+		window.open("/"+this.recordId,'_self');
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.1