From 25f056535350a0b80bad50d2cc45311998e5d1cd Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期一, 09 十月 2023 18:28:00 +0800
Subject: [PATCH] 近期修改

---
 force-app/main/default/lwc/lexStockApply/lexStockApply.js |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/force-app/main/default/lwc/lexStockApply/lexStockApply.js b/force-app/main/default/lwc/lexStockApply/lexStockApply.js
index 03e63f8..d2697d9 100644
--- a/force-app/main/default/lwc/lexStockApply/lexStockApply.js
+++ b/force-app/main/default/lwc/lexStockApply/lexStockApply.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-14 13:04:53
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-24 16:45:55
+ * @LastEditTime: 2023-09-14 16:46:11
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -17,6 +17,8 @@
 import connection from '@salesforce/resourceUrl/connection20';
 import submitProcess  from '@salesforce/apex/OpportunityLightingButtonController.submitProcess';
 import LightningConfirm from 'lightning/confirm';
+import lwcCSS from '@salesforce/resourceUrl/lwcCSS';
+import {loadStyle} from 'lightning/platformResourceLoader';
 export default class LexStockApply extends LightningElement {
     @api recordId;
     stockApplyStatus;
@@ -101,6 +103,9 @@
         }
     }
     connectedCallback(){
+        Promise.all([
+            loadStyle(this, lwcCSS)
+           ]);
         init({
             recordId: this.recordId
         }).then(result=>{
@@ -125,11 +130,13 @@
         }
         this.handleConfirmClick("涓�鏃︽彁浜ゆ璁板綍浠ュ緟鎵瑰噯锛屾牴鎹偍鐨勮缃偍鍙兘涓嶅啀鑳藉缂栬緫姝よ褰曟垨灏嗕粬浠庢壒鍑嗚繃绋嬩腑璋冨洖銆傛槸鍚︾户缁紵");
     }
-    showToast(msg,type) {
+   
+      showToast(msg,type) {
         const event = new ShowToastEvent({
-            title: '',
+            title: ' ',
             message: msg,
-            variant: type
+            variant: type,
+            mode: 'sticky'
         });
         this.dispatchEvent(event);
         this.dispatchEvent(new CloseActionScreenEvent);

--
Gitblit v1.9.1