From 01ce9b5788c4369c150e57577cc4ea03b4fc5ee1 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 19 四月 2024 17:28:49 +0800
Subject: [PATCH] 123

---
 force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js b/force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js
index ca769de..d2cd082 100644
--- a/force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js
+++ b/force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js
@@ -2,9 +2,9 @@
  * @Description: 
  * @version: 
  * @Author: chen jing wu
- * @Date: 2023-06-30 17:55:39
+ * @Date: 2023-09-09 13:31:12
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-07 16:22:25
+ * @LastEditTime: 2023-09-14 16:09:41
  */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -12,6 +12,8 @@
 import init  from '@salesforce/apex/lexSolutionProjectRequirementsController.initForApplyAgainButton';
 import { NavigationMixin } from 'lightning/navigation';
 import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
+import lwcCSS from '@salesforce/resourceUrl/lwcCSS';
+import {loadStyle} from 'lightning/platformResourceLoader';
 
 export default class LexApplyAgainLwc extends NavigationMixin(LightningElement) {
     @api recordId;
@@ -33,6 +35,9 @@
          }
      }
      connectedCallback(){
+        Promise.all([
+            loadStyle(this, lwcCSS)
+           ]);
         init({
             recordId: this.recordId
         }).then(result=>{
@@ -46,7 +51,8 @@
       const defaultValues = encodeDefaultFieldValues({
         old_Project_No__c: this.recordId,
         Department_Class__c: this.departmentClassId,
-        Hospital__c: this.hospitalId
+        Hospital__c: this.hospitalId,
+        Name: '*'
       });
       this[NavigationMixin.Navigate]({
           type: 'standard__objectPage',

--
Gitblit v1.9.1