From a0d97703a0fd438d60152e9582230a20c4738d3e Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期五, 26 五月 2023 14:47:10 +0800
Subject: [PATCH] 取消分配
---
force-app/main/default/lwc/lexUnassign/lexUnassign.css | 22 +++++++++++
force-app/main/default/lwc/lexUnassign/lexUnassign.html | 13 ++++++
force-app/main/default/lwc/lexUnassign/lexUnassign.js-meta.xml | 18 +++++++++
force-app/main/default/lwc/lexUnassign/lexUnassign.js | 35 +++++++++++++++++
4 files changed, 88 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/lexUnassign/lexUnassign.css b/force-app/main/default/lwc/lexUnassign/lexUnassign.css
new file mode 100644
index 0000000..95c1c55
--- /dev/null
+++ b/force-app/main/default/lwc/lexUnassign/lexUnassign.css
@@ -0,0 +1,22 @@
+.holder{
+ position: relative;
+ display: inline-block;
+ width: 80px;
+ height: 80px;
+ text-align: center;
+}
+
+.container .uiContainerManager{
+ display : none !important;
+}
+.toast{
+ border: 1px solid #c9c9c9;
+ border-radius: 10px;
+ width: 50%;
+ margin: 0 auto;
+ font-size: 18px;
+ font-weight: bold;
+ padding: 10px 20px;
+ background: #feb75d;
+ display: flex;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexUnassign/lexUnassign.html b/force-app/main/default/lwc/lexUnassign/lexUnassign.html
new file mode 100644
index 0000000..7063605
--- /dev/null
+++ b/force-app/main/default/lwc/lexUnassign/lexUnassign.html
@@ -0,0 +1,13 @@
+<template>
+ <div class="holder" if:true={IsLoading}>
+ <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+ </div>
+ <div if:false={IsLoading} class="toast">
+ <span style="padding: 10px;">{msg}</span>
+ <button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse" onclick={closeAction} title="Close" style="background-color: #e5e4e2;margin-top: 15px;">
+ <lightning-icon class="greyIcon" icon-name="utility:close" alternative-text="Connected" variant="inverse" size="small"
+ title="Close" style="color: black;"></lightning-icon>
+ <span class="slds-assistive-text">Close</span>
+ </button>
+ </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexUnassign/lexUnassign.js b/force-app/main/default/lwc/lexUnassign/lexUnassign.js
new file mode 100644
index 0000000..e2e4da1
--- /dev/null
+++ b/force-app/main/default/lwc/lexUnassign/lexUnassign.js
@@ -0,0 +1,35 @@
+import { LightningElement, track, wire, api } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+
+export default class lexUnassign extends LightningElement {
+ @api recordId;
+ @api rentalApplySetIds;
+ msg;
+ IsLoading=true;
+
+ @wire(CurrentPageReference)
+ getStateParameters(currentPageReference){
+ console.log("杩涘叆椤甸潰");
+ console.log(currentPageReference);
+ if(currentPageReference){
+ const urvalue=currentPageReference.state.recordId;
+ if(urvalue){
+ let str=`${urvalue}`;
+ console.log('str');
+ console.log(str);
+ this.recordId=str;
+ }
+ }
+ }
+
+ connectedCallback(){
+
+ if(this.rentalApplySetIds == undefined || this.rentalApplySetIds.length<1){
+ window.open("/apex/EquipmentRentalUnassign?raId="+this.recordId);
+ }else{
+ window.open("/apex/EquipmentRentalUnassign?raId="+this.recordId+"&EquipmentId="+this.rentalApplySetIds);
+ }
+
+ window.open("/"+this.recordId,'_self');
+ }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexUnassign/lexUnassign.js-meta.xml b/force-app/main/default/lwc/lexUnassign/lexUnassign.js-meta.xml
new file mode 100644
index 0000000..79e25bd
--- /dev/null
+++ b/force-app/main/default/lwc/lexUnassign/lexUnassign.js-meta.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexUnassign">
+ <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">
+ <property name="recordId" type="String" label="recordId"/>
+ <property name="rentalApplySetIds" type="String[]" label="rentalApplySetIds"/>
+ </targetConfig>
+ </targetConfigs>
+</LightningComponentBundle>
\ No newline at end of file
--
Gitblit v1.9.1