| force-app/main/default/lwc/lexInventoryPage/lexInventoryPage.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexInventoryPage/lexInventoryPage.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| force-app/main/default/lwc/lexInventoryPage/lexInventoryPage.js-meta.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
force-app/main/default/lwc/lexInventoryPage/lexInventoryPage.html
New file @@ -0,0 +1,3 @@ <template> </template> force-app/main/default/lwc/lexInventoryPage/lexInventoryPage.js
New file @@ -0,0 +1,22 @@ import { LightningElement, track, wire, api } from 'lwc'; import { CurrentPageReference,NavigationMixin } from 'lightning/navigation'; export default class lexInventoryPage 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(){ window.open("/apex/InventoryReport?Id=" + this.recordId); } } force-app/main/default/lwc/lexInventoryPage/lexInventoryPage.js-meta.xml
New file @@ -0,0 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexInventoryPage"> <apiVersion>50.0</apiVersion> <isExposed>true</isExposed> </LightningComponentBundle>