From 909d5c09ab28f87964cd8993cde3c1242c3414b0 Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期四, 20 七月 2023 11:44:10 +0800
Subject: [PATCH] button-lexTransferApplySelectDetail

---
 force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.js   |    5 ++++-
 force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.css  |   22 ++++++++++++++++++++++
 force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.html |    2 +-
 3 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.css b/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.css
new file mode 100644
index 0000000..95c1c55
--- /dev/null
+++ b/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.css
@@ -0,0 +1,22 @@
+.holder{
+	position: relative;
+	display: inline-block;
+	width: 80px;
+	height: 80px;
+	text-align: center;
+}
+
+.container .uiContainerManager{
+	display : none !important;
+}
+.toast{
+	border: 1px solid #c9c9c9;
+	border-radius: 10px; 
+	width: 50%;
+	margin: 0 auto;
+	font-size: 18px;
+	font-weight: bold;
+	padding: 10px 20px;
+	background: #feb75d;
+	display: flex;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.html b/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.html
index 7063605..d2c3546 100644
--- a/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.html
+++ b/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.html
@@ -2,7 +2,7 @@
   <div class="holder" if:true={IsLoading}>
       <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
   </div>
-  <div if:false={IsLoading} class="toast">
+  <div if:true={IsShow} class="toast">
     <span style="padding: 10px;">{msg}</span>
     <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;">
                 <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small"
diff --git a/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.js b/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.js
index 15e33ed..a5f13ee 100644
--- a/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.js
+++ b/force-app/main/default/lwc/lexTransferApplySelectDetail/lexTransferApplySelectDetail.js
@@ -4,12 +4,15 @@
 export default class lexTransferApplySelectDetail extends LightningElement {
 	@api recordId;
 	msg;
-
+	IsLoading = true;
+	IsShow = false;
 	connectedCallback(){
 		transferApplySelectDetail({
 			recordId: this.recordId
 		}).then(res=>{
+			this.IsLoading = false; 
 			if(res.TA_Status__c == '鍒犻櫎' || res.TA_Status__c == '鍙栨秷' || res.TA_Status__c == '瀹屼簡'){
+				this.IsShow = true;
 				this.msg = '璋冩嫧鐢宠宸茬粡'+ res.TA_Status__c +',涓嶈兘閫夋嫨璋冩嫧鏄庣粏'
 			}else{
 				window.open("/apex/TransferApplySelectDetail?id="+this.recordId, "_top"); 

--
Gitblit v1.9.1