From 7fc517c5dcabe5d26ef107ff5bd529710ec3ec7d Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期五, 26 五月 2023 18:00:10 +0800
Subject: [PATCH] 招标项目招标项目失单页面、相关性确认、逻辑删除、关联已有询价 界面修改及Confirm框修改
---
force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js b/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
index be9daf2..e2869e5 100644
--- a/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
+++ b/force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
@@ -4,6 +4,7 @@
import init from '@salesforce/apex/TenderingButtonController.initTenderingController';
import sqlResult from '@salesforce/apex/TenderingButtonController.sqlResult';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import LightningConfirm from 'lightning/confirm';
export default class lexTenderingLostButton extends LightningElement {
@api recordId;//褰撳墠杩欐潯鏁版嵁鐨刬d
status;//鐘舵��
@@ -55,13 +56,19 @@
}
// 鍒ゆ柇鏄惁闇�瑕佹柊寤鸿浠�
if(this.status == '05.璇环涓�'|| this.status == '06.鎴愪氦' || this.status == '07.閮ㄥ垎鎴愪氦' || this.status == '08.澶卞崟' || result.length > 0){
- if(confirm('姝ら」鐩凡鍏宠仈璇环锛岃纭疄鏄惁鏂板缓璇环鎻愪氦澶卞崟銆�')) {
-
- }else{
- return;
- }
+ LightningConfirm.open({
+ message: '姝ら」鐩凡鍏宠仈璇环锛岃纭疄鏄惁鏂板缓璇环鎻愪氦澶卞崟銆�',
+ variant: 'headerless',
+ label: 'this is the aria-label value',
+ }).then(res=>{
+ if(res) {
+ window.open(`/apex/TenderLostPage?id=${this.recordId}`,'','height=500,width=800,top=200,left=250,location=no');
+ }else{
+ this.dispatchEvent(new CloseActionScreenEvent());
+ return;
+ }
+ });
}
- window.open(`/apex/TenderLostPage?id=${this.recordId}`,'','height=500,width=800,top=200,left=250,location=no');
})
}
showToast(msg,type) {
@@ -71,4 +78,4 @@
});
this.dispatchEvent(event);
}
-}
+}
\ No newline at end of file
--
Gitblit v1.9.1