From abeb7143bb1326fb922e49cdb4a90ed4e9a3f2af Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期四, 11 五月 2023 16:05:27 +0800
Subject: [PATCH] Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev
---
force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js b/force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js
index 74a1baf..3392f9f 100644
--- a/force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js
+++ b/force-app/main/default/lwc/lexBidAnnouncementRejectButton/lexBidAnnouncementRejectButton.js
@@ -6,7 +6,7 @@
import { updateRecord } from 'lightning/uiRecordApi';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class lexBidAnnouncementRejectButton extends LightningElement {
- @api recordId;
+ @api recordId;//OwnerId
IsLoading = true;
BidCancel = null;
@@ -36,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 = "";
@@ -47,19 +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());
}
- updateRecordView() {
- updateRecord({fields: { Id: this.recordId }});
- }
-
}
\ No newline at end of file
--
Gitblit v1.9.1