From acbc8a4e207f6a914feb202c2879a4fa330ce57d Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@prec-tech.com>
Date: 星期一, 12 六月 2023 18:59:39 +0800
Subject: [PATCH] 修改备品qis 注残
---
force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js b/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
index 84fe55d..97a70c1 100644
--- a/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
+++ b/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
@@ -33,7 +33,6 @@
}
connectedCallback() {
- console.log(this.recordId);
init({
recordId: this.recordId
}).then(result => {
@@ -47,9 +46,7 @@
}
}).catch(error => {
console.log(error);
- }).finally(() => {
-
- });
+ })
}
// 楠屾敹鍗曞洖鏀剁敵璇�
@@ -58,12 +55,13 @@
recordId: this.Id
}).then(result => {
console.log(result);
- if (result.length > 0) {
- var indexs = result.indexOf(": ")
- var resolves = result.substring(indexs + 1, result.length);
- alert(resolves);
+ if (result != null) {
+ if (result.length > 0) {
+ var split = result.split(", ");
+ alert(split[1]);
+ }
}
- location.reload();
+ alert("宸茬粡鐢宠杩囦簡锛屼笉鍏佽閲嶆柊鐢宠");
})
}
--
Gitblit v1.9.1