From 9f5874fcd8657ade15b4fc73c924813684f3a9a8 Mon Sep 17 00:00:00 2001
From: LiJinHuan <lijinhuan@prec-tech.com>
Date: 星期二, 08 八月 2023 19:19:35 +0800
Subject: [PATCH] 备品最近优化代码

---
 force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js b/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
index df27f2b..a1fe2e8 100644
--- a/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
+++ b/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
@@ -17,6 +17,7 @@
     IsLoading = true;
     Id;
     Status;
+    msg;
 
     @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
@@ -35,7 +36,6 @@
         }).then(result => {
             console.log(result);
             if (result != null) {
-                this.IsLoading = false;
                 this.Id = result.Id;
                 this.Status = result.Status;
 
@@ -53,7 +53,12 @@
         if (status == '鍏紑涓�') {
             window.open("/apex/InstructReport?camid=" + this.Id, "_top");
         } else {
-            alert("鍙湁鎵瑰噯鍚庢墠鑳藉垱寤烘姤鍛�!")
+            this.msg = '鍙湁鎵瑰噯鍚庢墠鑳藉垱寤烘姤鍛�!';
+            this.IsLoading = false;
         }
     }
+
+    closeAction() {
+        window.history.go(-1);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.1