From 5f8c97f8716088019ad9a0302c5dea461bc668b1 Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期一, 07 八月 2023 15:35:56 +0800
Subject: [PATCH] CIC相关按钮
---
force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js b/force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js
index 2ff072b..2f0f4de 100644
--- a/force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js
+++ b/force-app/main/default/lwc/lexSCSubmit/lexSCSubmit.js
@@ -48,16 +48,13 @@
}
}).catch(error => {
console.log(error);
- }).finally(() => {
-
- });
+ })
}
// 鎻愪氦寰呭鎵�
SCSubmit() {
if (this.StatusC != '鑽夋涓�') {
this.ShowToastEvent("宸茬粡鎻愪氦瀹℃壒", "error")
- // alert('宸茬粡鎻愪氦瀹℃壒');
return;
}
@@ -66,15 +63,16 @@
}
updateQISSCReport({
- Id: this.Id
+ QId: this.Id
}).then(result => {
+ console.log(result);
if (result.length > 0) {
var split = result.split(", ");
alert(split[1]);
+ } else {
+ this.ShowToastEvent("宸叉彁浜�", "success")
+ window.location.reload();
}
- this.ShowToastEvent("宸叉彁浜�", "success")
- // alert('宸叉彁浜�!')
- window.location.reload();
})
}
--
Gitblit v1.9.1