From 1bc3f32b126277b5349564485665b462bb760354 Mon Sep 17 00:00:00 2001
From: zhangchunxu <1842059105@qq.com>
Date: 星期五, 04 八月 2023 13:21:26 +0800
Subject: [PATCH] 修改 招标项目 失单
---
force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js b/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
index e9cea49..a1fe2e8 100644
--- a/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
+++ b/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
@@ -10,7 +10,6 @@
CloseActionScreenEvent
} from 'lightning/actions';
import init from '@salesforce/apex/buttonCampaignCtl.init';
-import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class LexCreateInstructReport extends LightningElement {
@api recordId;
@@ -18,6 +17,7 @@
IsLoading = true;
Id;
Status;
+ msg;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
@@ -36,7 +36,6 @@
}).then(result => {
console.log(result);
if (result != null) {
- this.IsLoading = false;
this.Id = result.Id;
this.Status = result.Status;
@@ -52,18 +51,14 @@
CreateInstructReport() {
var status = this.Status;
if (status == '鍏紑涓�') {
- window.open("/apex/InstructReport?camid="+this.Id, "_top");
+ window.open("/apex/InstructReport?camid=" + this.Id, "_top");
} else {
- this.ShowToastEvent("鍙湁鎵瑰噯鍚庢墠鑳藉垱寤烘姤鍛�!", "error")
+ this.msg = '鍙湁鎵瑰噯鍚庢墠鑳藉垱寤烘姤鍛�!';
+ this.IsLoading = false;
}
}
- ShowToastEvent(msg, type) {
- const event = new ShowToastEvent({
- title: '',
- message: msg,
- variant: type
- });
- this.dispatchEvent(event);
+ closeAction() {
+ window.history.go(-1);
}
}
\ No newline at end of file
--
Gitblit v1.9.1