From 626f3c3bb25e204568019e8d568e2d7547d1037a Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 09 八月 2023 10:54:08 +0800
Subject: [PATCH] 20230809修改伟意按钮同步
---
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