| force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.css | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js-meta.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.css
New file @@ -0,0 +1,11 @@ .rentalApplyCanleButtonHolder{ position: relative; display: inline-block; width: 80px; height: 80px; text-align: center; } .container .uiContainerManager{ display : none !important; } force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.html
New file @@ -0,0 +1,4 @@ <template> <div class="rentalApplyCanleButtonHolder" if:true={IsLoding}> <lightning-spinner alternative-text="Loading" size="medium"> </lightning-spinner> </div> </template> force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js
New file @@ -0,0 +1,32 @@ import { LightningElement, track, wire, api } from 'lwc'; import { CurrentPageReference,NavigationMixin } from 'lightning/navigation'; import { CloseActionScreenEvent } from 'lightning/actions'; import { updateRecord } from 'lightning/uiRecordApi'; import init from '@salesforce/apex/LexInventoryHeaderController.init'; export default class lexLostReportInventoryPage extends LightningElement { @api recordId; IsLoading = true; @wire(CurrentPageReference) getStateParameters(currentPageReference) { if (currentPageReference) { const urlValue = currentPageReference.state.recordId; if (urlValue) { let str = `${urlValue}`; this.recordId = str; } } } connectedCallback(){ init({ recordId:this.recordId }).then(res=>{ if(res.Asset__c==null || res.Asset__c==''){ window.open("/apex/LostReportEditAsset?id=" + this.recordId,'height=600, width=600'); this.dispatchEvent(new CloseActionScreenEvent()); } }) } } force-app/main/default/lwc/lexLostReportInventoryPage/lexLostReportInventoryPage.js-meta.xml
New file @@ -0,0 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexRentalApplyCanleButton"> <apiVersion>54.0</apiVersion> <isExposed>true</isExposed> <targets> <target>lightning__AppPage</target> <target>lightning__RecordPage</target> <target>lightning__HomePage</target> <target>lightning__RecordAction</target> </targets> </LightningComponentBundle>