From 80b91b46594e6a9501a6dcc410d928a4ea5b9bce Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期四, 11 五月 2023 18:13:38 +0800
Subject: [PATCH] 招标项目 关联已有询价 修改
---
force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js | 29 ++---------------------------
1 files changed, 2 insertions(+), 27 deletions(-)
diff --git a/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js b/force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
index 1220eb0..68543ee 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,34 +17,11 @@
}
}
}
-
- connectedCallback(){
- init({
- recordId: this.recordId
- }).then(result => {
- this.IsLoading = false;
- this.id = result.Id;
- this.AntiLogicButton();
- this.dispatchEvent(new CloseActionScreenEvent());
- })
- }
-
//鎷涙爣椤圭洰鍙嶉�昏緫鍒犻櫎
- AntiLogicButton(){
- ContraryLogicalDel({DTenId : this.id}).then(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);
- this.dispatchEvent(new CloseActionScreenEvent());
- }
}
--
Gitblit v1.9.1