From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523
---
force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js | 44 +++-----------------------------------------
1 files changed, 3 insertions(+), 41 deletions(-)
diff --git a/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js b/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
index 5df0406..0261de4 100644
--- a/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
+++ b/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
@@ -1,9 +1,7 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
-import init from '@salesforce/apex/TenderingButtonController.initTenderingController';
import ContraryLogicalDel from '@salesforce/apex/TenderWebService.ContraryLogicalDel';
-import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class LexTenderingAntiLogicButton extends LightningElement {
@api recordId;//褰撳墠杩欐潯鏁版嵁鐨刬d
id;//杩斿洖鍊肩殑id Tender_information__c鎷涙爣椤圭洰鐨刬d
@@ -19,47 +17,11 @@
}
}
}
-
- connectedCallback(){
- init({
- recordId: this.recordId
- }).then(result => {
- this.IsLoading = false;
- this.id = result.Id;
- this.AntiLogicButton();
- this.dispatchEvent(new CloseActionScreenEvent());
- }).catch(() => {
-
- }).finally(() => {
-
- });
- }
-
//鍙嶉�昏緫鍒犻櫎
- AntiLogicButton(){
- ContraryLogicalDel({DTenId : this.id}).then(result =>{
- console.log(result,'鎴愬姛涓庡惁');
- if(result == 'OK'){
- this.showToast("鍙嶉�昏緫鍒犻櫎鎴愬姛","success");
- }
+ connectedCallback(){
+ ContraryLogicalDel({DTenId : this.recordId}).then(result =>{
this.dispatchEvent(new CloseActionScreenEvent());
})
}
- showToast(msg,type) {
- const event = new ShowToastEvent({
- message: msg,
- variant: type
- });
- this.dispatchEvent(event);
- }
-}
-
-
-// /var ContraryL = function(){
-// var DTenId = "{!Tender_information__c.Id}";//鍒犻櫎鐨勬嫑鎶曟爣
-// var rtn = sforce.apex.execute("TenderWebService", "ContraryLogicalDel", {DTenId : DTenId } );
-// //閲嶆柊鍔犺浇椤甸潰
-// window.location.reload();
-// }
-// ContraryL();
\ No newline at end of file
+}
\ No newline at end of file
--
Gitblit v1.9.1