From a01eef703c01899a4e5e45b2b1cc8a6eaed1e0ad Mon Sep 17 00:00:00 2001
From: D C <chenbangcai@prec-tech.com>
Date: 星期一, 15 五月 2023 14:18:13 +0800
Subject: [PATCH] 借出备品申请一览 分单按钮 代码完善
---
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