From 37d0438c49ef4f9c0bc7f5ed145014a75a6c4cd4 Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期四, 20 七月 2023 11:05:19 +0800
Subject: [PATCH] button-lexEquipmentSetManage
---
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.html | 5 +++++
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js | 13 +++++++++++++
force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js-meta.xml | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.html b/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.html
new file mode 100644
index 0000000..960b41d
--- /dev/null
+++ b/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.html
@@ -0,0 +1,5 @@
+<template>
+ <div class="Holder" if:true={IsLoading}>
+ <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+ </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js b/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js
new file mode 100644
index 0000000..ad274ef
--- /dev/null
+++ b/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js
@@ -0,0 +1,13 @@
+import { LightningElement, track, wire, api } from 'lwc';
+
+
+export default class lexEquipmentSetManage extends LightningElement {
+ @api recordId;
+ IsLoading=true;
+
+ connectedCallback(){
+ if (this.recordId) {
+ window.open("/apex/EquipmentSetManage?esetid="+this.recordId, "_top");
+ }
+ }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js-meta.xml b/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js-meta.xml
new file mode 100644
index 0000000..538e8c8
--- /dev/null
+++ b/force-app/main/default/lwc/lexEquipmentSetManage/lexEquipmentSetManage.js-meta.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexEquipmentSetManage">
+ <apiVersion>51.0</apiVersion>
+ <isExposed>true</isExposed>
+ <targets>
+
+ <target>lightning__AppPage</target>
+
+ <target>lightning__RecordPage</target>
+
+ <target>lightning__HomePage</target>
+
+ <target>lightning__RecordAction</target>
+
+ <!-- 灞忓箷娴侀厤缃� -->
+
+ <target>lightning__FlowScreen</target>
+
+ </targets>
+
+ <!-- 瀹氫箟鍙橀噺 -->
+
+ <targetConfigs>
+
+ <targetConfig targets="lightning__FlowScreen">
+
+ <!-- name js涓娇鐢ㄧ殑鍙橀噺锛屼粠灞忓箷娴佷腑鑾峰彇鍙傛暟 label 鍦ㄥ睆骞曟祦鐨勮LWC鐨勮缃腑鏄剧ず -->
+
+ <property name="recordId" type="String" label="recordId"/>
+
+ </targetConfig>
+
+ </targetConfigs>
+</LightningComponentBundle>
\ No newline at end of file
--
Gitblit v1.9.1