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/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js | 39 ++++-----------------------------------
1 files changed, 4 insertions(+), 35 deletions(-)
diff --git a/force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js b/force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js
index 98f7446..3392f9f 100644
--- a/force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js
+++ b/force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js
@@ -7,10 +7,7 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class lexBidAnnouncementRejectButton extends LightningElement {
@api recordId;//OwnerId
- ownerId;//鎵�鏈変汉id
- id;//杩斿洖鍊肩殑id
IsLoading = true;
- arrMessage = [];
BidCancel = null;
@wire(CurrentPageReference)
@@ -24,15 +21,13 @@
}
}
-
connectedCallback(){
this.IsLoading = false;
this.Reject();
}
-
+ //涓爣閫氱煡涔� 椹冲洖
Reject(){
UserInfo_Owner().then(res=>{
- console.log(res);
this.BidCancel = res.BidCancel;
if(this.BidCancel == false){
this.showToast('娌℃湁椹冲洖鐨勬潈闄�',"error");
@@ -41,7 +36,8 @@
recordId: this.recordId
}).then(requst=>{
if(requst == '1'){
- this.showToast("椹冲洖璇锋眰鎴愬姛","success");
+ this.updateRecordView();
+ this.dispatchEvent(new CloseActionScreenEvent());
}
if(requst != "1"){
var messageage = "";
@@ -52,42 +48,15 @@
}
})
}
-
-
updateRecordView() {
updateRecord({fields: { Id: this.recordId }});
}
-
showToast(msg,type) {
const event = new ShowToastEvent({
message: msg,
variant: type
});
this.dispatchEvent(event);
- if(type == 'success'){
- this.updateRecordView();
- }
this.dispatchEvent(new CloseActionScreenEvent());
}
-}
-
-// if ('{!$User.BidCancel__c}' == 'false') {
-// alert("娌℃湁椹冲洖鐨勬潈闄�");
-// } else {
-// var Bid_Announcement = new sforce.SObject("Bid_Announcement__c");
-// Bid_Announcement.Id = "{!Bid_Announcement__c.Id}";
-// Bid_Announcement.Status__c = "鑽夋涓�";
-// Bid_Announcement.Complete__c = "false";
-// Bid_Announcement.Agree_user__c = null;
-// Bid_Announcement.Complete_date__c = null;
-// Bid_Announcement.Request_flag__c = "false";
-// Bid_Announcement.Request_user__c = null;
-// Bid_Announcement.Request_date__c = null;
-
-// var result = sforce.connection.update([Bid_Announcement]);
-// var messages = getConnectDMLErrorMessages(result);
-// if (messages.length > 0) {
-// alert(messages.join("\n"));
-// }
-// location.reload();
-// }
\ No newline at end of file
+}
\ No newline at end of file
--
Gitblit v1.9.1